Skip to content

Commit

Permalink
removed IIIF button, if not valid ext
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Oct 6, 2023
1 parent 35888bb commit f523aef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openatlas/display/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def add_button_others(self) -> None:
self.buttons.append(button(
_('download'),
url_for('download_file', filename=path.name)))
if check_iiif_activation():
if (check_iiif_activation()
and self.entity.get_file_extension()
in app.config['IIIF_IMAGE_EXT']):
if (check_iiif_file_exist(self.entity.id)
or not app.config['IIIF']['conversion']):
self.buttons.append(button(
Expand Down

0 comments on commit f523aef

Please sign in to comment.