EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05501
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] EPC and building Summary pages
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] EPC and building Summary pages
- From: Gilles Fournié <gilles.fournie@cirad.fr>
- Date: Thu, 17 Mar 2016 09:29:34 +0100
Hi,Absolutely not sure it can be flagged as a 'best practice', but yes, it can be done...
<epc:foreach expr="note_numeros" iterator="nn"> <epc:if test="$nn{type} != 'nodoc'"> <epc:if test="$index gt 0">, </epc:if><epc:phrase ref="note_numeros_type_typename_{$nn{type}}"/> : <epc:print expr="$nn{texte}" />
</epc:if> </epc:foreach>"note_numeros" has sub-fields "type" (a set field) and "texte" (a text field).
In this loop, we show only entries with type!=nodoc, separated by commas. There may be other ways to do that, perhaps more efficiently, but it works. Best regards, Gilles Le 17/03/2016 07:24, Matthew Brady a écrit :
Hi All,Just wondering if I anyone has a ‘best practice’ thought on how to display certain sub-fields from a compound field (that allows multiples) in the summary page.e.g.a compound field contains a subfield (set - (yes no pending)) which displays as a dropdown, and a text field to describe the specifics.I am looking to display only the values from the text subfield when the corresponding dropdown choice = ‘yes’.This could also be used to display funding detail specifics for only certain funders in the list, or any other myriad of similar scenarios.Is this sort of thing possible using the ePrints Control Format?? It’s not something I have had much need to explore in the past, so any ideas are welcome.Cheers Matt. _____________________________________________________________ This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email. The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt. The University of Southern Queensland is a registered provider of education with the Australian Government. (CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 ) *** 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/ *** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] EPC and building Summary pages
- From: Matthew Brady <Matthew.Brady@usq.edu.au>
- [EP-tech] EPC and building Summary pages
- Prev by Date: Re: [EP-tech] email to editor immediately after deposit
- Next by Date: Re: [EP-tech] EPC and building Summary pages
- Previous by thread: [EP-tech] EPC and building Summary pages
- Next by thread: Re: [EP-tech] EPC and building Summary pages
- Index(es):