<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();
+ $(".ratiolimit").click(function () {
+ $("#ratio").val($(this).html());
+ });
+ $(".ratiolimit").hover(
+ function () { $(this).toggleClass("ulined") },
+ function () { $(this).toggleClass("ulined") }
+ );
+ $.tablesorter.defaults.widgets = ['zebra'];
+ $("#holdst:has(tbody tr)").tablesorter({ // only add sort if the table has a body and rows
+ sortList: [[0,0]],
+ headers: { 1: { sorter: 'articles' }}
+ });
+ });
+//]]>
+</script>
+<style type="text/css">
+ .sql { display: none; }
+ .ulined { text-decoration: underline; }
+ .ratiolimit { color: blue; cursor: pointer; }
+</style>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="circ-search.inc" -->
-
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Hold Ratios</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
+<h1>Hold Ratios to Calculate Items Needed</h1>
+ <h3>Calculated on <!-- TMPL_VAR NAME="todaysdate" -->. From <!-- TMPL_VAR NAME="from" -->
+ to <!-- TMPL_VAR NAME="to" --></h3>
+<p>These items have a hold ratio ≥ <!-- TMPL_VAR NAME="ratio" -->.</p>
+<div class="sql"><!-- TMPL_VAR NAME="sql" DEFAULT="" --></div>
-<h1>Hold Ratios to Calculate Items Needed<br>
- Calculated on <!-- TMPL_VAR NAME="todaysdate" --> <br>From <!-- TMPL_VAR NAME="from" -->
- to <!-- TMPL_VAR NAME="to" --></h1>
-<div id="filters">
-<br />
-
-<form method="post" >
-<p>
-<label for "ratio">
+<!-- TMPL_IF NAME="reserveloop" -->
+ <table id="holdst">
+<thead> <tr>
+ <th>Holds
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=reservecount&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Items
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=itemcount&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Hold Ratio</th>
+ <th>Title
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=biblio&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Holding Libraries
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=branch&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Location
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=location&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Itype
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=itype&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Call Numbers
+ <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=callnumber&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
+ </th>
+ <th>Items Needed
+ </th>
+ </tr></thead>
+
+ <tbody><!-- TMPL_LOOP NAME="reserveloop" -->
+ <tr>
+ <td><p><!-- TMPL_VAR NAME="reservecount" --></p></td>
+ <td><p><!-- TMPL_VAR NAME="itemcount" --></p></td>
+ <td><p class="ratiolimit"><!-- TMPL_VAR NAME="thisratio" --></p></td>
+ <td><p>
+ <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
+ </a>
+ </p>
+ <p><!-- TMPL_VAR NAME="notes" --></p>
+ </td>
+ <td><p><!-- TMPL_VAR NAME="listbranch" --></p></td>
+ <td><p><!-- TMPL_VAR NAME="location" --></p></td>
+ <td><p><!-- TMPL_VAR NAME="itype" --></p></td>
+ <td><p><!-- TMPL_VAR NAME="listcall" --></p></td>
+ <td><!-- TMPL_IF NAME="thisratio_atleast1" --><p><b><!-- TMPL_VAR NAME="ratiocalc" --> to order</b></p><!-- /TMPL_IF --></td>
+ </tr>
+ <!-- /TMPL_LOOP --></tbody>
+ </table>
+ <!-- TMPL_ELSE -->
+ <b>No items found.</b>
+ <!-- /TMPL_IF -->
+</div>
+</div>
+<div class="yui-b">
+<form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
+<fieldset class="brief">
+<h4>Refine Results:</h4>
+<ol><li><label for="ratio">
Hold Ratio:
</label>
-<input type="text" size="5" id="ratio" name="ratio" value="<!-- TMPL_VAR NAME="ratio" -->" />
-<label for "from">
+<input type="text" size="5" id="ratio" name="ratio" value="<!-- TMPL_VAR NAME="ratio" -->" /></li>
+<li><label for="from">
Start date:
</label>
<input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
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();
dateStatusFunc : validate2
}
);
-</script>
+</script></li></ol>
(inclusive)
-<input type="submit" value="Go" class="submit">
-</p>
+<fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
+</fieldset>
</form>
-<p>These items have a large number of holds.</p>
-</div>
-<div class="searchresults">
- <!-- TMPL_IF NAME="reserveloop" -->
- <table>
- <tr>
- <th >Reserves
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=reservecount&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th >Items
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=itemcount&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th >Title
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=biblio&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th>Holding Branches
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=branch&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th>Location
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=location&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th>Itype
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=itype&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th>Call Numbers
- <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&order=callnumber&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
- </th>
- <th >Items Needed
- </th>
- </tr>
-
- <!-- TMPL_LOOP NAME="reserveloop" -->
- <tr>
- <!-- TMPL_IF name="ratio_ge_one" -->
- <td>
- <p><!-- TMPL_VAR NAME="reservecount" --></p>
- </td>
- <td>
- <p><!-- TMPL_VAR NAME="itemcount" --></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>
-
- <td><p><!-- TMPL_VAR NAME="listbranch" --></p></td>
- <td><p><!-- TMPL_VAR NAME="location" --></p></td>
- <td><p><!-- TMPL_VAR NAME="itype" --></p></td>
- <td><p><!-- TMPL_VAR NAME="listcall" --></p></td>
- <td><p><b>Order: <!-- TMPL_VAR NAME="ratiocalc" --></b></p></td>
- <!-- /TMPL_IF -->
- </tr>
- <!-- /TMPL_LOOP -->
- </table>
- <!-- TMPL_ELSE -->
- <b>No items found.</b>
- <!-- /TMPL_IF -->
-</div>
-</div>
-</div>
-<div class="yui-b">
-<!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->