2 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Circulation › Hold ratios</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% INCLUDE 'calendar.inc' %]
9 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
10 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript">
13 $(document).ready(function() {
14 $(".ratiolimit").click(function () {
15 $("#ratio").val($(this).html());
17 $(".ratiolimit").hover(
18 function () { $(this).toggleClass("ulined") },
19 function () { $(this).toggleClass("ulined") }
21 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
22 "aaSorting": [ [2,'desc'], [3,'asc'] ],
24 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
25 { "aTargets": [ 3 ], "sType": "anti-the" },
27 "sPaginationType": "four_button"
32 <style type="text/css">
33 .sql { display: none; }
34 .ulined { text-decoration: underline; }
35 .ratiolimit { color: blue; cursor: pointer; }
36 #holdst ul li { list-style: outside url("[% interface %]/[% theme %]/img/item-bullet.gif") disc; }
39 <body id="circ_reserveratios" class="circ">
40 [% INCLUDE 'header.inc' %]
41 [% INCLUDE 'circ-search.inc' %]
43 <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>
45 <div id="doc3" class="yui-t2">
49 <h1>Hold ratios to calculate items needed</h1>
50 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
51 to [% to | $KohaDates %]</h3>
52 <p>These items have a hold ratio ≥ [% ratio %].</p>
53 <div class="sql">[% sql %]</div>
55 [% IF ( reserveloop ) %]
63 <th>Home libraries</th>
64 <th>Holding libraries</th>
72 [% FOREACH reserveloo IN reserveloop %]
74 <td><p>[% reserveloo.reservecount %]</p></td>
75 <td><p>[% reserveloo.itemcount %]</p></td>
76 <td><p class="ratiolimit">[% reserveloo.thisratio %]</p></td>
77 <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 %]
81 [% FOREACH homebranch IN reserveloo.homebranch_list %]
82 <li>[% Branches.GetName ( homebranch ) %]</li>
88 [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
89 <li>[% Branches.GetName ( holdingbranch ) %]</li>
95 [% FOREACH location IN reserveloo.location %]
96 <li>[% AuthorisedValues.GetByCode( 'LOC', location )%]</li>
102 [% FOREACH itype IN reserveloo.itype %]
103 <li>[% ItemTypes.GetDescription( itype ) %]</li>
109 [% FOREACH listcall IN reserveloo.listcall %]
110 <li>[% listcall %]</li>
114 <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 %]
115 [% IF ( reserveloo.pendingorders ) %]<br><b>[% reserveloo.pendingorders %] pending</b>[% END %]</p>[% END %]</td>
121 <b>No items found.</b>
126 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
127 <fieldset class="brief">
128 <h4>Refine results:</h4>
131 <label for="ratio">Hold ratio:</label>
132 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" />
136 <label for="include_ordered">Included ordered:</label>
137 [% IF include_ordered %]
138 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
140 <input id="include_ordered" name="include_ordered" type="checkbox"/>
145 <label for="from">Start date:</label>
146 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
150 <label for="to">End date:</label>
151 <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
156 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
158 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
159 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
160 <input type="hidden" name="basketno" value="[% basketno %]" />
166 [% INCLUDE 'intranet-bottom.inc' %]