From 1fa5a8d7a5d956bf178aeb316a6bc73dab3c944b 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 Signed-off-by: Caroline Cyr La Rose Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass --- .../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 b4b8c7dc2e..26e9964e29 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 @@