[EP-tech] Customizing item display

Alan.Stiles alan.stiles at open.ac.uk
Tue Nov 9 08:53:58 GMT 2021


CAUTION: This e-mail originated outside the University of Southampton.
Hi Laurent,
I’m talking from a 3.3.x perspective (don’t know if it applies to 3.4) but, in eprint_render.pl, just above the statement about completely customising them using the perl routine below, there is a defined list of fields

$c->{summary_page_metadata} = [qw/
…
/];

Which is the list the iterator in summary_page runs through.  Changing the fields listed in this definition in eprints_render should change what fields are rendered, unless they are explicitly named in summary_page.xml
Note, the pages for items are built and cached, so you would need to trigger an update by, e.g. editing a field value in the workflow or running a generate_abstracts from the bin directory.

Alan

From: eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Laurent Cloarec via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
Date: Monday, 8 November 2021 at 16:39
To: eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Customizing item display
CAUTION: This mail comes from outside the University. Please consider this before opening attachments, clicking links, or acting on the content.

CAUTION: This e-mail originated outside the University of Southampton.

Hi everybody

I try to change (hide some) the fields that are displayed.

There are contradictory comments into "eprint_render.pl" and "summary_page.xml" :
- into the first one, it says:
« While you can completely customise them using the perl subroutine below, it's
easier to edit them via citation/eprint/summary_page.xml »
- and into the second one:
« The below block loops over a list of field names taken from eprint_render.pl
Edit the list of metadata to show in the summary page table in eprint_render.pl »

So, where should I act to hide some of these fields???

On another hand, I easily managed to display a new field/metadata ("id_number"/
DOI) below the official URL, but when I try to change something into the
"<epc:foreach expr="$config{summary_page_metadata}" iterator="fieldname">"
block, nothing happens (even with fixed strings), even after a configuration
reload and an Apache/httpd service restart!...

Please help!

Thanks in advance and best regards
--
Laurent Cloarec
Service Commun de la Documentation - Service du Numérique Documentaire
Université Toulouse 1 Capitole


*** 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%7C0205da3cae384bfdd07808d9a35e7883%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637720448403346649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=OvCBeOtypa4dc4Vjz4prBteTMdKYP0GjIicMpMLIvrg%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%7C0205da3cae384bfdd07808d9a35e7883%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637720448403346649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=iRaw3WjanaYD5f9vcHLnThQcwu8U2vYEeZpCiq4AQRE%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20211109/f46ab837/attachment.html 


More information about the Eprints-tech mailing list