From fa88a3aca0af41fcc940857b6451621b352596a9 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Fri, 16 Apr 2021 09:55:25 -0700 Subject: [PATCH] Bug 28159: URI-encode existing values put into query string for z39.50 authority search When you trigger a z39.50 search from an existing authority record, Koha prefills the search form with the value in the record. But because that value passes through a URL, if it isn't URI-encoded characters like & or ; will cut off the value. Test plan: 1) Authorities - New authority - Corporate Name 2) Tab 1, click "HEADING-CORPORATE NAME" to expand subfields 3) Subfield a, type foo & bar ; baz 4) Click Z39.50/SRU search 5) Ensure the whole string appears in the Author (corporate) field in the popup --- .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index 8435ae756e..c6090f8f62 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -53,7 +53,7 @@ function GetZ3950Terms(){ for(var i=0,len=mandatories.length; i