EPrints Technical Mailing List Archive

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

Message: #08791


< 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 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@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Laurent Cloarec via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Date: Monday, 8 November 2021 at 16:39
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@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: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/