Bug 11832: fix JavaScript error on staff client place hold screen if record has no...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / overdue.tt
index 46e2ffd..4a03831 100644 (file)
@@ -1,6 +1,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Circulation &rsaquo; Items overdue as of [% todaysdate %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'calendar.inc' %]
 <script type="text/javascript">
  //<![CDATA[
      function clone_parent(node) {
                 .css("font-size","90%").css("width","13em");
             };
         });
-       }
+    }
 //]]>
 </script>
 <style type="text/css">
     .sql {display:none;}
 </style>
-[% INCLUDE 'calendar.inc' %]
 </head>
 <body id="circ_overdue" class="circ">
 [% INCLUDE 'header.inc' %]
@@ -103,6 +103,7 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%
     <th>Title</th>
     <th>Barcode</th>
     <th>Call number</th>
+    <th>Price</th>
 </tr></thead>
 
 <tbody>[% FOREACH overdueloo IN overdueloop %]
@@ -116,6 +117,7 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%
         </td>
                <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% overdueloo.biblionumber %]&amp;itemnumber=[% overdueloo.itemnum %]#item[% overdueloo.itemnum %]">[% overdueloo.barcode %]</a></td>
                <td>[% overdueloo.itemcallnumber %]</td>
+                <td>[% overdueloo.replacementprice %]</td>
         </tr>
 [% END %]</tbody>
 </table>
@@ -131,32 +133,12 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%
 <h4>Filter on:</h4>
        <fieldset><legend>Date due:</legend>
        <ol>
-    <li><label for="dateduefrom">From:</label>
-       <input type="text" id="dateduefrom" name="dateduefrom" size="10" value="[% dateduefrom %]" />
-    <img src="[% themelang %]/lib/calendar/cal.gif" id="dateduefrom_button" alt="Show calendar" />
-       <script language="JavaScript" type="text/javascript">
-           Calendar.setup(
-           {
-               inputField : "dateduefrom",
-               ifFormat : "[% DHTMLcalendar_dateformat %]",
-               button : "dateduefrom_button"
-           }
-           );
-       </script>
+    <li><label for="from">From:</label>
+    <input type="text" id="from" name="dateduefrom" size="10" value="[% dateduefrom %]" class="datepickerfrom" />
        </li>
        <li>
-       <label for="datedueto">To:</label>
-       <input type="text" id="datedueto" name="datedueto" size="10" value="[% datedueto %]" />
-    <img src="[% themelang %]/lib/calendar/cal.gif" id="datedueto_button" alt="Show calendar" />
-       <script language="JavaScript" type="text/javascript">
-           Calendar.setup(
-           {
-               inputField : "datedueto",
-               ifFormat : "[% DHTMLcalendar_dateformat %]",
-               button : "datedueto_button"
-           }
-           );
-       </script>
+    <label for="to">To:</label>
+    <input type="text" id="to" name="datedueto" size="10" value="[% datedueto %]" class="datepickerto" />
     </li>
     </ol></fieldset>
     <ol>
@@ -213,6 +195,28 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%
       </select>
     </li>
 
+    <li>
+        <label>Item home library:</label>
+        <select name="homebranch" id="homebranch">
+            <option value="">Any</option>
+            [% FOREACH homebranchloo IN homebranchloop %][% IF ( homebranchloo.selected ) %]
+            <option value="[% homebranchloo.value |html %]" selected="selected">[% homebranchloo.branchname %]</option>[% ELSE %]
+            <option value="[% homebranchloo.value |html %]">[% homebranchloo.branchname %]</option>[% END %]
+            [% END %]
+        </select>
+    </li>
+
+    <li>
+        <label>Item holding library:</label>
+            <select name="holdingbranch" id="holdingbranch">
+            <option value="">Any</option>
+            [% FOREACH holdingbranchloo IN holdingbranchloop %][% IF ( holdingbranchloo.selected ) %]
+            <option value="[% holdingbranchloo.value |html %]" selected="selected">[% holdingbranchloo.branchname %]</option>[% ELSE %]
+            <option value="[% holdingbranchloo.value |html %]">[% holdingbranchloo.branchname %]</option>[% END %]
+            [% END %]
+        </select>
+    </li>
+
     <li>
     <label>Library of the patron:</label><select name="branch" id="branch">
         <option value="">Any</option>
@@ -224,7 +228,7 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%
       </select>
     </li>
 
-    <li><label for="order">Sort By:</label> <select name="order" id="order">
+    <li><label for="order">Sort by:</label> <select name="order" id="order">
 [% FOREACH ORDER_LOO IN ORDER_LOOP %]
     [% IF ( ORDER_LOO.selected ) %]
     <option value="[% ORDER_LOO.ordervalue %]" selected="selected">
@@ -259,7 +263,7 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%
 </li>
 </ol>
    <fieldset class="action">
-      <input type="submit" value="Apply Filter" class="submit" />
+      <input type="submit" value="Apply filter" class="submit" />
       <input type="hidden" name="op" value="apply filter" />
    </fieldset>
    </fieldset>