1.8.0 Pathauto; and Mirador for single-paged items
Changes
- There's a bug in a flysystem dependency
twistor/flysystem-stream-wrapper
that results in the logs getting spammed with errors in PHP 8.2. You can add this patch to your own composer.json as done in pull/146. - Pathauto is included! Now your drupal nodes will get paths per the pattern
/islandora/[node:title]
. To set this up,composer require drupal/pathauto
anddrush en pathauto
, then configure the pathauto patterns to your liking at Configuration > Search & Metadata > URL aliases > Patterns. - Mirador is set up as a single-page viewer, the way OpenSeadragon is. To replicate:
- Ensure you have the Mirador taxonomy term in Islandora Display. If not, either create it manually (with external URI
https://projectmirador.org
) or by running the migration i.e.drush mim --user=1 islandora_mirador_tags
. - Ensure you have a IIIF VIew set up that does the manifest for a single node. In the starter site, it's path is
node/%node/manifest
. - Create a new Context at Structure > Contexts. Label it "Mirador - Single page" (or whatever you like) and for Group, select "Display". (this groups it with the other display contexts for convenience, it doesn't affect functionality). Under "Conditions", "Add Condition" and choose "Node has term with URI". Select the term "Mirador" from the autocomplete. Under Reactions, click "Add reaction" and select "Blocks". Ensure that "Include blocks from Block Layout" is selected. On the section where you want your Mirador image to appear (we have it at "Content Above"), click "Place block" and find the Mirador block. When configuring the block, under "IIIF Manifest URL" enter the path of the IIIF Manifest (above), replacing
%node
with[node:nid]
. For example,/node/[node:nid]/manifest
. - Edit the "Default Media Display" context so that it excludes nodes with term Mirador.
- Create content that has a file or image that can be displayed in Mirador, and select "Viewer Override": "Mirador". Then you should see your mirador viewer.
- Ensure you have the Mirador taxonomy term in Islandora Display. If not, either create it manually (with external URI
- Thumbnail overrides with Representative Image - provides for additional functionality with the DGI Discovered Image module. This field lets you upload/select a Media that will be used as the node's thumbnail, and will override the islandora thumbnail (or, if it doesn't exist, the first child's islandora thumbnail). To replicate, make a new field on your content type called "Representative Image" (its machine name must be exactly
field_representative_image
. It must be a Media field. In the field type chooser interface, you may see "cards" for other fields that all say "Media". Be sure to choose the right one - as of now, it's the only one that has an actual icon.
What's Changed
- flysytem patch added by @ajstanley in #146
- Enable Pathauto and configure a title-based alias. by @rosiel in #148
- Add "Single Page Mirador Viewer" functionality, on par with OpenSeadragon. by @rosiel in #147
- Add Representative Image field and Media library. by @rosiel in #145
Full Changelog: 1.7.1...1.7.2