[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] EPC and building Summary pages



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/