Bug 13750: Fix capitalization All vs ALL
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / view_holdsqueue.tt
1 [% USE KohaDates %]
2 [% USE ItemTypes %]
3 [% USE Branches %]
4 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <style type="text/css"> p { margin-top: 0; }</style>
9 </head>
10 <body id="circ_view_holdsqueue" class="circ">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
13 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
14 [% INCLUDE 'datatables.inc' %]
15 <script type="text/javascript">//<![CDATA[
16 $(document).ready(function() {
17     $("#holdst").dataTable({
18         "aaSorting": [[ 3, "asc" ]],
19         "aoColumns": [
20             { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
21         ],
22         "sDom": 't',
23         "bPaginate": false
24     });
25 });
26 //]]>
27 </script>
28
29 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
30 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
31 &rsaquo; <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
32 [% IF ( run_report ) %] &rsaquo; Results[% END %]
33 </div>
34
35 <div id="doc" class="yui-t7">
36
37    <div id="bd">
38         <div id="yui-main">
39         <div class="yui-g">
40
41 <h1>Holds queue</h1>
42
43 [% IF ( run_report ) %]
44     [% IF ( total ) %]
45         <div class="results">[% total %] items found for
46             [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) %][% ELSE %]All libraries[% END %]
47         </div>
48     [% ELSE %]
49         <div class="dialog message">No items found.</div>
50     [% END %]
51     [% IF ( itemsloop ) %]
52 <table id="holdst">
53         <thead>
54         <tr>
55         <th class="hq-title">Title</th>
56         <th class="hq-collection">Collection</th>
57         <th class="hq-itemtype">Item type</th>
58         <th class="hq-callnumber">Call number</th>
59         <th class="hq-copynumber">Copy number</th>
60         <th class="hq-enumchron">Enumeration</th>
61         <th class="hq-barcode">Barcode</th>
62         <th class="hq-patron">Patron</th>
63         <th class="hq-sendto">Send to</th>
64         <th class="hq-date">Date</th>
65         <th class="hq-notes">Notes</th>
66     </tr>
67         </thead>
68      <tbody>[% FOREACH itemsloo IN itemsloop %]
69         <tr>
70             <td class="hq-title"><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]"><strong>[% itemsloo.title |html %]</strong> [% IF ( itemsloo.subtitle ) %][% itemsloo.subtitle %][% END %]</a></p>
71                          <p><strong>[% itemsloo.author %]</strong>
72                        <div class="hq-pubdata">  [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
73                                                                                  [% IF ( itemsloo.publicationyear ) %], [% itemsloo.publicationyear %]
74                                                                                  [% ELSIF ( itemsloo.copyrightdate ) %], [% itemsloo.copyrightdate %][% END %]
75                                          [% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
76                                          [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') %][% END %] [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]</p>
77                         </div>
78                         </td>
79             <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %]</td>
80             <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) %]</td>
81             <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetByCode( 'LOC', itemsloo.location ) %]</em> [% END %][% itemsloo.itemcallnumber %]</td>
82             <td class="hq-copynumber">[% itemsloo.copynumber %]</td>
83             <td class="hq-enumchron">[% itemsloo.enumchron %]</td>
84             <td class="hq-barcode">
85                 [% IF ( itemsloo.item_level_request ) %]
86                         <em>Only Item:</em> <strong>[% itemsloo.barcode %]</strong>
87                 [% ELSE %]
88                     <strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
89                 [% END %]
90             </td>
91                         <td class="hq-patron"><p><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% itemsloo.cardnumber %]#reserves">[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])</a></p> <p>[% itemsloo.phone %]</p></td>
92             <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) %]</td>
93             <td class="hq-date"><span title="[% itemsloo.reservedate %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
94             <td class="hq-notes">[% itemsloo.notes %]</td>
95         </tr>
96     [% END %]</tbody>
97     </table>
98         [% END %] 
99         [% END %]
100
101 [% UNLESS ( total ) %]
102 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
103         <fieldset class="rows">
104         <ol>
105         <li><label for="branchlimit">Library: </label><select name="branchlimit" id="branchlimit">
106                 <option value="">All</option>
107             [% FOREACH branchloo IN branchloop %]
108                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
109                                 [% ELSE %]
110                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
111                                 [% END %]
112             [% END %]
113             </select></li>
114                         <!-- FIXME Not working yet
115                         <li><label for="itemtypeslimit">Item Type: </label><select name="itemtypeslimit" id="itemtypeslimit">
116                 <option value="">All</option>
117                 [% FOREACH itemtypeloo IN itemtypeloop %]
118                 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
119                                 [% ELSE %]
120                                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
121                                 [% END %]
122                 [% END %]
123             </select></li>
124                         -->
125     </ol></fieldset>
126     <fieldset class="action">    <input type="submit" value="Submit" />
127         <input type="hidden" name="run_report" value="1" /></fieldset>
128 </form>
129 [% END %]
130
131 </div>
132 </div>
133 </div>
134 [% INCLUDE 'intranet-bottom.inc' %]