From b7b847e846a8d975e215a6bd116ee0ef7e91ed51 Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Wed, 26 Jun 2024 15:03:30 +0000 Subject: [PATCH] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin. https://bugs.koha-community.org/show_bug.cgi?id=37916 --- .../bootstrap/en/includes/shelfbrowser.inc | 6 ++++-- .../bootstrap/en/modules/opac-readingrecord.tt | 5 ++++- .../bootstrap/en/modules/opac-shelves.tt | 5 ++++- .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 15 +++++++++------ 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc index 78c6139142..63964192d5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc @@ -28,10 +28,12 @@ [% img_title = item.biblionumber %] [% END %] - [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || BakerTaylorEnabled || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) ) %] + [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || BakerTaylorEnabled || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) || CoverImagePlugins ) %] [% IF ( OPACLocalCoverImages ) %] -
+
+ Local cover image +
[% END %] [% IF ( OPACAmazonCoverImages ) %] [% IF ( item.browser_normalized_isbn ) %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index 34aebe1983..3a80f1c29d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -5,8 +5,10 @@ [% USE AdditionalContents %] [% USE Asset %] [% USE Price %] +[% USE KohaPlugins %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] +[% SET CoverImagePlugins = KohaPlugins.get_plugins_opac_cover_images %] [% INCLUDE 'doc-head-open.inc' %] Your checkout history › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] @@ -139,7 +141,7 @@ [% END %] [% issuetype | html %] - + [% SET normalized_isbn = biblio.normalized_isbn %] [% IF OPACAmazonCoverImages %] [% IF normalized_isbn %] @@ -227,6 +229,7 @@ [% BLOCK jsinclude %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] +[% CoverImagePlugins | $raw %]