[EP-tech] eprints 3.4: add new browse by Field

David R Newman drn at ecs.soton.ac.uk
Thu Apr 22 16:40:42 BST 2021


Hi Christian,

I assume by "Browse by" you mean the dropdown "Browse" menu where you 
can see:

Browse by Year
Browse by Subject
Browse by Division
Browse by Author

If you want to add extra views you will need to manually edit the 
template for you repository.  By default this will be in 
<EPRINTS_PATH>/flavours/pub_lib/lang/en/template/default.xml. However, 
if you edit this is it best to copy it to 
<EPRINTS_PATH>/archives/<ARCHIVE_NAME>/lang/en/template/default.xml 
first.  Then just find the part with the Browse sub-menu and add the 
additional view.  You may also want to copy and edit 
<EPRINTS_PATH>/archives/<ARCHIVE_NAME>/lang/en/template/default_internal.xml 
as well, so the templates remain consistent.  I tend to symlink 
default_internal.xml to default.xml unless I have a reason for backend 
admin pages to appear differently.

I don't know if you repository has multiple languages.  If it does you 
may need to copy and edit template files for lang/de/ lang/fr/, etc.

Regards

David Newman

On 22/04/2021 15:36, SGI Support | OST - Ostschweizer Fachhochschule via 
Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
>
> Hey
>
> How can I add the Field “Contributors” to “Browse by”
>
> I have successfully created the view with this code in file views.pl:
>
>                 id => "contributors",
>
>                 menus => [
>
> {
>
> fields => [ "contributors_type" ],
>
> hideempty => 1,
>
>         },
>
> {
>
> fields => [ "contributors_name" ],
>
> reverse_order => 0,
>
> allow_null => 1,
>
> new_column_at => [10,10],
>
> }
>
>                 ],
>
>                 order => "contributors_name/title",
>
> variations => [
>
> "contributors_name;first_letter",
>
> "type",
>
> "DEFAULT" ],
>
>         },
>
> When I go to https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.mydomain.com%2Fview&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6001eb3899d6441f682308d905a4fe1a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547028591079361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=2bgN1wQANdj3WhBnPhlSX3N9M7bYSgUcSxGx1xHYZOI%3D&amp;reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.mydomain.com%2Fview&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6001eb3899d6441f682308d905a4fe1a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547028591079361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=2bgN1wQANdj3WhBnPhlSX3N9M7bYSgUcSxGx1xHYZOI%3D&amp;reserved=0> 
> I see Contributors and all working well. But when I try “Browse by” 
>  the entry Contributors is missing.
>
> We have installed eprints 3.4.2. What can I dofor fix the problem?
>
> Thanks for Support
>
> Greetings Christian
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6001eb3899d6441f682308d905a4fe1a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547028591079361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=xVa6A%2FD5FSAcbhGD1uzjk8KqgXVz0zqbNet2%2B5iOjHM%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6001eb3899d6441f682308d905a4fe1a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547028591079361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=E6iQB6lXBvLB3WyqtR515lh%2F9%2BQYZb5x3FB%2B3fdIneU%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6001eb3899d6441f682308d905a4fe1a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547028591079361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3TdmxUUI5jKHvGqTtry0zp7C743xhM5v6sDjQgoaGFE%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210422/58a2848c/attachment-0001.html 


More information about the Eprints-tech mailing list