Bug 10904: Limit patron update request management by branch
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / reserveratios.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Circulation &rsaquo; Hold ratios</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
9 //<![CDATA[
10      $(document).ready(function() {
11         $(".ratiolimit").click(function () {
12             $("#ratio").val($(this).html());
13         });
14         $(".ratiolimit").hover(
15             function () { $(this).toggleClass("ulined") },
16             function () { $(this).toggleClass("ulined") }
17         );
18         $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
19             "aaSorting": [ [2,'desc'], [3,'asc'] ],
20             "aoColumnDefs": [
21                 { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
22                 { "aTargets": [ 3 ], "sType": "anti-the" },
23             ],
24             "sPaginationType": "four_button"
25         }));
26      });
27 //]]>
28 </script>
29 <style type="text/css">
30     .sql { display: none; }
31     .ulined { text-decoration: underline; }
32     .ratiolimit { color: blue; cursor: pointer; }
33 </style>
34 </head>
35 <body id="circ_reserveratios" class="circ">
36 [% INCLUDE 'header.inc' %]
37 [% INCLUDE 'circ-search.inc' %]
38
39 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Hold ratios</div>
40
41 <div id="doc3" class="yui-t2">
42    <div id="bd">
43     <div id="yui-main">
44     <div class="yui-b">
45 <h1>Hold ratios to calculate items needed</h1>
46    <h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
47     to [% to | $KohaDates %]</h3>
48 <p>These items have a hold ratio &ge; [% ratio %].</p>
49 <div class="sql">[% sql %]</div>
50
51 [% IF ( reserveloop ) %]
52     <table id="holdst">
53       <thead>
54         <tr>
55           <th>Holds</th>
56           <th>Items</th>
57           <th>Hold ratio</th>
58           <th>Title</th>
59           <th>Home libraries</th>
60           <th>Holding libraries</th>
61           <th>Location</th>
62           <th>Itype</th>
63           <th>Call numbers</th>
64           <th>Items needed</th>
65         </tr>
66       </thead>
67       <tbody>
68       [% FOREACH reserveloo IN reserveloop %]
69         <tr>
70             <td><p>[% reserveloo.reservecount %]</p></td>
71             <td><p>[% reserveloo.itemcount %]</p></td>
72             <td><p class="ratiolimit">[% reserveloo.thisratio %]</p></td>
73             <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 %]
74             </td>
75             <td><p>[% reserveloo.homebranch_list %]</p></td>
76             <td><p>[% reserveloo.holdingbranch_list %]</p></td>
77             <td><p>[% reserveloo.location %]</p></td>
78             <td><p>[% reserveloo.itype %]</p></td>
79             <td><p>[% reserveloo.listcall %]</p></td>
80             <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 %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;rr_quantity_to_order=[% reserveloo.ratiocalc %]">[% END %]<b>[% reserveloo.ratiocalc %] to order</b>[% IF ( CAN_user_acquisition && basketno && booksellerid ) %]</a>[% END %]
81             [% IF ( reserveloo.pendingorders ) %]<br><b>[% reserveloo.pendingorders %] pending</b>[% END %]</p>[% END %]</td>
82         </tr>
83       [% END %]
84       </tbody>
85     </table>
86     [% ELSE %]
87         <b>No items found.</b>
88     [% END %]
89 </div>
90 </div>
91 <div class="yui-b">
92 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
93 <fieldset class="brief">
94 <h4>Refine results:</h4>
95 <ol>
96     <li>
97         <label for="ratio">Hold ratio:</label>
98         <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" />
99     <li>
100
101     <li>
102         <label for="include_ordered">Included ordered:</label>
103         [% IF include_ordered %]
104             <input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
105         [% ELSE %]
106             <input id="include_ordered" name="include_ordered" type="checkbox"/>
107         [% END %]
108     <li>
109
110     <li>
111         <label for="from">Start date:</label>
112         <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
113     </li>
114
115     <li>
116         <label for="to">End date:</label>
117         <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
118     </li>
119 </ol>
120 (inclusive)
121
122 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
123 </fieldset>
124 [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]
125 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
126 <input type="hidden" name="basketno" value="[% basketno %]" />
127 [% END %]
128 </form>
129
130 </div>
131 </div>
132 [% INCLUDE 'intranet-bottom.inc' %]