Bug 28159: URI-encode existing values put into query string for z39.50 authority...
authorPhil Ringnalda <phil@chetcolibrary.org>
Fri, 16 Apr 2021 16:55:25 +0000 (09:55 -0700)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 12 May 2021 14:52:52 +0000 (16:52 +0200)
commitd6a95c8a8abc8b4ba3d4fbd3872cc986dd8e90cd
tree66561f63e0e821bb1a6c0d428e2d9342bbfdf84f
parent8bc4e059187a20487c3b1a9c29d4c6ea7555c094
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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4d3ee964c9cb2a2737efc1feb184f64911fb8fbf)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt