From a943a924edff7db28495b0c92341f5357ad952ce Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 3 Jan 2018 17:41:09 +0000 Subject: [PATCH] Bug 20731: Move template JavaScript to the footer: Call number browser MARC plugin This patch modifies the call number browser plugin so that JavaScript is in the footer instead of the header. This patch also makes some unrelated changes: The page title has been corrected; DataTables code has been removed as it was unused. To test, apply the patch and configure a MARC framework to use cn_browser.pl as the plugin for tag 952 subfield o. Open an item for editing. The "Full call number" field should have an active "..." link next to it. Clicking this should trigger a popup window with the Call number browser. Confirm that submitting a new search from this window works correctly. Signed-off-by: Claire Gravely Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- .../cataloguing/value_builder/cn_browser.tt | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt index 122da191e1..0f242ec350 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt @@ -1,32 +1,20 @@ [% USE Asset %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Tools -[% Asset.css("css/datatables.css") %] +Koha › Cataloging › Call number browser [% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'datatables.inc' %] + +
[% UNLESS ( popup ) %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] [% END %] - - -

Call numbers browser

+

Call number browser

-
+
@@ -59,4 +47,15 @@ $(document).ready(function() -
+[% MACRO jsinclude BLOCK %] + +[% END %] + +[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] -- 2.39.5