Bug 11486: Show renewal count on 'check out' and 'details' tabs in patron record
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / view_holdsqueue.tt
index f016158..f42bb47 100644 (file)
@@ -1,15 +1,35 @@
+[% USE ItemTypes %]
+[% USE AuthorisedValues %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Circulation &rsaquo; Holds Queue</title>
+<title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
 [% INCLUDE 'doc-head-close.inc' %]
 <style type="text/css"> p { margin-top: 0; }</style>
 </head>
-<body>
+<body id="circ_view_holdsqueue" class="circ">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]
+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
+<script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
+[% INCLUDE 'datatables-strings.inc' %]
+<script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
+<script type="text/javascript">//<![CDATA[
+$(document).ready(function() {
+    $("#holdst").dataTable({
+        "aaSorting": [[ 3, "asc" ]],
+        "bPaginate": false,
+        "bLengthChange": false,
+        "bFilter": false,
+        "bSort": true,
+        "bInfo": false,
+        "bAutoWidth": false
+    });
+});
+//]]>
+</script>
 
 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
-&rsaquo; <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds Queue</a>
+&rsaquo; <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
 [% IF ( run_report ) %] &rsaquo; Results[% END %]
 </div>
 
@@ -24,7 +44,7 @@
 [% IF ( run_report ) %]
     [% IF ( total ) %]
         <div class="results">[% total %] items found for
-            [% IF ( branch ) %][% branch %][% ELSE %]ALL libraries[% END %]
+            [% IF ( branchlimit ) %][% branchlimit %][% ELSE %]ALL libraries[% END %]
         </div>
     [% ELSE %]
         <div class="dialog message">No items found.</div>
        <tr>
         <th class="hq-title">Title</th>
         <th class="hq-collection">Collection</th>
-        <th class="hq-callnumber">Call Number</th>
+        <th class="hq-itemtype">Item type</th>
+        <th class="hq-callnumber">Call number</th>
+        <th class="hq-copynumber">Copy number</th>
+        <th class="hq-enumchron">Enumeration</th>
         <th class="hq-barcode">Barcode</th>
         <th class="hq-patron">Patron</th>
-        <th class="hq-sendto">Send To</th>
+        <th class="hq-sendto">Send to</th>
         <th class="hq-date">Date</th>
+        <th class="hq-notes">Notes</th>
     </tr>
        </thead>
      <tbody>[% FOREACH itemsloo IN itemsloop %]
                                          [% IF ( itemsloo.size ) %][% itemsloo.size %][% END %] [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]</p>
                        </div>
                        </td>
-            <td class="hq-collection">[% itemsloo.ccode %]</td>
-            <td class="hq-callnumber">[% itemsloo.location %] [% itemsloo.itemcallnumber %] [% itemsloo.enumchron %]</td>
+            <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %]</td>
+            <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) %]</td>
+            <td class="hq-callnumber">[% itemsloo.location %] [% itemsloo.itemcallnumber %]</td>
+            <td class="hq-copynumber">[% itemsloo.copynumber %]</td>
+            <td class="hq-enumchron">[% itemsloo.enumchron %]</td>
             <td class="hq-barcode">
                 [% IF ( itemsloo.item_level_request ) %]
                        <em>Only Item:</em> <strong>[% itemsloo.barcode %]</strong>
@@ -65,6 +92,7 @@
                        <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>
             <td class="hq-sendto">[% itemsloo.pickbranch %]</td>
             <td class="hq-date">[% itemsloo.reservedate %]</td>
+            <td class="hq-notes">[% itemsloo.notes %]</td>
         </tr>
     [% END %]</tbody>
     </table>