Bug 11392: Allow translating the viewlog module and action names
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / view_holdsqueue.tt
1 [% USE KohaDates %]
2 [% USE ItemTypes %]
3 [% USE AuthorisedValues %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <style type="text/css"> p { margin-top: 0; }</style>
8 </head>
9 <body id="circ_view_holdsqueue" class="circ">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
12 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
13 [% INCLUDE 'datatables.inc' %]
14 <script type="text/javascript">//<![CDATA[
15 $(document).ready(function() {
16     $("#holdst").dataTable({
17         "aaSorting": [[ 3, "asc" ]],
18         "aoColumns": [
19             { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
20         ],
21         "sDom": 't',
22         "bPaginate": 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 ( branchlimit ) %][% branchlimit %][% 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-itemtype">Item type</th>
57         <th class="hq-callnumber">Call number</th>
58         <th class="hq-copynumber">Copy number</th>
59         <th class="hq-enumchron">Enumeration</th>
60         <th class="hq-barcode">Barcode</th>
61         <th class="hq-patron">Patron</th>
62         <th class="hq-sendto">Send to</th>
63         <th class="hq-date">Date</th>
64         <th class="hq-notes">Notes</th>
65     </tr>
66         </thead>
67      <tbody>[% FOREACH itemsloo IN itemsloop %]
68         <tr>
69             <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>
70                          <p><strong>[% itemsloo.author %]</strong>
71                        <div class="hq-pubdata">  [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
72                                                                                  [% IF ( itemsloo.publicationyear ) %], [% itemsloo.publicationyear %]
73                                                                                  [% ELSIF ( itemsloo.copyrightdate ) %], [% itemsloo.copyrightdate %][% END %]
74                                          [% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
75                                          [% IF ( itemsloo.size ) %][% itemsloo.size %][% END %] [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]</p>
76                         </div>
77                         </td>
78             <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %]</td>
79             <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) %]</td>
80             <td class="hq-callnumber">[% itemsloo.location %] [% itemsloo.itemcallnumber %]</td>
81             <td class="hq-copynumber">[% itemsloo.copynumber %]</td>
82             <td class="hq-enumchron">[% itemsloo.enumchron %]</td>
83             <td class="hq-barcode">
84                 [% IF ( itemsloo.item_level_request ) %]
85                         <em>Only Item:</em> <strong>[% itemsloo.barcode %]</strong>
86                 [% ELSE %]
87                     <strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
88                 [% END %]
89             </td>
90                         <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>
91             <td class="hq-sendto">[% itemsloo.pickbranch %]</td>
92             <td class="hq-date"><span title="[% itemsloo.reservedate %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
93             <td class="hq-notes">[% itemsloo.notes %]</td>
94         </tr>
95     [% END %]</tbody>
96     </table>
97         [% END %] 
98         [% END %]
99
100 [% UNLESS ( total ) %]
101 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
102         <fieldset class="rows">
103         <ol>
104         <li><label for="branchlimit">Library: </label><select name="branchlimit" id="branchlimit">
105                 <option value="">All</option>
106             [% FOREACH branchloo IN branchloop %]
107                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
108                                 [% ELSE %]
109                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
110                                 [% END %]
111             [% END %]
112             </select></li>
113                         <!-- FIXME Not working yet
114                         <li><label for="itemtypeslimit">Item Type: </label><select name="itemtypeslimit" id="itemtypeslimit">
115                 <option value="">All</option>
116                 [% FOREACH itemtypeloo IN itemtypeloop %]
117                 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
118                                 [% ELSE %]
119                                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
120                                 [% END %]
121                 [% END %]
122             </select></li>
123                         -->
124     </ol></fieldset>
125     <fieldset class="action">    <input type="submit" value="Submit" />
126         <input type="hidden" name="run_report" value="1" /></fieldset>
127 </form>
128 [% END %]
129
130 </div>
131 </div>
132 </div>
133 [% INCLUDE 'intranet-bottom.inc' %]