Islandora Default Thumbnails, new pull to Islandora-Labs.

63 views
Skip to first unread message

md...@discoverygarden.ca

unread,
Jul 11, 2016, 12:45:22 PM7/11/16
to islandora
Hello Folks, 

I would like to announce a newly developed Islandora module, Islandora Default Thumbs. The module is intended to allow the configuration and replacement of solution pack provided default thumbnails, but can be used to replace any thumbnail used by an object on a content model basis. This replacement is non destructive to existing objects thumbnail data streams, and will only affect the display layer thumbnails.

I have submitted a pull request to islandora-Labs here. Many improvements are already under development, exposing even more configuration options per content model such as:
  • Individual content model image comparisons
  • Content model specific default thumbnail data streams configuration
  • Forcing individual content models to use a supplied image regardless of its source
So, how does it work? When a comparison image is added to the Islandora Default Thumbs configuration the image files MD5 hash is saved for comparison. When an objects thumbnail is being viewed by SPARQL (Legacy), SPARQL, SOLR display generation or the compound object navigation block, the objects thumbnail data stream content is compared via MD5 hash to the supplied comparison image. Should they match, the configured CModel image replacement will be used in its place, or the configured missing thumbnail data stream replacement. 

This technique is being done by implementing the following hooks:
  • hook_preprocess_islandora_basic_collection_grid()
  • hook_preprocess_islandora_basic_collection()
  • hook_preprocess_islandora_objects_grid()
  • hook_preprocess_islandora_objects_list()
  • hook_preprocess_islandora_solr()
  • hook_preprocess_islandora_compound_prev_next()
Checkout the README on the modules README for more information. 

Thanks,

Morgan Dawe

Scott Ziegler

unread,
Jul 11, 2016, 3:13:31 PM7/11/16
to isla...@googlegroups.com
This looks amazing, Morgan!

Can't wait to try it.

Best,
Scott

--------------------
Scott Ziegler, MA, MSLIS, CA
Head of Technology
American Philosophical Society
105 South 5th Street
Philadelphia, PA 19106
Telephone: 215.599.4299
Email: szie...@amphilsoc.org

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/3ae27a13-3622-4472-a521-0cc3930fb002%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Morgan Oscar Morel

unread,
Oct 23, 2017, 6:59:09 PM10/23/17
to islandora
This looks fantastic! However, I'm receiving an error when trying to upload Thumbnail Replacement images. I've made a github issue here: https://github.com/Islandora-Labs/islandora_default_thumbs/issues/9

Do you prefer that issues be discussed here, or in github?

Thanks!
Morgan
Reply all
Reply to author
Forward
0 new messages