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