Merge branch 'new/bug11216'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / reserveratios.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Circulation &rsaquo; Hold ratios</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11      $(document).ready(function() {
12         $(".ratiolimit").click(function () {
13             $("#ratio").val($(this).html());
14         });
15         $(".ratiolimit").hover(
16             function () { $(this).toggleClass("ulined") },
17             function () { $(this).toggleClass("ulined") }
18         );
19         $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
20             "aoColumnDefs": [
21                 { "aTargets": [ 8 ], "sType": "natural" }
22             ],
23             "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
24             "iDisplayLength": 20,
25             "sPaginationType": "four_button"
26         }));
27      });
28 //]]>
29 </script>
30 <style type="text/css">
31     .sql { display: none; }
32     .ulined { text-decoration: underline; }
33     .ratiolimit { color: blue; cursor: pointer; }
34 </style>
35 </head>
36 <body id="circ_reserveratios" class="circ">
37 [% INCLUDE 'header.inc' %]
38 [% INCLUDE 'circ-search.inc' %]
39
40 <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>
41
42 <div id="doc3" class="yui-t2">
43    <div id="bd">
44     <div id="yui-main">
45     <div class="yui-b">
46 <h1>Hold ratios to calculate items needed</h1>
47    <h3>Calculated on [% todaysdate %]. From [% from %]
48     to [% to %]</h3>
49 <p>These items have a hold ratio &ge; [% ratio %].</p>
50 <div class="sql">[% sql %]</div>
51
52 [% IF ( reserveloop ) %]
53     <table id="holdst">
54       <thead>
55         <tr>
56           <th>Holds</th>
57           <th>Items</th>
58           <th>Hold ratio</th>
59           <th>Title</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.listbranch %]</p></td>
76             <td><p>[% reserveloo.location %]</p></td>
77             <td><p>[% reserveloo.itype %]</p></td>
78             <td><p>[% reserveloo.listcall %]</p></td>
79             <td>[% IF ( reserveloo.thisratio_atleast1 ) %]<p><b>[% reserveloo.ratiocalc %] to order</b></p>[% END %]</td>
80         </tr>
81       [% END %]
82       </tbody>
83     </table>
84     [% ELSE %]
85         <b>No items found.</b>
86     [% END %]
87 </div>
88 </div>
89 <div class="yui-b">
90 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
91 <fieldset class="brief">
92 <h4>Refine results:</h4>
93 <ol><li><label for="ratio">
94     Hold ratio:
95 </label>
96 <input type="text" size="5" id="ratio" name="ratio" value="[% ratio %]" /></li>
97 <li><label for="from">
98     Start date:
99 </label>
100 <input type="text" size="10" id="from" name="from" value="[% from %]" class="datepickerfrom" />
101 </li>
102 <li><label for="to">
103     End date:
104 </label>
105 <input size="10" id="to" name="to" value="[% to %]" type="text" class="datepickerto" />
106 </li></ol>
107 (inclusive)
108
109 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
110 </fieldset>
111 </form>
112
113 </div>
114 </div>
115 [% INCLUDE 'intranet-bottom.inc' %]