]> git.koha-community.org Git - koha.git/commit
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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 13:52:53 +0000 (15:52 +0200)
commit4d3ee964c9cb2a2737efc1feb184f64911fb8fbf
treee4774c31bea0123f3e50e0f5ef03551affb8e11f
parent685fcb1880b5be44283620a0f7eacc3f2064680d
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>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt