Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / cn_browser.tt
1 [% USE Asset %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Cataloging &rsaquo; Call number browser</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7
8 <body id="cat_cn_browser" class="cat">
9     <div class="main container-fluid">
10 [% UNLESS ( popup ) %]
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
13 [% END %]
14
15 <h1>Call number browser</h1>
16
17 <div>
18     <form method="get" action="cn_browser.pl">
19     <label for="searchcn">Search call number:</label>
20     <input type="text" id="cn_browser_input" name="q" value="[% q | html %]" />
21     <input id="cn_browser_submit" type="submit" value="Search" />
22     </form>
23 </div>
24 <br />
25
26 <table id="cn_browser_table">
27     <thead><tr>
28         <th>Call Number</th>
29         <th>Title</th>
30         <th>Branch</th>
31     </tr></thead>
32     <tbody>
33 [% FOREACH cn_loo IN cn_loop %]
34     <tr>
35     <td style="background:[% cn_loo.background | html %];">[% cn_loo.itemcallnumber | html %]</td>
36     <td style="background:[% cn_loo.background | html %];">
37         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber | html %]">
38             [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %]
39             [% IF ( cn_loo.author ) %]
40                 <span>by</span> [% cn_loo.author | html %]
41             [% END %]
42         </a>
43     </td>
44     <td style="background:[% cn_loo.background | html %];">[% cn_loo.branchname | html %]</td>
45     </tr>
46 [% END %]
47     </tbody>
48 </table>
49
50 [% MACRO jsinclude BLOCK %]
51     <script>
52         $(document).ready(function(){
53             $("#cn_browser_submit").click(function(){
54                 window.location.href='/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=cn_browser.pl&popup&q='+$("#cn_browser_input").val();
55                 return false;
56             });
57         });
58     </script>
59 [% END %]
60
61 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]