Bug # 2368 Change holds to pull default date range
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / pendingreserves.tmpl
index 96cd146..0876ae7 100644 (file)
@@ -1,8 +1,6 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Circulation &rsaquo; Holds</title>
+<title>Koha &rsaquo; Circulation &rsaquo; Pending Holds</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
-<!-- TMPL_INCLUDE NAME="header.inc" -->
-
 <!-- Additions to enable Calendar system -->
 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
 <!-- End of additions --><!-- Additions to enable Calendar system -->
 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
 <!-- End of additions -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/JavaScript" language="JavaScript">
+//<![CDATA[
+$.tablesorter.addParser({
+    id: 'articles', 
+    is: function(s) {return false;  }, 
+    format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
+    type: 'text' 
+});
+        $(document).ready(function() {
+               $("th a").hide();
+               $.tablesorter.defaults.widgets = ['zebra'];
+               $("#holdst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
+               dateFormat: 'uk',<!-- /TMPL_IF -->
+                       sortList: [[3,0]],
+                       headers: { 0:{sorter:false},1:{sorter:false},3: { sorter: 'articles' },7:{sorter:false}}
+               }); 
+        });
+//]]>
+</script>
+</head>
+<body>
+<!-- TMPL_INCLUDE NAME="header.inc" -->
+<!-- TMPL_INCLUDE NAME="circ-search.inc" -->
 
-<!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
+
+<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; Pending Holds</div>
 
 <div id="doc3" class="yui-t2">
    
    <div id="bd">
        <div id="yui-main">
-       <div class="yui-b"><div class="yui-g">
+       <div class="yui-b">
+
+<h2>Pending holds placed between <!-- TMPL_VAR NAME="from" --> and <!-- TMPL_VAR NAME="to" --></h2>
+<h3>Reported on <!-- TMPL_VAR NAME="todaysdate" --></h3>
+<p>The following holds have not been filled. Please retrieve them and check them in.</p>
+<div class="searchresults">
+    <!-- TMPL_IF NAME="reserveloop" -->
+    <table id="holdst">
+    <thead><tr>
+        <th>
+                               Pull This Many Items
+        </th>        
+        <th>
+                               Items Available
+        </th>
+        <th>
+                               Patrons with Holds
+        </th>
+        <th>Title
+        <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=biblio&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+        </th>
+        <th>
+            Libraries
+                               <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=library&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+        </th>
+        <th>
+            Available Call Numbers
+                               <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=call&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+        </th>
+        <th>
+            Available Itypes
+                               <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=itype&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+        </th>
+        <th>
+            Available Locations
+                               <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=location&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+        </th>
+        <th >Earliest Hold Date
+            <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=date&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+        </th>
+
+    </tr></thead>
+    
+   <tbody> <!-- TMPL_LOOP NAME="reserveloop" -->
+        <tr>
+            <!-- TMPL_IF name="borrowernumber" -->
+                <td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
+                <td><!-- TMPL_VAR NAME="count" --></td>  
+                <td><!-- TMPL_VAR NAME="rcount" --></td> 
+                <td>
+                    <p>
+                    <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
+                    <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
+                        <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
+                    </a>
+                    <!-- TMPL_ELSE -->
+                        <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
+                        <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
+                            <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
+                        </a>
+                        <!-- TMPL_ELSE -->
+                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
+                                <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
+                            </a>
+                        <!-- /TMPL_IF -->
+                    <!-- /TMPL_IF -->
+                    </p>
+                </td>
+            <!-- TMPL_ELSE -->
+                <td colspan="3">
+                    &nbsp;
+                </td>
+                <td>"</td>
+            <!-- /TMPL_IF -->
+            <td><p><!-- TMPL_VAR NAME="holdingbranch" --></p></td>
+            <td><p><!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
+                               <td><p><!-- TMPL_VAR NAME="itype" --></p></td> 
+                               <td><p><!-- TMPL_VAR NAME="location" --></p></td>
+            <td width="15%">
+                <p><!-- TMPL_VAR NAME="reservedate" --></p>
+                <p>in <!-- TMPL_VAR NAME="branch" --></p>
+                <!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
+            </td>
+        </tr>
+    <!-- /TMPL_LOOP --></tbody>
+    </table>
+    <!-- TMPL_ELSE -->
+        <b>No items found.</b>
+    <!-- /TMPL_IF -->
+</div>
 
-<h1>Pending holds as of <!-- TMPL_VAR NAME="todaysdate" --></h1>
+</div>
+</div>
+<div class="yui-b">
 <div id="filters">
-<br />
-<form method="post" >
-<p>
-<label for "from">
+
+<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
+<fieldset class="brief">
+<h4>Refine Results</h4>
+<ol>
+<li>
+<label for="from">
     Start date:
 </label>
 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
@@ -48,18 +165,18 @@ function validate1(date) {
 Calendar.setup(
         {
         inputField : "from",
-        ifFormat : "%Y-%m-%d",
+        ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
         button : "openCalendarFrom",
         disableFunc : validate1,
         dateStatusFunc : validate1
         }
 );
-</script>
-<label for "to" >
+</script></li>
+<li><label for="to">
     End date:
 </label>
 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
-<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" />
+<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
 <script type="text/javascript">
         function validate2(date) {
             var day = date.getDate();
@@ -80,96 +197,20 @@ Calendar.setup(
         Calendar.setup(
                 {
                     inputField : "to",
-                    ifFormat : "%Y-%m-%d",
+                    ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
                     button : "openCalendarTo",
                     disableFunc : validate2,
                     dateStatusFunc : validate2
                 }
         );
-</script>
-(inclusive)
-<input type="submit" value="Go" class="submit">
-</p>
+</script></li>
+</ol>
+<p><i>(Inclusive, default is two days ago to today, set other date ranges as needed. )</i></p>
+<fieldset class="action"><input type="submit" value="Submit" class="submit"/></fieldset>
+</fieldset>
 </form>
-<p>The following holds have not been filled.</p>
-<p>Please retrieve them and check them in</p>
-</div>
 
-<div class="searchresults">
-    <!-- TMPL_IF NAME="reserveloop" -->
-    <table>
-    <tr>
-        <th >
-            Priority
-            <a href="/cgi-bin/koha/circ/reserve.pl?order=priority">Sort</a>
-        </th>
-        <th >Hold Date
-            <a href="/cgi-bin/koha/circ/reserve.pl?order=date">Sort</a>
-        </th>
-        <th >Patron
-        <a href="/cgi-bin/koha/circ/reserve.pl?order=borrower">Sort</a>
-        </th>
-        <th >Title
-        <a href="/cgi-bin/koha/circ/reserve.pl?order=biblio">Sort</a>
-        </th>
-        <th>
-            Library
-        </th>
-    </tr>
-    
-    <!-- TMPL_LOOP NAME="reserveloop" -->
-        <tr>
-            <!-- TMPL_IF name="borrowernumber" -->
-                <td><p><!-- TMPL_VAR NAME="priority" --></p></td>
-                <td width="15%">
-                    <p><!-- TMPL_VAR NAME="reservedate" --></p>
-                    <p>in <!-- TMPL_VAR NAME="branch" --></p>
-                    <!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
-                </td>
-                <td>
-                    <p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
-                <!-- TMPL_IF NAME="email" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
-    <!-- TMPL_VAR NAME="email" --></a><!--/TMPL_IF-->
-                    </p>
-                </td>
-                <td>
-                    <p>
-                    <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
-                    <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
-                        <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
-                    </a>
-                    <!-- TMPL_ELSE -->
-                        <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
-                        <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
-                            <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
-                        </a>
-                        <!-- TMPL_ELSE -->
-                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
-                                <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
-                            </a>
-                        <!-- /TMPL_IF -->
-                    <!-- /TMPL_IF -->
-                    </p>
-                    <p><!-- TMPL_VAR NAME="notes" --></p>
-                </td>
-            <!-- TMPL_ELSE -->
-                <td colspan="2">
-                    &nbsp;
-                </td>
-                <td>"</td>
-                <td>"</td>
-            <!-- /TMPL_IF -->
-            <td><p><!-- TMPL_VAR NAME="holdingbranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
-        </tr>
-    <!-- /TMPL_LOOP -->
-    </table>
-    <!-- TMPL_ELSE -->
-        <b>No items found.</b>
-    <!-- /TMPL_IF -->
-</div>
 </div>
 </div>
 </div>
-
-<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->