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 commit4d3ee964c9) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitd6a95c8a8a) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
d06db33ac5
commit
a0daf79db7
|
|
@ -48,7 +48,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