From 4b290f45cc15182afe5b5d6ddda9b2a5948de4d8 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 16 Oct 2018 17:09:29 +0000 Subject: [PATCH] Bug 21583: Don't use Asset.js for external script files To test: 1 - Enable Novelist in staff client: NovelistSelectStaffEnabled: Add NovelistSelectStaffProfile: anything NovelistSelectPassword: anything ( these don't need to be valid, just not blank ) 2 - Pull up a record detail page in staff client 3 - View page source - search for ns2init.js 4 - You won't find it 5 - Apply patch 6 - Reload details 7 - Search page source for ns2init.js 8 - It loaded! Huzzah! Signed-off-by: George Williams Signed-off-by: Chris Cormack Signed-off-by: Nick Clemens (cherry picked from commit 55225ba10b824f7e881738a20c751200843d3ec9) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index dbd657d329..cdf66194a1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1051,7 +1051,7 @@ });[% END %] [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] - [% Asset.js("https://imageserver.ebscohost.com/novelistselect/ns2init.js") %] + [% END %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %] -- 2.20.1