[EP-tech] Citations and covers

Denis Pitzalis denis.pitzalis at gmail.com
Fri Jul 8 16:34:09 BST 2016


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 


More information about the Eprints-tech mailing list