]> git.koha-community.org Git - koha.git/commit
Bug 24713: JavaScript error on staff client catalog search results page
authorOwen Leonard <oleonard@myacpl.org>
Tue, 25 Feb 2020 18:08:59 +0000 (18:08 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Mar 2020 09:57:36 +0000 (09:57 +0000)
commit3aa52a4bf6e1fe7d94504f1eca384d4a4836d4ee
tree6cdc944043ea54053cdfba73fe09d1558b96b5c6
parentc2f1106f2e026fe6860e7e4df470540ce3e37405
Bug 24713: JavaScript error on staff client catalog search results page

This patch modifies the output of template toolkit variables so that
values in the in-page JavaScript are quoted. This avoids JavaScript
errors when the template variable is empty.

To test, apply the patch and perform a catalog search in the staff
client. Use the browser's developer tool to check for JavaScript errors
in the console. There should be none.

Test with AmazonCoverImages both on and off.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt