Merge remote-tracking branch 'origin/new/bug_7016'
[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
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-copynumber">Copy number</th>
50         <th class="hq-enumchron">Enumeration</th>
51         <th class="hq-barcode">Barcode</th>
52         <th class="hq-patron">Patron</th>
53         <th class="hq-sendto">Send to</th>
54         <th class="hq-date">Date</th>
55         <th class="hq-notes">Notes</th>
56     </tr>
57         </thead>
58      <tbody>[% FOREACH itemsloo IN itemsloop %]
59         <tr>
60             <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>
61                          <p><strong>[% itemsloo.author %]</strong>
62                        <div class="hq-pubdata">  [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
63                                                                                  [% IF ( itemsloo.publicationyear ) %], [% itemsloo.publicationyear %]
64                                                                                  [% ELSIF ( itemsloo.copyrightdate ) %], [% itemsloo.copyrightdate %][% END %]
65                                          [% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
66                                          [% IF ( itemsloo.size ) %][% itemsloo.size %][% END %] [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]</p>
67                         </div>
68                         </td>
69             <td class="hq-collection">[% itemsloo.ccode %]</td>
70             <td class="hq-callnumber">[% itemsloo.location %] [% itemsloo.itemcallnumber %]</td>
71             <td class="hq-copynumber">[% itemsloo.copynumber %]</td>
72             <td class="hq-enumchron">[% itemsloo.enumchron %]</td>
73             <td class="hq-barcode">
74                 [% IF ( itemsloo.item_level_request ) %]
75                         <em>Only Item:</em> <strong>[% itemsloo.barcode %]</strong>
76                 [% ELSE %]
77                     <strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
78                 [% END %]
79             </td>
80                         <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>
81             <td class="hq-sendto">[% itemsloo.pickbranch %]</td>
82             <td class="hq-date">[% itemsloo.reservedate %]</td>
83             <td class="hq-notes">[% itemsloo.notes %]</td>
84         </tr>
85     [% END %]</tbody>
86     </table>
87         [% END %] 
88         [% END %]
89
90 [% UNLESS ( total ) %]
91 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
92         <fieldset class="rows">
93         <ol>
94         <li><label for="branchlimit">Library: </label><select name="branchlimit" id="branchlimit">
95                 <option value="">All</option>
96             [% FOREACH branchloo IN branchloop %]
97                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
98                                 [% ELSE %]
99                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
100                                 [% END %]
101             [% END %]
102             </select></li>
103                         <!-- FIXME Not working yet
104                         <li><label for="itemtypeslimit">Item Type: </label><select name="itemtypeslimit" id="itemtypeslimit">
105                 <option value="">All</option>
106                 [% FOREACH itemtypeloo IN itemtypeloop %]
107                 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
108                                 [% ELSE %]
109                                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
110                                 [% END %]
111                 [% END %]
112             </select></li>
113                         -->
114     </ol></fieldset>
115     <fieldset class="action">    <input type="submit" value="Submit" />
116         <input type="hidden" name="run_report" value="1" /></fieldset>
117 </form>
118 [% END %]
119
120 </div>
121 </div>
122 </div>
123 [% INCLUDE 'intranet-bottom.inc' %]