From 12bc7a3ebda114cdf02c96232fa7bd0a8d7dece7 Mon Sep 17 00:00:00 2001 From: Fatimah Zulfiqar Date: Tue, 1 Oct 2024 15:25:05 +0200 Subject: [PATCH] files: updated annotate button preview condition --- templates/semantic-ui/invenio_app_rdm/records/macros/files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/semantic-ui/invenio_app_rdm/records/macros/files.html b/templates/semantic-ui/invenio_app_rdm/records/macros/files.html index b30a8cff..cab13d73 100644 --- a/templates/semantic-ui/invenio_app_rdm/records/macros/files.html +++ b/templates/semantic-ui/invenio_app_rdm/records/macros/files.html @@ -121,7 +121,7 @@

{%- set annostor_config = config.ANNOSTOR_COMMUNITIES[slug] if slug in config.ANNOSTOR_COMMUNITIES else None -%} {%- if annostor_config is not none -%} {%- set annostor_url = annostor_config.annostor_instance ~ "annotate/" ~ annostor_config.repo_instance ~ "/" ~ annostor_config.task ~ "/" ~ record.id -%} - {%- if permissions.can_edit and file_type=="pdf" and file.metadata.previewer == "mirador" -%} + {%- if permissions.can_edit and file_type=="pdf" and file.metadata.previewer == "image_previewer" -%} {{_("Annotate")}}