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