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 4d3ee964c9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
8bc4e05918
commit
d6a95c8a8a
|
|
@ -52,7 +52,7 @@ function GetZ3950Terms(){
|
|||
for(var i=0,len=mandatories.length; i<len ; i++){
|
||||
var field_value = document.getElementById(mandatories[i]).value;
|
||||
if( field_value ){
|
||||
strQuery += "&"+mandatories_label[i]+"="+field_value;
|
||||
strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
|
||||
}
|
||||
}
|
||||
return strQuery;
|
||||
|
|
|
|||
Loading…
Reference in New Issue