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