I'm using Omeka to host some hitherto unpublished documents in a collection (the documents are scholarly articles, texts of conference papers, etc.)
I've created an item for each document. Attached to each item is two files: a PDF of the document, as well as an XML version of it. The XML is actually what the PDF was created from, and is in TEI-compliant markup.
The PDF file has a thumbnail of its first page generated and this thumbnail is displayed on the item page for the document - so far, so good.
The XML file does not have a thumbnail and instead a text link is shown.
Is it possible to tell Omeka to display a fallback thumbnail instead of the text link, and if possible a fallback thumbnail I've created myself which shows it is an XML file?
I've been trying to get a result using the options for the
files_for_items call in show.php, but no joy so far. These options are:
'icons' => array('audio/mpeg'=>img('audio.gif'))));
My idea has been to use the
icons option to call an image for text/xml files, but I can't figure out where to place the image (in the example above audio.gif) - if I use an absolute URL I get an error.
Omeka version is 2.2 and theme is Emiglio.
Many thanks for any assistance!