Bug 21553: Remove JS error on the Rota view
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Oct 2018 14:18:17 +0000 (11:18 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 Oct 2018 18:03:32 +0000 (15:03 -0300)
JS error was:
 ReferenceError: _ is not defined

The strings after staff-global.js (for the function _)

Test plan:
Turn on StockRotation system preference

1) Go to a staff detail page
2) Switch to rota page
3) Check web developer tools

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt

index 88c7ed2..ca6e142 100644 (file)
@@ -6,7 +6,6 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Catalog &rsaquo; Stock rotation details for [% biblio.title | html %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'browser-strings.inc' %]
 </head>
 <body id="catalog_stockrotation" class="catalog">
 [% USE KohaDates %]
 </div>
 
 [% MACRO jsinclude BLOCK %]
+    [% INCLUDE 'browser-strings.inc' %]
     [% Asset.js("js/browser.js") | $raw %]
     <script type="text/javascript">
         var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));