Bug 31928: Add page-section to callnumber browser value builder (cat)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / cn_browser.tt
1 [% USE Asset %]
2 [% USE AuthorisedValues %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Call number browser &rsaquo; Cataloging &rsaquo; Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="cat_cn_browser" class="cat">
10     <div class="main container-fluid">
11 [% UNLESS ( popup ) %]
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
14 [% END %]
15
16 <h1>Call number browser</h1>
17
18     <form id="cn_browser" method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl">
19         <fieldset class="brief">
20             <ol>
21             <li>
22                 <label for="searchcn">Search call number:</label>
23                 <input type="text" id="cn_browser_input" name="q" value="[% q | html %]" />
24                 <input name="plugin_name" type="hidden" value="cn_browser.pl"/>
25                 <input name="popup" type="hidden" value="[% popup | html %]"/>
26             </li>
27             <li>
28                 <label for="cn_source">Call number classification scheme:</label>
29                 <select name="cn_source" form="cn_browser">
30                     [% FOREACH class_source IN class_sources %]
31                         [% IF class_source.cn_source == cn_source %]
32                             <option value="[% class_source.cn_source | html %]" selected="selected">[% class_source.description | html %]</option>
33                         [% ELSE %]
34                             <option value="[% class_source.cn_source | html %]">[% class_source.description | html %]</option>
35                         [% END %]
36                     [% END %]
37                 </select>
38             </li>
39             </ol>
40             <fieldset class="action">
41                 <input id="cn_browser_submit" type="submit" value="Search" />
42             </fieldset>
43         </fieldset>
44     </form>
45
46 <div class="page-section">
47     <table id="cn_browser_table">
48         <thead><tr>
49             <th>Call number</th>
50             <th>Title</th>
51             <th>Library</th>
52             <th>Collection</th>
53         </tr></thead>
54         <tbody>
55     [% FOREACH cn_loo IN cn_loop %]
56         <tr>
57         <td style="background:[% cn_loo.background | html %];">[% cn_loo.itemcallnumber | html %]</td>
58         <td style="background:[% cn_loo.background | html %];">
59             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber | uri %]">
60                 [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %]
61                 [% IF ( cn_loo.author ) %]
62                     <span>by</span> [% cn_loo.author | html %]
63                 [% END %]
64                 [% IF ( cn_loo.barcode ) %] ([% cn_loo.barcode | html %])[% END %]
65             </a>
66         </td>
67         <td style="background:[% cn_loo.background | html %];">[% cn_loo.branchname | html %]</td>
68         <td style="background:[% cn_loo.background | html %];">[% AuthorisedValues.GetByCode( 'CCODE', cn_loo.ccode ) | html %]</td>
69         </tr>
70     [% END %]
71         </tbody>
72     </table>
73 </div> <!-- /.page-section -->
74
75 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]