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.svg") disc; }
19 <body id="circ_reserveratios" class="circ">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'circ-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
28 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
31 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
34 <a href="#" aria-current="page">
42 <div class="main container-fluid">
44 <div class="col-sm-10 col-sm-push-2">
47 <h1>Hold ratios to calculate items needed</h1>
48 <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
49 to [% to | $KohaDates %]</h3>
50 <p>These items have a hold ratio ≥ [% ratio | html %].</p>
51 <div class="sql">[% sql | html %]</div>
53 [% IF ( reserveloop ) %]
60 <th class="anti-the">Title</th>
61 <th>Home libraries</th>
62 <th>Holding libraries</th>
65 <th class="natural">Call numbers</th>
70 [% FOREACH reserveloo IN reserveloop %]
72 <td><p>[% reserveloo.reservecount | html %]</p></td>
73 <td><p>[% reserveloo.itemcount | html %]</p></td>
74 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reserveloo.biblionumber | uri %]" >[% reserveloo.thisratio | html %]</a></td>
76 [% INCLUDE 'biblio-title.inc' biblio=reserveloo link = 1 %][% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
80 [% FOREACH homebranch IN reserveloo.homebranch_list %]
81 <li>[% Branches.GetName ( homebranch ) | html %]</li>
87 [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
88 <li>[% Branches.GetName ( holdingbranch ) | html %]</li>
94 [% FOREACH location IN reserveloo.location %]
95 <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => location ) | html %]</li>
101 [% FOREACH itype IN reserveloo.itype %]
102 <li>[% ItemTypes.GetDescription( itype ) | html %]</li>
108 [% FOREACH listcall IN reserveloo.listcall %]
109 <li>[% listcall | html %]</li>
115 [% IF ( reserveloo.thisratio_atleast1 ) %]
116 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.copies_to_buy | html %] -->
117 <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>
119 <strong>[% reserveloo.copies_to_buy | html %] to order</strong>
121 [% IF ( reserveloo.pendingorders ) %]<br><strong>[% reserveloo.pendingorders | html %] pending</strong>[% END %]
123 <span>0 to order</span>
132 <strong>No items found.</strong>
136 </div> <!-- /.col-sm-10.col-sm-push-2 -->
138 <div class="col-sm-2 col-sm-pull-10">
141 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
142 <fieldset class="brief">
143 <h4>Refine results:</h4>
146 <label for="ratio">Hold ratio (greater than or equal to):</label>
147 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio | html %]" />
150 <li class="checkbox">
151 [% IF include_ordered %]
152 <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
154 <input id="include_ordered" name="include_ordered" type="checkbox"/>
156 <label for="include_ordered">Include ordered</label>
159 <li class="checkbox">
160 [% IF include_suspended %]
161 <input id="include_suspended" name="include_suspended" type="checkbox" checked="checked"/>
163 <input id="include_suspended" name="include_suspended" type="checkbox"/>
165 <label for="include_suspended">Include suspended</label>
169 <label for="from">Start date:</label>
170 <input type="text" size="10" id="from" name="from" value="[% from | html %]" class="flatpickr" data-date_to="to" />
174 <label for="to">End date:</label>
175 <input size="10" id="to" name="to" value="[% to | html %]" type="text" class="flatpickr" />
180 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
182 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
183 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
184 <input type="hidden" name="basketno" value="[% basketno | html %]" />
189 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
190 </div> <!-- /.row -->
192 [% MACRO jsinclude BLOCK %]
193 [% INCLUDE 'calendar.inc' %]
194 [% INCLUDE 'datatables.inc' %]
195 [% INCLUDE 'columns_settings.inc' %]
197 var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
198 $(document).ready(function() {
199 KohaTable("holdst", {
200 "aaSorting": [ [2,'desc'], [3,'asc'] ],
202 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
203 { "sType": "natural", "aTargets" : [ "natural" ] },
205 "sPaginationType": "full",
212 [% INCLUDE 'intranet-bottom.inc' %]