Difference between revisions of "Browse By Person"
(→Views by Person) |
(Added to Howto and Customisation categories) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | |||
| + | |||
==Views by Person== | ==Views by Person== | ||
| Line 29: | Line 31: | ||
Will list all people that have published articles into eprints. | Will list all people that have published articles into eprints. | ||
| + | |||
| + | [[Category:Manual]] [[Category:Browse Views]] [[Category:Howto]] [[Category:Customisation]] | ||
Latest revision as of 12:23, 21 January 2022
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.