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