1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Circulation › Hold ratios</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
9 $(document).ready(function() {
10 $(".ratiolimit").click(function () {
11 $("#ratio").val($(this).html());
13 $(".ratiolimit").hover(
14 function () { $(this).toggleClass("ulined") },
15 function () { $(this).toggleClass("ulined") }
17 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
18 "aaSorting": [ [0,'desc'], [3,'asc'] ],
20 { "aTargets": [ 8 ], "sType": "natural" },
21 { "aTargets": [ 3 ], "sType": "anti-the" }
27 { "sType": "anti-the" },
34 "sPaginationType": "four_button"
39 <style type="text/css">
40 .sql { display: none; }
41 .ulined { text-decoration: underline; }
42 .ratiolimit { color: blue; cursor: pointer; }
45 <body id="circ_reserveratios" class="circ">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'circ-search.inc' %]
49 <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>
51 <div id="doc3" class="yui-t2">
55 <h1>Hold ratios to calculate items needed</h1>
56 <h3>Calculated on [% todaysdate %]. From [% from %]
58 <p>These items have a hold ratio ≥ [% ratio %].</p>
59 <div class="sql">[% sql %]</div>
61 [% IF ( reserveloop ) %]
69 <th>Holding libraries</th>
77 [% FOREACH reserveloo IN reserveloop %]
79 <td><p>[% reserveloo.reservecount %]</p></td>
80 <td><p>[% reserveloo.itemcount %]</p></td>
81 <td><p class="ratiolimit">[% reserveloo.thisratio %]</p></td>
82 <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 %]
84 <td><p>[% reserveloo.listbranch %]</p></td>
85 <td><p>[% reserveloo.location %]</p></td>
86 <td><p>[% reserveloo.itype %]</p></td>
87 <td><p>[% reserveloo.listcall %]</p></td>
88 <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 %]
89 [% IF ( reserveloo.pendingorders ) %]<br><b>[% reserveloo.pendingorders %] pending</b>[% END %]</p>[% END %]</td>
95 <b>No items found.</b>
100 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
101 <fieldset class="brief">
102 <h4>Refine results:</h4>
103 <ol><li><label for="ratio">
106 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" /></li>
107 <li><label for="from">
110 <input type="text" size="10" id="from" name="from" value="[% from %]" class="datepickerfrom" />
115 <input size="10" id="to" name="to" value="[% to %]" type="text" class="datepickerto" />
119 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
121 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
122 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
123 <input type="hidden" name="basketno" value="[% basketno %]" />
129 [% INCLUDE 'intranet-bottom.inc' %]