Koha/koha-tmpl/intranet-tmpl/lib/koha/cateditor
Phil Ringnalda 8371d10fa5
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
9. When you remember the plugin exists there too, edit your
Stuff & Junk authority, and in a 550 tag type One & Two in
$a and Three & Four in $x and click the plugin link, verify that
the search window has your search terms not cut off.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-05-18 15:25:54 +01:00
..
macros Bug 24789: Remove ITS macro format 2020-03-16 11:02:35 +00:00
koha-backend.js Bug 16424: Update default values in advanced editor when changing frameworks. 2018-09-28 19:01:51 +00:00
macros.js Bug 24789: Remove ITS macro format 2020-03-16 11:02:35 +00:00
marc-editor.js Bug 11446: Use encodeURIComponent on search terms in authority lookup plugin 2020-05-18 15:25:54 +01:00
marc-mode.js Bug 24452: Advanced editor - show multiple spaces visually 2020-01-23 10:24:53 +00:00
marc-record.js Bug 15197: In Rancor, multiple &/</" characters not escaped on saving 2015-11-17 09:48:59 -03:00
preferences.js Bug 11559: Rancor: advanced cataloging interface 2015-10-27 12:17:39 -03:00
resources.js Bug 17288 - Advanced Editor - Rancor - Helpers for 006 and 007 fields 2017-08-25 10:59:03 -03:00
search.js Bug 21666: Replace unsupported use attribute with more widely supported attribute 2018-11-08 02:18:45 +00:00
text-marc.js Bug 23045: Return record along with errors 2019-07-01 14:52:38 +01:00
widget.js Bug 21049: Set 007/00 when selecting material type (Rancor) 2019-03-28 13:46:04 +00:00