From a52538833ea4335f9a673d5682f676290b2ad985 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 2 Feb 2023 13:29:04 +0000 Subject: [PATCH] Bug 32794: Expand tests for access method in XLST files This patch expands the checks for 856u to check for mailto, and adds a few conditiona checks of the first indicator to cover more methods Reference: https://www.oclc.org/bibformats/en/8xx/856.html To test: 1 - Edit a record and add a few 856 fields: 856 0 0 $umailto:test@example.org 856 0 0 $utest@example.org 856 2 0 $utelnet://pucc.princeton.edu 856 2 0 $upucc.princeton.edu 856 3 0 $u8885555555 2 - View staff details and results and opac details and results 3 - Note all links have been prepended with http:// 4 - Apply patch 5 - Refresh all views, ensure links are correctly formed Signed-off-by: Phil Ringnalda Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 353a0a85a3b1669d35df5d7cb4e320c8d378d91b) Signed-off-by: Matt Blenkinsop --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 11 ++++++++++- .../prog/en/xslt/MARC21slim2intranetResults.xsl | 11 ++++++++++- .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 11 ++++++++++- .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 11 ++++++++++- 4 files changed, 40 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index c5fd064e63..661d61adb2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -927,14 +927,23 @@ - + :// + + mailto: + ftp:// + + telnet:// + + + tel: + http:// diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index fa94894870..902751ad80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -963,14 +963,23 @@ - + :// + + mailto: + ftp:// + + telnet:// + + + tel: + http:// diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 34a6e0bbf7..429ad70d67 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1046,14 +1046,23 @@ - + :// + + mailto: + ftp:// + + telnet:// + + + tel: + http:// diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 9e7a16a2bb..ffd4e264d4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1176,14 +1176,23 @@ - + :// + + mailto: + ftp:// + + telnet:// + + + tel: + http:// -- 2.39.5