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