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

islandora_base_theme image field template preprocess drops image URL #1827

Open
alxp opened this issue May 18, 2021 · 1 comment
Open

islandora_base_theme image field template preprocess drops image URL #1827

alxp opened this issue May 18, 2021 · 1 comment
Labels
Repository:Carapace Issues pertaining to the theme repository: https://github.com/Islandora/carapace

Comments

@alxp
Copy link
Contributor

alxp commented May 18, 2021

Investigating why Media pages of images seem to all have broken images in islandora_base_theme.

I found this template preprocess function that adds an IIIF viewer to the image field.

In the preprocess function we find:

    $file_url = file_create_url($variables['uri']);
    if (strpos($file_url, '/system/temporary') === false) {
      $file_url = strstr($file_url, '?', TRUE);
    }

My file URL does not contain a ? so the part inside the if statement is always replacing the URL with FALSE.

@dannylamb
Copy link
Contributor

Those changes are straightforward. I wouldn't be surprised to bump into other issues with this along the way. Which makes me not too receptive to this feature. Feels like we're doing it just to say we use IIIF, and it's not neccessary considering we already generate image styles 🤷

@kstapelfeldt kstapelfeldt added Repository:Carapace Issues pertaining to the theme repository: https://github.com/Islandora/carapace and removed Theme labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repository:Carapace Issues pertaining to the theme repository: https://github.com/Islandora/carapace
Projects
Development

No branches or pull requests

3 participants