From a8c139eed68105d691126dda1b3345a3f6c36d2b Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 4 Oct 2024 15:34:37 +0000 Subject: [PATCH] Bug 38096: OPAC: Preparation The OPAC logic for 856 in results page and detail page has diverged. This commit ensures the 856 in the OPAC detail and search results pages are consistent, in preparation to become DRY in the following commits. With this DRY refactor, the following divergences are now aligned: - 856 block now calls AddMissingProtocol regardless of value OPACURLOpenInNewWindow (previously was only being called if OPACURLOpenInNewWindow was 0). Now it's in line with what exists in MARC21slim2OPACDetail.xsl - substring(,1,6)='image/' is also now a consideration when OPACURLOpenInNewWindow is 1. (previously was only being called if OPACURLOpenInNewWindow was 0). This is now in line with that exists in MARC21slim2OPACDetail.xsl --- .../en/xslt/MARC21slim2OPACResults.xsl | 55 ++----------------- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 9da8f22543c..ed1d22c5ca4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1193,8 +1193,8 @@ -- 2.39.5