Hi Ludmila,


>I'm not sure exactly in what way you would like to use the thumbnails. In
the vanilla Invenio this is left >at the decision of each administrator.
>For CDS, we are just displaying the thumbnails under the video, for easy
preview.
>
>If you wish to display the thumbnails somewhere on the record page, you
will need to update the detailed >format: Video_HTML_detailed.bft, by adding
a new format element: bfe_video_thumbnails.py, for example
>The new format element (all format elements already defined can be found in
>modules/bibformat/lib/elements/) will have to return the html for the list
of thumbnails attached to the >record (styled as you wish).

Where can I get that element 'bfe_video_thumbnails.py'? I couldn't find it
neither in installation package (invenio v.1.1.2) nor in invenio repository
(http://invenio-software.org/browser).  


Genis

To retrieve the list if thumbnails, would be something in these lines:
$ipython
In [1]: from invenio.bibdocfile import BibRecDocs

In [2]: brd = BibRecDocs(107)

In [3]: thumbnails = [item.get_url() for item in brd.list_latest_files() if
item.subformat=='small'] #list of all the thumbnail URLs attached to this
record

The simples way to display them would be (you can add the style for the
video_thumb class in the css)

In [4]: out = ''.join(['<img class="video_thumb" src="%s" />' %item for item
in thumbnails])


Hope this helps!

Best regards,
Ludmila

-- 
Ludmila Marian
Software Engineer
CERN, IT Department, Digital Library Service Section

Reply via email to