EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #08792


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Customizing item display


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

Hi Alan

Thank you for your answer...

The fact is that into our repository configuration folder, exists an
"eprint_render_metadata.pl" file, apparently overloading the "eprint_render.pl"
file for this fields/metadata list purpose... This was where I had to act
(change/hide details)...

Best regards
--
Laurent Cloarec
Service Commun de la Documentation - Service du Numérique Documentaire
Université Toulouse 1 Capitole
tél. : (+33)(0)5.34.45.61.23

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
Le 08/11/2021 à 17:35, Laurent Cloarec a écrit :
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