2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Circulation › Hold ratios</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
10 $(document).ready(function() {
11 $(".ratiolimit").click(function () {
12 $("#ratio").val($(this).html());
14 $(".ratiolimit").hover(
15 function () { $(this).toggleClass("ulined") },
16 function () { $(this).toggleClass("ulined") }
18 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
19 "aaSorting": [ [2,'desc'], [3,'asc'] ],
21 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
22 { "aTargets": [ 3 ], "sType": "anti-the" },
24 "sPaginationType": "four_button"
29 <style type="text/css">
30 .sql { display: none; }
31 .ulined { text-decoration: underline; }
32 .ratiolimit { color: blue; cursor: pointer; }
35 <body id="circ_reserveratios" class="circ">
36 [% INCLUDE 'header.inc' %]
37 [% INCLUDE 'circ-search.inc' %]
39 <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>
41 <div id="doc3" class="yui-t2">
45 <h1>Hold ratios to calculate items needed</h1>
46 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
47 to [% to | $KohaDates %]</h3>
48 <p>These items have a hold ratio ≥ [% ratio %].</p>
49 <div class="sql">[% sql %]</div>
51 [% IF ( reserveloop ) %]
59 <th>Home libraries</th>
60 <th>Holding libraries</th>
68 [% FOREACH reserveloo IN reserveloop %]
70 <td><p>[% reserveloo.reservecount %]</p></td>
71 <td><p>[% reserveloo.itemcount %]</p></td>
72 <td><p class="ratiolimit">[% reserveloo.thisratio %]</p></td>
73 <td> [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %][% reserveloo.title |html %] [% IF ( reserveloo.subtitle ) %][% FOREACH subtitl IN reserveloo.subtitle %][% subtitl.subfield %][% END %][% END %]</a>[% IF ( reserveloo.author ) %] by [% reserveloo.author %][% END %]
75 <td><p>[% reserveloo.homebranch_list %]</p></td>
76 <td><p>[% reserveloo.holdingbranch_list %]</p></td>
77 <td><p>[% reserveloo.location %]</p></td>
78 <td><p>[% reserveloo.itype %]</p></td>
79 <td><p>[% reserveloo.listcall %]</p></td>
80 <td>[% IF ( reserveloo.thisratio_atleast1 ) %]<p>[% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.ratiocalc %] --><a href="/cgi-bin/koha/acqui/neworderempty.pl?biblionumber=[% reserveloo.biblionumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]&rr_quantity_to_order=[% reserveloo.ratiocalc %]">[% END %]<b>[% reserveloo.ratiocalc %] to order</b>[% IF ( CAN_user_acquisition && basketno && booksellerid ) %]</a>[% END %]
81 [% IF ( reserveloo.pendingorders ) %]<br><b>[% reserveloo.pendingorders %] pending</b>[% END %]</p>[% END %]</td>
87 <b>No items found.</b>
92 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
93 <fieldset class="brief">
94 <h4>Refine results:</h4>
97 <label for="ratio">Hold ratio:</label>
98 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" />
102 <label for="include_ordered">Included ordered:</label>
103 [% IF include_ordered %]
104 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
106 <input id="include_ordered" name="include_ordered" type="checkbox"/>
111 <label for="from">Start date:</label>
112 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
116 <label for="to">End date:</label>
117 <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
122 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
124 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
125 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
126 <input type="hidden" name="basketno" value="[% basketno %]" />
132 [% INCLUDE 'intranet-bottom.inc' %]