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