3 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Circulation › Hold ratios</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% Asset.css("css/datatables.css") %]
11 <style type="text/css">
12 .sql { display: none; }
13 .ulined { text-decoration: underline; }
14 .ratiolimit { color: blue; cursor: pointer; }
15 #holdst ul li { list-style: outside url("[% interface %]/[% theme %]/img/item-bullet.gif") disc; }
19 <body id="circ_reserveratios" class="circ">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'circ-search.inc' %]
23 <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>
25 <div id="doc3" class="yui-t2">
29 <h1>Hold ratios to calculate items needed</h1>
30 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
31 to [% to | $KohaDates %]</h3>
32 <p>These items have a hold ratio ≥ [% ratio %].</p>
33 <div class="sql">[% sql %]</div>
35 [% IF ( reserveloop ) %]
43 <th>Home libraries</th>
44 <th>Holding libraries</th>
52 [% FOREACH reserveloo IN reserveloop %]
54 <td><p>[% reserveloo.reservecount %]</p></td>
55 <td><p>[% reserveloo.itemcount %]</p></td>
56 <td><p class="ratiolimit">[% reserveloo.thisratio %]</p></td>
57 <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 %]
61 [% FOREACH homebranch IN reserveloo.homebranch_list %]
62 <li>[% Branches.GetName ( homebranch ) %]</li>
68 [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
69 <li>[% Branches.GetName ( holdingbranch ) %]</li>
75 [% FOREACH location IN reserveloo.location %]
76 <li>[% AuthorisedValues.GetByCode( 'LOC', location )%]</li>
82 [% FOREACH itype IN reserveloo.itype %]
83 <li>[% ItemTypes.GetDescription( itype ) %]</li>
89 [% FOREACH listcall IN reserveloo.listcall %]
90 <li>[% listcall %]</li>
94 <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 %]
95 [% IF ( reserveloo.pendingorders ) %]<br><b>[% reserveloo.pendingorders %] pending</b>[% END %]</p>[% END %]</td>
101 <b>No items found.</b>
106 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
107 <fieldset class="brief">
108 <h4>Refine results:</h4>
111 <label for="ratio">Hold ratio:</label>
112 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" />
116 <label for="include_ordered">Included ordered:</label>
117 [% IF include_ordered %]
118 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
120 <input id="include_ordered" name="include_ordered" type="checkbox"/>
125 <label for="from">Start date:</label>
126 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
130 <label for="to">End date:</label>
131 <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
136 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
138 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
139 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
140 <input type="hidden" name="basketno" value="[% basketno %]" />
147 [% MACRO jsinclude BLOCK %]
148 [% INCLUDE 'calendar.inc' %]
149 [% INCLUDE 'datatables.inc' %]
150 <script type="text/javascript">
151 $(document).ready(function() {
152 $(".ratiolimit").click(function () {
153 $("#ratio").val($(this).html());
155 $(".ratiolimit").hover(
156 function () { $(this).toggleClass("ulined") },
157 function () { $(this).toggleClass("ulined") }
159 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
160 "aaSorting": [ [2,'desc'], [3,'asc'] ],
162 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
163 { "aTargets": [ 3 ], "sType": "anti-the" },
165 "sPaginationType": "four_button"
171 [% INCLUDE 'intranet-bottom.inc' %]