Difference between revisions of "Browse By Person"
(→Views by Person) |
|||
Line 4: | Line 4: | ||
vi /var/lib/eprints3/archives/yourarchivename/cfg/cfg.d/views.pl | vi /var/lib/eprints3/archives/yourarchivename/cfg/cfg.d/views.pl | ||
− | |||
Add in the lines : | Add in the lines : |
Revision as of 09:30, 14 December 2006
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.