Hi
The new version of Omeka 2.3 will attach a thumbnail image to each exhibit.
I understand that all attached images in pages related to exhibit stored in omeka_files table.
This is the sql command that will fetch an image if you give an exhibit id.
select filename from omeka_files
Inner join omeka_exhibit_block_attachments oattachments
on oattachments.file_id =
omeka_files.id Inner join omeka_exhibit_page_blocks pb on
pb.id = oattachments.block_id
Inner join omeka_exhibit_pages ep on
ep.id = pb.page_id
Inner join omeka_items items on
items.id = omeka_files.item_id where
omeka_files.has_derivative_image = 1 and ep.exhibit_id=?;
What I am struggle with where you tell to retrieve the first thumbnail image only if the page has more than a block and each one has an image.
I appreciate the help.
Currently this sql statement will return three images where each attached to each block in the exhibit_page.
Thanks
Nancy