Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Phil Ringnalda e171d5fdd3
Bug 33144: Unescape text from authority lookup for advanced editor
While the basic editor is happy with an array of subfields it can
stuff into separate fields, the advanced editor needs to get a JS
string back from the authority lookup plugin, because it is going
to just add the whole thing as text. The string has to be HTML
entity encoded, both to not allow XSS and just to not break the
window, but it needs to then be unencoded before being inserted
into the editor.

Test plan:
1. Set the system preference EnableAdvancedCatalogingEditor to
   Enable
2. Edit any Topical Term authority, and at the end of tag 150
   subfield a, add & </script>
3. Cataloging - Advanced editor
4. Press return in the editor to get a new blank line, type 650
   and press tab three times, then type Ctrl-Shift-L
5. Search for your modified authority, and click Choose
6. Verify that the tiny popup opened by the search window finished
   its job and closed itself
7. Verify that your 650 now shows as "‡aAbduction &
   </script>‡vDrama" rather than "‡aAbduction  &amp;
   &lt;/script&gt;‡vDrama."

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-14 08:49:28 -03:00
..
acqui Bug 32746: Standardize structure around action fieldsets in acquisitions 2023-03-10 11:15:24 -03:00
admin Bug 32519: In Elasticsearch mappings table use of search field name and label 2023-03-10 12:04:10 -03:00
authorities Bug 33144: Unescape text from authority lookup for advanced editor 2023-03-14 08:49:28 -03:00
basket Bug 16522: (follow-up) Remove HTML links from email 2023-01-30 12:10:12 -03:00
batch
catalogue Bug 31028: (follow-up) Remove special:undefined 2023-03-07 14:54:38 -03:00
cataloguing Bug 32952: Standardize action fieldsets in authorities, cataloging, and circulation 2023-03-10 12:04:09 -03:00
circ Bug 30624: (QA follow-up) Use C4:Context to get permissions 2023-03-13 15:23:20 -03:00
clubs
course_reserves Bug 20256: Use new methods 2023-02-02 11:59:26 -03:00
erm Bug 32924: Add the ability to filter agreement by logged in user 2023-03-07 15:03:41 -03:00
errors Bug 32973: Use template wrapper for breadcrumbs: about, main, and error page 2023-02-27 11:39:31 -03:00
ill Bug 32576: Replace panels with page-sections 2023-03-02 09:37:43 -03:00
installer
labels Bug 32933: Use val() instead of attr("value") when getting field values with jQuery 2023-02-21 09:11:17 -03:00
mana
members Bug 32977: Add callnumber column to boraccount.tt 2023-03-10 11:15:24 -03:00
offline_circ
onboarding
patron_lists
patroncards Bug 32933: Use val() instead of attr("value") when getting field values with jQuery 2023-02-21 09:11:17 -03:00
plugins Bug 33189: Make plugin upload look for .kpz files in file picker 2023-03-10 10:17:04 -03:00
pos Bug 32409: Fix cashup searching with non latin-1 chars 2023-02-02 11:59:26 -03:00
recalls Bug 32688: Convert recalls awaiting pickup tabs to Bootstrap 2023-01-30 12:21:34 -03:00
reports Bug 33063: Make sure correct subgroup is pre-selected when duplicating reports 2023-03-10 11:15:23 -03:00
reserve
reviews
rotating_collections
serials Bug 33014: (QA follow-up) Move filters before navigation in sidebar 2023-02-24 17:04:20 -03:00
services
suggestion Bug 29935: Archived suggestions filter always visible 2023-03-10 11:15:37 -03:00
tags Bug 31768: Add tools toolbar to tags page 2023-02-07 10:31:12 -03:00
test
tools Bug 32021: Don't show 'appear in position' for Pages 2023-03-10 11:47:20 -03:00
virtualshelves Bug 32933: Use val() instead of attr("value") when getting field values with jQuery 2023-02-21 09:11:17 -03:00
about.tt Bug 3831: Add a warning to about page when there is no FA framework 2023-03-10 10:19:05 -03:00
auth.tt
intranet-main.tt Bug 31028: Only show pending concerns if there are some 2023-03-06 11:23:17 -03:00