Omeka Version: 2.3.1
PHP: 5.3.3
Exhibit Builder: 3.2.1
We have an issue with PDF thumbnails that are not displaying correctly. When an item loads, the thumbnail displays for a second then breaks.
We found if we comment out the following javascript within /themes/ourtheme/items/show.php that the PDFs display correctly:
<script>
jQuery(document).ready(function ($) {
if (window.location.href.indexOf('/items/show/') >= 0) {
var href = $('.download-file').attr('href');
$('.thumb').attr('src', href);
}
});
</script>
We would like to know the function of this code and what consequences could come about with commenting this out?