1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Circulation › Hold Ratios</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <!-- End of additions --><!-- Additions to enable Calendar system -->
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
12 <script type="text/javascript" language="JavaScript">
14 $.tablesorter.addParser({
16 is: function(s) {return false; },
17 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
20 $(document).ready(function() {
22 $(".ratiolimit").click(function () {
23 $("#ratio").val($(this).html());
25 $(".ratiolimit").hover(
26 function () { $(this).toggleClass("ulined") },
27 function () { $(this).toggleClass("ulined") }
29 $.tablesorter.defaults.widgets = ['zebra'];
30 $("#holdst:has(tbody tr)").tablesorter({ // only add sort if the table has a body and rows
32 headers: { 1: { sorter: 'articles' }}
37 <style type="text/css">
38 .sql { display: none; }
39 .ulined { text-decoration: underline; }
40 .ratiolimit { color: blue; cursor: pointer; }
44 <!-- TMPL_INCLUDE NAME="header.inc" -->
45 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
47 <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>
49 <div id="doc3" class="yui-t2">
54 <h1>Hold Ratios to Calculate Items Needed</h1>
55 <h3>Calculated on <!-- TMPL_VAR NAME="todaysdate" -->. From <!-- TMPL_VAR NAME="from" -->
56 to <!-- TMPL_VAR NAME="to" --></h3>
57 <p>These items have a hold ratio ≥ <!-- TMPL_VAR NAME="ratio" -->.</p>
58 <div class="sql"><!-- TMPL_VAR NAME="sql" DEFAULT="" --></div>
60 <!-- TMPL_IF NAME="reserveloop" -->
64 <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>
67 <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>
71 <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>
74 <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>
77 <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>
80 <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>
83 <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>
89 <tbody><!-- TMPL_LOOP NAME="reserveloop" -->
91 <td><p><!-- TMPL_VAR NAME="reservecount" --></p></td>
92 <td><p><!-- TMPL_VAR NAME="itemcount" --></p></td>
93 <td><p class="ratiolimit"><!-- TMPL_VAR NAME="thisratio" --></p></td>
95 <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
98 <p><!-- TMPL_VAR NAME="notes" --></p>
100 <td><p><!-- TMPL_VAR NAME="listbranch" --></p></td>
101 <td><p><!-- TMPL_VAR NAME="location" --></p></td>
102 <td><p><!-- TMPL_VAR NAME="itype" --></p></td>
103 <td><p><!-- TMPL_VAR NAME="listcall" --></p></td>
104 <td><!-- TMPL_IF NAME="thisratio_atleast1" --><p><b><!-- TMPL_VAR NAME="ratiocalc" --> to order</b></p><!-- /TMPL_IF --></td>
106 <!-- /TMPL_LOOP --></tbody>
109 <b>No items found.</b>
114 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
115 <fieldset class="brief">
116 <h4>Refine Results:</h4>
117 <ol><li><label for="ratio">
120 <input type="text" size="5" id="ratio" name="ratio" value="<!-- TMPL_VAR NAME="ratio" -->" /></li>
121 <li><label for="from">
124 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
125 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
126 <script language="JavaScript" type="text/javascript">
127 function validate1(date) {
128 var day = date.getDate();
129 var month = date.getMonth() + 1;
130 var year = date.getFullYear();
131 var weekDay = date.getDay();
132 var dayMonth = month + '-' + day;
133 var dateString = year + '-' + month + '-' + day;
134 var dateTo = document.getElementById('to').value.split("-");
135 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
136 if (date > limitDate) {
145 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
146 button : "openCalendarFrom",
147 disableFunc : validate1,
148 dateStatusFunc : validate1
152 <li><label for="to" >
155 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
156 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
157 <script type="text/javascript">
158 function validate2(date) {
159 var day = date.getDate();
160 var month = date.getMonth() + 1;
161 var year = date.getFullYear();
162 var weekDay = date.getDay();
163 var dayMonth = month + '-' + day;
164 var dateString = year + '-' + month + '-' + day;
165 var dateFrom = document.getElementById('from').value.split("-");
166 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
167 if (limitDate > date) {
177 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
178 button : "openCalendarTo",
179 disableFunc : validate2,
180 dateStatusFunc : validate2
186 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
192 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->