Bug 26606: Correctly URI-encode query string in URL loaded after deleting an authorit...
commit16e5a9d8dcf7ab332a455ff74e23115fde27a10f
authorPhil Ringnalda <phil@chetcolibrary.org>
Fri, 2 Oct 2020 22:35:04 +0000 (2 15:35 -0700)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 25 Oct 2020 23:16:14 +0000 (26 00:16 +0100)
tree7e24545ed4341a38e49a7ea479e31df4a3bbf359
parent5deb11623e52a531bd1c3a4cff80678800d973d0
Bug 26606: Correctly URI-encode query string in URL loaded after deleting an authority record

If you search for "this & that" and delete one of the results, after
it is deleted the search in the reloaded page is for "this " rather
than for "this & that". The template uses the url filter, which is
for filtering an entire URI where :, &, #, etc. should be left alone,
rather than the uri filter which is for filtering a URI component
where they should be encoded.

To test:
1) Go to Authorities > New authority > New from Z39.50/SRU
2) Search for the Author (corporate) this & that collective
3) Actions > Import, Save
4) From the detail for that authority, Edit > Edit as new (duplicate)
5) Edit the 110 field, add 2 at the end and Save
6) Search authorities for this & that
7) For one of the ones you created, Actions > Delete, confirm
8) The page that reloads should have a search for this & that, not
just for this

Signed-off-by: Didier Gautheron <didier.gautheron@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc