4 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
28 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
34 <a href="#" aria-current="page">
41 <div class="main container-fluid">
43 <div class="col-sm-10 col-sm-push-2">
46 <h1>Hold ratios to calculate items needed</h1>
47 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
48 to [% to | $KohaDates %]</h3>
49 <p>These items have a hold ratio ≥ [% ratio | html %].</p>
50 <div class="sql">[% sql | html %]</div>
52 [% IF ( reserveloop ) %]
60 <th>Home libraries</th>
61 <th>Holding libraries</th>
69 [% FOREACH reserveloo IN reserveloop %]
71 <td><p>[% reserveloo.reservecount | html %]</p></td>
72 <td><p>[% reserveloo.itemcount | html %]</p></td>
73 <td><a href="#" class="ratiolimit">[% reserveloo.thisratio | html %]</a></td>
75 [% INCLUDE 'biblio-title.inc' biblio=reserveloo link = 1 %][% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
79 [% FOREACH homebranch IN reserveloo.homebranch_list %]
80 <li>[% Branches.GetName ( homebranch ) | html %]</li>
86 [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
87 <li>[% Branches.GetName ( holdingbranch ) | html %]</li>
93 [% FOREACH location IN reserveloo.location %]
94 <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => location ) | html %]</li>
100 [% FOREACH itype IN reserveloo.itype %]
101 <li>[% ItemTypes.GetDescription( itype ) | html %]</li>
107 [% FOREACH listcall IN reserveloo.listcall %]
108 <li>[% listcall | html %]</li>
114 [% IF ( reserveloo.thisratio_atleast1 ) %]
115 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.ratiocalc | html %] -->
116 <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>
118 <strong>[% reserveloo.ratiocalc | html %] to order</strong>
120 [% IF ( reserveloo.pendingorders ) %]<br><strong>[% reserveloo.pendingorders | html %] pending</strong>[% END %]
131 <strong>No items found.</strong>
135 </div> <!-- /.col-sm-10.col-sm-push-2 -->
137 <div class="col-sm-2 col-sm-pull-10">
140 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
141 <fieldset class="brief">
142 <h4>Refine results:</h4>
145 <label for="ratio">Hold ratio:</label>
146 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio | html %]" />
149 <li class="checkbox">
150 [% IF include_ordered %]
151 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
153 <input id="include_ordered" name="include_ordered" type="checkbox"/>
155 <label for="include_ordered">Include ordered</label>
158 <li class="checkbox">
159 [% IF include_suspended %]
160 <input id="include_suspended" name="include_suspended" type="checkbox" checked="checked"/>
162 <input id="include_suspended" name="include_suspended" type="checkbox"/>
164 <label for="include_suspended">Include suspended</label>
168 <label for="from">Start date:</label>
169 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
173 <label for="to">End date:</label>
174 <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
179 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
181 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
182 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
183 <input type="hidden" name="basketno" value="[% basketno | html %]" />
188 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
189 </div> <!-- /.row -->
191 [% MACRO jsinclude BLOCK %]
192 [% INCLUDE 'calendar.inc' %]
193 [% INCLUDE 'datatables.inc' %]
194 [% INCLUDE 'columns_settings.inc' %]
196 var columns_settings = [% TablesSettings.GetColumns( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
197 $(document).ready(function() {
198 $(".ratiolimit").on("click", function(e) {
200 $("#ratio").val($(this).html());
202 KohaTable("holdst", {
203 "aaSorting": [ [2,'desc'], [3,'asc'] ],
205 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
206 { "aTargets": [ 3 ], "sType": "anti-the" },
208 "sPaginationType": "full",
210 }, columns_settings);
215 [% INCLUDE 'intranet-bottom.inc' %]