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