From cd71fad77b669c7aa365372cd3be714792e553e7 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 15 Feb 2022 18:55:59 +0000 Subject: [PATCH] Bug 21225: Add Syndetics cover images to staff client. To test: 1 - Enable system preferences: SyndeticsEnabled SyndeticsCoverImages SyndeticsClientCode (you will need a valid code for testing) 2 - Perform a search on the staff client 3 - Check that results have images if upc,oclc number, or isbn existin record 4 - Confirm that dtails paeg displays same image 5 - Confirm size on details page follows syspref SyndeticsCoverImageSize Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- .../prog/en/modules/catalogue/detail.tt | 18 ++++++++++++++++-- .../prog/en/modules/catalogue/results.tt | 16 ++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 5eca90dcf2..1f638e45ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -90,6 +90,7 @@ [% IntranetCoce = Koha.Preference('IntranetCoce') %] [% CoceProviders = Koha.Preference('CoceProviders') %] [% CoceHost = Koha.Preference('CoceHost') %] +[% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %] [% INCLUDE 'cat-toolbar.inc' %] [% IF decoding_error %] @@ -110,7 +111,7 @@ [% END %] - [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] + [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
[% ELSE %]
@@ -198,7 +199,7 @@ [% END %] - [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] + [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
@@ -236,6 +237,19 @@
[% END %] + [% IF ( SyndeticsCovers ) %] + [% IF ( nomarlized_isbn || normalized_upc || normalized_oclc ) %] +
+ + + +
Image from Syndetics
+
+ [% ELSE %] + No cover image available + [% END %] + [% END %] + [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] [% SET custom_cover_image_url = biblio.custom_cover_image_url %] [% IF custom_cover_image_url %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 4295c11ed4..c9887f9d59 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -20,6 +20,7 @@ [% IntranetCoce = Koha.Preference('IntranetCoce') %] [% CoceProviders = Koha.Preference('CoceProviders') %] [% CoceHost = Koha.Preference('CoceHost') %] +[% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %]