Bug 13618: Add html filters to all the variables
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / cn_browser.tt
index 122da19..89c5a9c 100644 (file)
@@ -1,35 +1,23 @@
 [% USE Asset %]
+[% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Tools</title>
-[% Asset.css("css/datatables.css") %]
+<title>Koha &rsaquo; Cataloging &rsaquo; Call number browser</title>
 [% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'datatables.inc' %]
 </head>
+
 <body id="cat_cn_browser" class="cat">
+    <div class="main container-fluid">
 [% UNLESS ( popup ) %]
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]
 [% END %]
 
-<script language="JavaScript">
-$(document).ready(function()
-{
-    $("#cn_browser_table").DataTable({"paging":   false, "bFilter": false, "info": false, "bSort": false});
-    $("#cn_browser_submit").click(function(){
-        window.location.href='/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=cn_browser.pl&popup&q='+$("#cn_browser_input").val();
-        return false;
-    });
-}
-
-);
-</script>
-
-<h1 style="text-align:center">Call numbers browser</h1>
+<h1>Call number browser</h1>
 
-<div style="margin:auto;text-align:center;">
+<div>
     <form method="get" action="cn_browser.pl">
     <label for="searchcn">Search call number:</label>
-    <input type="text" id="cn_browser_input" name="q" value="[% q %]" />
+    <input type="text" id="cn_browser_input" name="q" value="[% q | html %]" />
     <input id="cn_browser_submit" type="submit" value="Search" />
     </form>
 </div>
@@ -44,19 +32,30 @@ $(document).ready(function()
     <tbody>
 [% FOREACH cn_loo IN cn_loop %]
     <tr>
-    <td style="background:[% cn_loo.background %];">[% cn_loo.itemcallnumber %]</td>
-    <td style="background:[% cn_loo.background %];">
-        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber %]">
-            [% cn_loo.title %] [% cn_loo.subtitle %] [% cn_loo.subtitle2 %]
+    <td style="background:[% cn_loo.background | html %];">[% cn_loo.itemcallnumber | html %]</td>
+    <td style="background:[% cn_loo.background | html %];">
+        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber | html %]">
+            [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %]
             [% IF ( cn_loo.author ) %]
-                <span>by</span> [% cn_loo.author %]
+                <span>by</span> [% cn_loo.author | html %]
             [% END %]
         </a>
     </td>
-    <td style="background:[% cn_loo.background %];">[% cn_loo.branchname %]</td>
+    <td style="background:[% cn_loo.background | html %];">[% cn_loo.branchname | html %]</td>
     </tr>
 [% END %]
     </tbody>
 </table>
 
-<br />
+[% MACRO jsinclude BLOCK %]
+    <script>
+        $(document).ready(function(){
+            $("#cn_browser_submit").click(function(){
+                window.location.href='/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=cn_browser.pl&popup&q='+$("#cn_browser_input").val();
+                return false;
+            });
+        });
+    </script>
+[% END %]
+
+[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]