Koha/koha-tmpl/intranet-tmpl/prog/en
Owen Leonard 955d3a53e7
Bug 34180: Template variable in JavaScript prevents authority MARC preview from displaying
Since template variables cannot be processed by JS, we must use a
template to declare a JS variable which the JS file can used. This patch
corrects this problem in the JS file which handles display of the
authority MARC preview from the authority search results page.

To test, apply the patch and go to Authorities.

- Perform a search which will return multiple authority results.
- Click "Actions -> MARC preview." The preview should display correctly.
- Click "Actions -> MARC preview" on another search result. This preview
  should also look correct.
- There should be no JavaScript errors in the browser console.

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 6d433ffa89)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-17 16:26:25 +01:00
..
data
includes Bug 34180: Template variable in JavaScript prevents authority MARC preview from displaying 2023-07-17 16:26:25 +01:00
modules Bug 34094: Use DefaultPatronSearchMethod consistently 2023-07-17 16:04:31 +01:00
xslt Bug 29185: (QA follow-up) Quote title search in GetCnumSearchURL 2023-05-10 15:26:30 -03:00