From 1be645eba8d0d0b8a20a1ec953d817bbe006a69c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 23 Oct 2025 10:57:58 +0200 Subject: [PATCH] Bug 41081: Remove spaces around 856$u in results and detail xslt Content-Type: text/plain; charset=utf-8 This patch does prevent creating useless links built on spaces like http://%20%20%20%20 on the bug report. A next step would be to stop preventing to create them when validating during cataloguing. Test plan: Check without patch. Create biblio with 856u having just a few spaces. Verify that you see a useless Online resources link on OPAC or intranet (detail and results). Apply patch. Restart all. Verify that you do not see the link anymore. Signed-off-by: Marcel de Rooy --- .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 2 +- 4 files changed, 4 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 70adb5ffbc..5c8f8bbae7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -946,7 +946,7 @@ - + Online resources: diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index b03a8c1f9d..2b4d8eb918 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -978,7 +978,7 @@ - + Online resources: diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 5d09a54b97..2d5c76607c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1065,7 +1065,7 @@ - + Online resources:
    diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 96acfdced1..9da8f22543 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1187,7 +1187,7 @@ - +
    Online resources:
      -- 2.39.5