4 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha › Circulation › Hold ratios</title>
11 [% INCLUDE 'doc-head-close.inc' %]
13 .sql { display: none; }
14 .ulined { text-decoration: underline; }
15 .ratiolimit:link { color: blue; cursor: pointer; }
16 .ratiolimit:hover { color: blue; text-decoration: underline; }
17 #holdst ul li { list-style: outside url("[% interface | html %]/[% theme | html %]/img/item-bullet.gif") disc; }
21 <body id="circ_reserveratios" class="circ">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'circ-search.inc' %]
25 <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>
27 <div class="main container-fluid">
29 <div class="col-sm-10 col-sm-push-2">
32 <h1>Hold ratios to calculate items needed</h1>
33 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
34 to [% to | $KohaDates %]</h3>
35 <p>These items have a hold ratio ≥ [% ratio | html %].</p>
36 <div class="sql">[% sql | html %]</div>
38 [% IF ( reserveloop ) %]
46 <th>Home libraries</th>
47 <th>Holding libraries</th>
55 [% FOREACH reserveloo IN reserveloop %]
57 <td><p>[% reserveloo.reservecount | html %]</p></td>
58 <td><p>[% reserveloo.itemcount | html %]</p></td>
59 <td><a href="#" class="ratiolimit">[% reserveloo.thisratio | html %]</a></td>
60 <td> [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %][% INCLUDE 'biblio-title.inc' biblio=reserveloo %]</a>[% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
64 [% FOREACH homebranch IN reserveloo.homebranch_list %]
65 <li>[% Branches.GetName ( homebranch ) | html %]</li>
71 [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
72 <li>[% Branches.GetName ( holdingbranch ) | html %]</li>
78 [% FOREACH location IN reserveloo.location %]
79 <li>[% AuthorisedValues.GetByCode( 'LOC', location ) | html %]</li>
85 [% FOREACH itype IN reserveloo.itype %]
86 <li>[% ItemTypes.GetDescription( itype ) | html %]</li>
92 [% FOREACH listcall IN reserveloo.listcall %]
93 <li>[% listcall | html %]</li>
99 [% IF ( reserveloo.thisratio_atleast1 ) %]
100 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.ratiocalc | html %] -->
101 <a href="/cgi-bin/koha/acqui/neworderempty.pl?biblionumber=[% reserveloo.biblionumber | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&rr_quantity_to_order=[% reserveloo.ratiocalc | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% reserveloo.ratiocalc | html %] to order</a>
103 <b>[% reserveloo.ratiocalc | html %] to order</b>
105 [% IF ( reserveloo.pendingorders ) %]<br><b>[% reserveloo.pendingorders | html %] pending</b>[% END %]
116 <b>No items found.</b>
120 </div> <!-- /.col-sm-10.col-sm-push-2 -->
122 <div class="col-sm-2 col-sm-pull-10">
125 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
126 <fieldset class="brief">
127 <h4>Refine results:</h4>
130 <label for="ratio">Hold ratio:</label>
131 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio | html %]" />
135 <label for="include_ordered">Included ordered:</label>
136 [% IF include_ordered %]
137 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
139 <input id="include_ordered" name="include_ordered" type="checkbox"/>
144 <label for="from">Start date:</label>
145 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
149 <label for="to">End date:</label>
150 <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
155 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
157 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
158 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
159 <input type="hidden" name="basketno" value="[% basketno | html %]" />
164 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
165 </div> <!-- /.row -->
167 [% MACRO jsinclude BLOCK %]
168 [% INCLUDE 'calendar.inc' %]
169 [% INCLUDE 'datatables.inc' %]
170 [% INCLUDE 'columns_settings.inc' %]
172 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
173 $(document).ready(function() {
174 $(".ratiolimit").on("click", function(e) {
176 $("#ratio").val($(this).html());
178 KohaTable("holdst", {
179 "aaSorting": [ [2,'desc'], [3,'asc'] ],
181 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
182 { "aTargets": [ 3 ], "sType": "anti-the" },
184 "sPaginationType": "full",
186 }, columns_settings);
191 [% INCLUDE 'intranet-bottom.inc' %]