Jump to content

Browse By Person

From EPrints Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Views by Person

To allow users to include a list of their documents in home pages, and to genrate a view based on the author edit the file :

vi /var/lib/eprints3/archives/yourarchivename/cfg/cfg.d/views.pl

Add in the lines :


 { 
 id=>"people", 
 allow_null=>0, 
 fields=>"creators_name/editors_name", 
 order=>"title",  
 include=>1 
 },

Don't forget the comma after the previous entry. This will produce out to the views section based on the persons name. It will give you text, html, and include files. I use the include file for displaying items on home pages.

For instance a link inside a users home page:

<?php
include ("http://eprints.adastral.ucl.ac.uk/view/people/{Family},_{Given Name}.include")
?>

Will give them a list of all their documents in the eprints repository, and the link :

http://eprints.adastral.ucl.ac.uk/view/people/

Will list all people that have published articles into eprints.