Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #964: Allow relative paths in IIIF manifests. #965

Merged
merged 3 commits into from
Aug 7, 2023

Conversation

alxp
Copy link

@alxp alxp commented Jul 11, 2023

GitHub Issue: (link)

What does this Pull Request do?

Adds a configuration option for IIIF manifests to use relative paths for image URLs.

What's new?

Adds a config option to make IIIF manifests use local file paths.

  • Does this change add any new dependencies? No
  • Does this change require any other modifications to be made to the repository
    (i.e. Regeneration activity, etc.)? No
  • Could this change impact execution of existing code? No

How should this be tested?

On an Islandora site set up with Islandora IIIF and paged content, go to a piece of paged content, and's manifest URL, usually node/[node:nid]/book-manifest or .../manifest.

Note the image URLs under canvases > images > resources include URL encoded strings representing the full URL of the image, including the Drupal site host.

Go to the Admin settings page for Islandora IIIF, /admin/config/islandora/iiif

Check the 'Use relative paths' option and save the settings.

Reload the same manifest and inspect the @id elements under canvases > resources and note they don't include the full (encoded) url of the Drupal site but only the relative path.

Documentation Status

  • Does this change existing behaviour that's currently documented? No
  • Does this change require new pages or sections of documentation? No
  • Who does this need to be documented for?
  • Associated documentation pull request(s): ___ or documentation issue ___ TK

Additional Notes:

Any additional information that you think would be helpful when reviewing this
PR.

If you want to test this fully including a Cantaloupe stack I can give an example site config and Cantaloupe properties file.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora/committers

@rosiel rosiel self-assigned this Jul 12, 2023
@alxp
Copy link
Author

alxp commented Aug 6, 2023

Fixed schema indentation and added Advanced field group as requested.

@rosiel rosiel merged commit 11afd42 into 2.x Aug 7, 2023
@rosiel rosiel deleted the 964-relative-iiif-paths branch August 7, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants