Merge remote-tracking branch 'origin/new/bug_7146'
[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>
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'cat-search.inc' %]
9
10 <script type="text/javascript" src="[% ( themelang ) %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
11 <script type="text/javascript">//<![CDATA[
12 $(document).ready(function() {
13         $("#holdst").tablesorter({
14                 sortList: [[6,0]],
15         });
16 });
17 //]]>
18 </script>
19
20 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
21 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
22 &rsaquo; <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds Queue</a>
23 [% IF ( run_report ) %] &rsaquo; Results[% END %]
24 </div>
25
26 <div id="doc" class="yui-t7">
27
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-g">
31
32 <h1>Holds Queue</h1>
33
34 [% IF ( run_report ) %]
35     [% IF ( total ) %]
36         <div class="results">[% total %] items found for
37             [% IF ( branch ) %][% branch %][% ELSE %]ALL libraries[% END %]
38         </div>
39     [% ELSE %]
40         <div class="dialog message">No items found.</div>
41     [% END %]
42     [% IF ( itemsloop ) %]
43 <table id="holdst">
44         <thead>
45         <tr>
46         <th class="hq-title">Title</th>
47         <th class="hq-collection">Collection</th>
48         <th class="hq-callnumber">Call Number</th>
49         <th class="hq-barcode">Barcode</th>
50         <th class="hq-patron">Patron</th>
51         <th class="hq-sendto">Send To</th>
52         <th class="hq-date">Date</th>
53     </tr>
54         </thead>
55      <tbody>[% FOREACH itemsloo IN itemsloop %]
56         <tr>
57             <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>
58                          <p><strong>[% itemsloo.author %]</strong>
59                        <div class="hq-pubdata">  [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
60                                                                                  [% IF ( itemsloo.publicationyear ) %], [% itemsloo.publicationyear %]
61                                                                                  [% ELSIF ( itemsloo.copyrightdate ) %], [% itemsloo.copyrightdate %][% END %]
62                                          [% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
63                                          [% IF ( itemsloo.size ) %][% itemsloo.size %][% END %] [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]</p>
64                         </div>
65                         </td>
66             <td class="hq-collection">[% itemsloo.ccode %]</td>
67             <td class="hq-callnumber">[% itemsloo.location %] [% itemsloo.itemcallnumber %] [% itemsloo.enumchron %]</td>
68             <td class="hq-barcode">
69                 [% IF ( itemsloo.item_level_request ) %]
70                         <em>Only Item:</em> <strong>[% itemsloo.barcode %]</strong>
71                 [% ELSE %]
72                     <strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
73                 [% END %]
74             </td>
75                         <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>
76             <td class="hq-sendto">[% itemsloo.pickbranch %]</td>
77             <td class="hq-date">[% itemsloo.reservedate %]</td>
78         </tr>
79     [% END %]</tbody>
80     </table>
81         [% END %] 
82         [% END %]
83
84 [% UNLESS ( total ) %]
85 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
86         <fieldset class="rows">
87         <ol>
88         <li><label for="branchlimit">Library: </label><select name="branchlimit" id="branchlimit">
89                 <option value="">All</option>
90             [% FOREACH branchloo IN branchloop %]
91                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
92                                 [% ELSE %]
93                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
94                                 [% END %]
95             [% END %]
96             </select></li>
97                         <!-- FIXME Not working yet
98                         <li><label for="itemtypeslimit">Item Type: </label><select name="itemtypeslimit" id="itemtypeslimit">
99                 <option value="">All</option>
100                 [% FOREACH itemtypeloo IN itemtypeloop %]
101                 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
102                                 [% ELSE %]
103                                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
104                                 [% END %]
105                 [% END %]
106             </select></li>
107                         -->
108     </ol></fieldset>
109     <fieldset class="action">    <input type="submit" value="Submit" />
110         <input type="hidden" name="run_report" value="1" /></fieldset>
111 </form>
112 [% END %]
113
114 </div>
115 </div>
116 </div>
117 [% INCLUDE 'intranet-bottom.inc' %]