From daac367f300cea09688aa184c6ead1cd9a978f15 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 10 Apr 2023 15:12:05 +0000 Subject: [PATCH] Bug 32041: Enforce SyndeticsCoverImageSize everywhere This patch add the SyndeticsCoverImageSize to the folling pages: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt To test: 1. Turn on SyndeticsCoverImages and SyndeticsEnabled. 2. Check the staff results page and make sure you can change the image size via SyndeticsCoverImageSize. 3. Check the OPAC results page. 4. Turn on 'OPACShelfBrowser' and make sure you change the image sizes within the shelf browser. 5. Test the OPAC checkout history page. ( opac-readingrecord.tt ) 6. Have a checkout and an overdue to test the 2 tables on the OPAC summary pahe. ( opac-user.tt ) Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 3 ++- koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- .../opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 4 ++-- 7 files changed, 9 insertions(+), 8 deletions(-) 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 b6e4380640..53ca58dbae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -22,6 +22,7 @@ [% CoceProviders = Koha.Preference('CoceProviders') %] [% CoceHost = Koha.Preference('CoceHost') %] [% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %] +[% SyndeticsCoverImageSize = Koha.Preference('SyndeticsCoverImageSize') %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] @@ -486,7 +487,7 @@ [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
- Cover from Syndetics + Cover from Syndetics
Syndetics cover image
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc index 51c89e767f..7f6048836d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc @@ -44,7 +44,7 @@ [% IF ( SyndeticsEnabled ) %] [% IF ( SyndeticsCoverImages ) %] [% IF ( content_identifier_exists ) %] - + [% ELSE %] No cover image available [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 6e62fe5f97..1bb3debb6d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -900,7 +900,7 @@ [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] [% IF ( XISBN.content_identifier_exists ) %] - + [% ELSE %] No cover image available [% END # / IF XISBN.content_identifier_exists %] 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 52140ce12d..9cc710bc49 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -149,7 +149,7 @@ [% END %] [% IF SyndeticsEnabled && SyndeticsCoverImages %] - + [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 95fa8d6304..86626d55c7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -362,7 +362,7 @@ [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %] - + [% ELSE %] No cover image available [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 627e9373b0..542683f615 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -424,7 +424,7 @@ [% END %] [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] - + [% END %] [% IF ( GoogleJackets ) %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index c6ce700486..ebaecc5d3d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -352,7 +352,7 @@ [% END %] [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] - + [% END %] [% END # / IF JacketImages %] @@ -722,7 +722,7 @@ [% END %] [% IF ( SyndeticsCoverImages ) %] - + [% END %] [% END # /IF jacketcell %] -- 2.39.5