4 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Hold ratios › Circulation › Koha</title>
11 [% INCLUDE 'doc-head-close.inc' %]
13 .sql { display: none; }
14 .ulined { text-decoration: underline; }
15 #holdst ul li { list-style: outside url("[% interface | html %]/[% theme | html %]/img/item-bullet.gif") disc; }
19 <body id="circ_reserveratios" class="circ">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'circ-search.inc' %]
23 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
26 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
29 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
32 <a href="#" aria-current="page">
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
44 <h1>Hold ratios to calculate items needed</h1>
45 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
46 to [% to | $KohaDates %]</h3>
47 <p>These items have a hold ratio ≥ [% ratio | html %].</p>
48 <div class="sql">[% sql | html %]</div>
50 [% IF ( reserveloop ) %]
58 <th>Home libraries</th>
59 <th>Holding libraries</th>
67 [% FOREACH reserveloo IN reserveloop %]
69 <td><p>[% reserveloo.reservecount | html %]</p></td>
70 <td><p>[% reserveloo.itemcount | html %]</p></td>
71 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reserveloo.biblionumber | uri %]" >[% reserveloo.thisratio | html %]</a></td>
73 [% INCLUDE 'biblio-title.inc' biblio=reserveloo link = 1 %][% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
77 [% FOREACH homebranch IN reserveloo.homebranch_list %]
78 <li>[% Branches.GetName ( homebranch ) | html %]</li>
84 [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
85 <li>[% Branches.GetName ( holdingbranch ) | html %]</li>
91 [% FOREACH location IN reserveloo.location %]
92 <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => location ) | html %]</li>
98 [% FOREACH itype IN reserveloo.itype %]
99 <li>[% ItemTypes.GetDescription( itype ) | html %]</li>
105 [% FOREACH listcall IN reserveloo.listcall %]
106 <li>[% listcall | html %]</li>
112 [% IF ( reserveloo.thisratio_atleast1 ) %]
113 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.copies_to_buy | html %] -->
114 <a href="/cgi-bin/koha/acqui/neworderempty.pl?biblionumber=[% reserveloo.biblionumber | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&rr_quantity_to_order=[% reserveloo.copies_to_buy | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% reserveloo.copies_to_buy | html %] to order</a>
116 <strong>[% reserveloo.copies_to_buy | html %] to order</strong>
118 [% IF ( reserveloo.pendingorders ) %]<br><strong>[% reserveloo.pendingorders | html %] pending</strong>[% END %]
129 <strong>No items found.</strong>
133 </div> <!-- /.col-sm-10.col-sm-push-2 -->
135 <div class="col-sm-2 col-sm-pull-10">
138 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
139 <fieldset class="brief">
140 <h4>Refine results:</h4>
143 <label for="ratio">Hold ratio (greater than or equal to):</label>
144 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio | html %]" />
147 <li class="checkbox">
148 [% IF include_ordered %]
149 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
151 <input id="include_ordered" name="include_ordered" type="checkbox"/>
153 <label for="include_ordered">Include ordered</label>
156 <li class="checkbox">
157 [% IF include_suspended %]
158 <input id="include_suspended" name="include_suspended" type="checkbox" checked="checked"/>
160 <input id="include_suspended" name="include_suspended" type="checkbox"/>
162 <label for="include_suspended">Include suspended</label>
166 <label for="from">Start date:</label>
167 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
171 <label for="to">End date:</label>
172 <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
177 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
179 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
180 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
181 <input type="hidden" name="basketno" value="[% basketno | html %]" />
186 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
187 </div> <!-- /.row -->
189 [% MACRO jsinclude BLOCK %]
190 [% INCLUDE 'calendar.inc' %]
191 [% INCLUDE 'datatables.inc' %]
192 [% INCLUDE 'columns_settings.inc' %]
194 var columns_settings = [% TablesSettings.GetColumns( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
195 $(document).ready(function() {
196 KohaTable("holdst", {
197 "aaSorting": [ [2,'desc'], [3,'asc'] ],
199 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
200 { "aTargets": [ 3 ], "sType": "anti-the" },
202 "sPaginationType": "full",
204 }, columns_settings);
209 [% INCLUDE 'intranet-bottom.inc' %]