From 9b2e4630d9a4ee5586081912e7b0a1af5858ef80 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 Content-Type: text/plain; charset=utf-8 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 --- .../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.30.2