[Koha-bugs] [Bug 11446] Authority not searching full corporate name with and (&) symbol

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 24 22:06:49 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11446

--- Comment #6 from Phil Ringnalda <phil at chetcolibrary.org> ---
Created attachment 103707
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103707&action=edit
Bug 11446: Use encodeURIComponent on search terms in authority lookup plugin

While adding the data from the existing field to the auth_finder URI,
we're using encodeURI(), which is meant for an entire URI and thus
doesn't escape &. Things that are going into a querystring need
encodeURIComponent() instead.

Test plan:

1. Enable the system preference EnableAdvancedCatalogingEditor
2. Clear your browser cache, even a shift+reload won't get you a fresh
marc-editor.js for the advanced editor
3. Create a Topical Term authority with 150 $aThis & That$xStuff & Junk
4. In the Basic editor, use the authority plugin on the 650 field to
select that authority.
5. Click the authority plugin again, verify that the popup contains This
& That and Stuff & Junk rather than just This and Stuff
6. From the Cataloging home page choose Advanced editor
7. In a new line paste 650 _ _ ‡aThis & That‡xStuff & Junk
8. Type ctrl+shift+L and verify the popup shows both words in both
fields

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list