Bug 18499: Use items cn_source in cn_browser.pl
[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 id="cn_browser" method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.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         <input name="plugin_name" type="hidden" value="cn_browser.pl"/>
23         <input name="popup" type="hidden" value="[% popup %]"/>
24         </br>
25         <label for="cn_source">Callnumber classification scheme</label>
26         <select name="cn_source" form="cn_browser">
27             [% FOREACH class_source IN class_sources %]
28                 [% IF class_source.cn_source == cn_source %]
29                     <option value="[% class_source.cn_source | html %]" selected="selected">[% class_source.description | html %]</option>
30                 [% ELSE %]
31                     <option value="[% class_source.cn_source | html %]">[% class_source.description | html %]</option>
32                 [% END %]
33             [% END %]
34         </select>
35     </form>
36 </div>
37 <br />
38
39 <table id="cn_browser_table">
40     <thead><tr>
41         <th>Call number</th>
42         <th>Title</th>
43         <th>Library</th>
44     </tr></thead>
45     <tbody>
46 [% FOREACH cn_loo IN cn_loop %]
47     <tr>
48     <td style="background:[% cn_loo.background | html %];">[% cn_loo.itemcallnumber | html %]</td>
49     <td style="background:[% cn_loo.background | html %];">
50         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber | uri %]">
51             [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %]
52             [% IF ( cn_loo.author ) %]
53                 <span>by</span> [% cn_loo.author | html %]
54             [% END %]
55             [% IF ( cn_loo.barcode ) %] ([% cn_loo.barcode %])[% END %]
56         </a>
57     </td>
58     <td style="background:[% cn_loo.background | html %];">[% cn_loo.branchname | html %]</td>
59     </tr>
60 [% END %]
61     </tbody>
62 </table>
63
64 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]