[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Citations and covers
- Subject: [EP-tech] Citations and covers
- From: denis.pitzalis at gmail.com (Denis Pitzalis)
- Date: Fri, 8 Jul 2016 17:34:09 +0200
Hi eprinters,
I am uploading audio to my repository as eprints. Each eprints comes with 2
documents:
1) the audio file, content: original
2) the cover, content: cover
then in my summary, I have:
<epc:set name='docs' expr='$item.original_documents()'>
<!--<epc:set name='docs' expr='$item.documents()'>-->
<epc:if test="length($docs) gt 0">
<epc:foreach expr="$docs" iterator="doc" limit="1">
<div id="summary_downloads"
class="summary-widget">
<epc:choose>
.....
<epc:when
test="$doc.thumbnail_url('audio_mp4').is_set()">
<audio controls="">
<source
src="{$doc.thumbnail_url('audio_mp4')}" type="audio/mp4" />
<source
src="{$doc.thumbnail_url('audio_ogg')}" type="audio/ogg" />
<p class="vjs-no-js">
<epc:phrase
ref='summary_page:vjs-no-js' />
</p>
</audio>
</epc:when>
which is working fine, but I would like to show the cover image with the
audio. How can I access it?
Best regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160708/9291d729/attachment.html