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

[EP-tech] Re: Eprints info for custom summary page



Hi Gilles,

thanks for the info. Will try it out.

Cheers,
Seb.

On 2015-06-08 12:41, Gilles Fourni? wrote:
> Hi,
>
> For displaying authors in our citations, we use this code (compacted,
> without spaces nor new lines between xml tags) :
>
> <epc:foreach expr="creators_name" iterator="name">
>     <epc:if test="$index gt 0">, </epc:if>
>     <epc:print expr="$name{family}" />
>     <epc:if test="$name{given}"> <epc:print expr="$name{given}" /></epc:if>
> </epc:foreach>
>
> May there are better ways to do it, but it works.
>
> Best regards,
> GF
>
>
> Le 08/06/2015 11:36, Sebastian Nozzi a ?crit :
>> Dear Eprints experts,
>>
>> I'm using the Recollect plugin, and want to tweak the
>> "recollect_summary_page.xml" to display this information:
>>
>> * Creators (last_name_1, first_name_1; last-name_2, first_name_2; etc.)
>> * Year (of publication or last-modification)
>> * Version
>>
>> I've seen that I have $item at my disposal and some other fields seem to
>> be directly accessible. E.g.:
>>
>> <epc:print expr="abstract" />
>> <epc:print expr="$item.citation('default')" />
>>
>> However, I have no clue how to get to the information I listed above. I
>> tried several things but I either get a "script error" or a
>> pre-formatted "creators" table, already as a HTML snippet.
>>
>> Any hints?
>>
>> Thanks in advance,
>> Sebastian
>>
>
>
> *** 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/
>
>