From ba0daf3819c07961526937ee7ed379b6cd597883 Mon Sep 17 00:00:00 2001 From: Slava Shishkin Date: Thu, 31 Jul 2025 20:51:35 +0300 Subject: [PATCH] Bug 40569: Escape quotation marks in series fields in XSLT search links 1. Create or edit a bibliographic record (beter more then one) 2. In field 490$a or 830$a, enter a series name with quotes, e.g. Test "Series" 3. Save the record 4. On the detail page, click the Series link (generated from the XSLT view)Series: Test "Series" 5. The search fails or returns an error due to malformed query 6. Apply the patch 7. Reload the bibliographic detail page 8. Click the Series link again 9. The search should return matching records --- .../prog/en/xslt/MARC21slimUtils.xsl | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index b30efc0e069..4cfd050fd63 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -413,7 +413,10 @@ Series: - ?q=se,phr:"" + ?q=se,phr: + + + @@ -438,7 +441,10 @@ - ?q=se,phr:"" + ?q=se,phr: + + + @@ -538,7 +544,10 @@ - ?q=se,phr:"" + ?q=se,phr: + + + -- 2.50.1