bug 4845 change language from reserves to holds
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / reserveratios.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Hold Ratios</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <!-- End of additions --><!-- Additions to enable Calendar system -->
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
12 <script type="text/javascript" language="JavaScript">
13 //<![CDATA[
14 $.tablesorter.addParser({
15     id: 'articles', 
16     is: function(s) {return false;  }, 
17     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
18     type: 'text' 
19 });
20          $(document).ready(function() {
21                 $("th a").hide();
22                 $(".ratiolimit").click(function () {
23             $("#ratio").val($(this).html());
24         });
25                 $(".ratiolimit").hover(
26             function () { $(this).toggleClass("ulined") },
27             function () { $(this).toggleClass("ulined") }
28         );
29                 $.tablesorter.defaults.widgets = ['zebra']; 
30                 $("#holdst:has(tbody tr)").tablesorter({    // only add sort if the table has a body and rows
31                         sortList: [[0,0]],
32                         headers: { 1: { sorter: 'articles' }}
33                 }); 
34          });
35 //]]>
36 </script>
37 <style type="text/css">
38     .sql { display: none; }
39     .ulined { text-decoration: underline; }
40     .ratiolimit { color: blue; cursor: pointer; }
41 </style>
42 </head>
43 <body>
44 <!-- TMPL_INCLUDE NAME="header.inc" -->
45 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
46
47 <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>
48
49 <div id="doc3" class="yui-t2">
50    
51    <div id="bd">
52         <div id="yui-main">
53         <div class="yui-b">
54 <h1>Hold Ratios to Calculate Items Needed</h1>
55    <h3>Calculated on <!-- TMPL_VAR NAME="todaysdate" -->. From <!-- TMPL_VAR NAME="from" -->
56         to <!-- TMPL_VAR NAME="to" --></h3>
57 <p>These items have a hold ratio &ge; <!-- TMPL_VAR NAME="ratio" -->.</p>
58 <div class="sql"><!-- TMPL_VAR NAME="sql" DEFAULT="" --></div>
59
60 <!-- TMPL_IF NAME="reserveloop" -->
61     <table id="holdst">
62 <thead>    <tr>
63         <th>Holds
64         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=reservecount&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
65         </th>
66         <th>Items
67         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=itemcount&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
68         </th>
69         <th>Hold Ratio</th>
70         <th>Title
71         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=biblio&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
72         </th>
73         <th>Holding Libraries
74         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=branch&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
75         </th>
76         <th>Location
77         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=location&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
78         </th>
79         <th>Itype
80         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=itype&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
81         </th>
82         <th>Call Numbers
83         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=callnumber&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
84         </th>
85         <th>Items Needed
86         </th>
87     </tr></thead>
88     
89     <tbody><!-- TMPL_LOOP NAME="reserveloop" -->
90         <tr>
91                 <td><p><!-- TMPL_VAR NAME="reservecount" --></p></td>
92                 <td><p><!-- TMPL_VAR NAME="itemcount" --></p></td>
93                 <td><p class="ratiolimit"><!-- TMPL_VAR NAME="thisratio" --></p></td>
94             <td><p>
95                    <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
96                    <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
97                    <!-- TMPL_ELSIF name="BiblioDefaultViewisbd" -->
98                    <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
99                    <!-- TMPL_ELSE -->
100                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
101                    <!-- /TMPL_IF -->
102                       <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
103                    </a>
104                 </p>
105                 <p><!-- TMPL_VAR NAME="notes" --></p>
106             </td>
107             <td><p><!-- TMPL_VAR NAME="listbranch" --></p></td>
108             <td><p><!-- TMPL_VAR NAME="location" --></p></td>
109             <td><p><!-- TMPL_VAR NAME="itype" --></p></td>
110             <td><p><!-- TMPL_VAR NAME="listcall" --></p></td>
111             <td><!-- TMPL_IF NAME="thisratio_atleast1" --><p><b><!-- TMPL_VAR NAME="ratiocalc" --> to order</b></p><!-- /TMPL_IF --></td>
112         </tr>
113     <!-- /TMPL_LOOP --></tbody>
114     </table>
115     <!-- TMPL_ELSE -->
116         <b>No items found.</b>
117     <!-- /TMPL_IF -->
118 </div>
119 </div>
120 <div class="yui-b">
121 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
122 <fieldset class="brief">
123 <h4>Refine Results:</h4>
124 <ol><li><label for="ratio">
125     Hold Ratio:
126 </label>
127 <input type="text" size="5" id="ratio" name="ratio" value="<!-- TMPL_VAR NAME="ratio" -->" /></li>
128 <li><label for="from">
129     Start date:
130 </label>
131 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
132 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
133 <script language="JavaScript" type="text/javascript">
134 function validate1(date) {
135     var day = date.getDate();
136     var month = date.getMonth() + 1;
137     var year = date.getFullYear();
138     var weekDay = date.getDay();
139     var dayMonth = month + '-' + day;
140     var dateString = year + '-' + month + '-' + day;
141     var dateTo = document.getElementById('to').value.split("-");
142     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
143     if (date > limitDate) {
144             return true;
145     } else {
146             return false;
147     }
148 }
149 Calendar.setup(
150         {
151         inputField : "from",
152         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
153         button : "openCalendarFrom",
154         disableFunc : validate1,
155         dateStatusFunc : validate1
156         }
157 );
158 </script></li>
159 <li><label for="to" >
160     End date:
161 </label>
162 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
163 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
164 <script type="text/javascript">
165         function validate2(date) {
166             var day = date.getDate();
167             var month = date.getMonth() + 1;
168             var year = date.getFullYear();
169             var weekDay = date.getDay();
170             var dayMonth = month + '-' + day;
171             var dateString = year + '-' + month + '-' + day;
172             var dateFrom = document.getElementById('from').value.split("-");
173             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
174             if (limitDate > date) {
175                     return true;
176             } else {
177                     return false;
178             }
179         }
180
181         Calendar.setup(
182                 {
183                     inputField : "to",
184                     ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
185                     button : "openCalendarTo",
186                     disableFunc : validate2,
187                     dateStatusFunc : validate2
188                 }
189         );
190 </script></li></ol>
191 (inclusive)
192
193 <fieldset class="action"><input type="submit" value="Go" class="submit"/></fieldset>
194 </fieldset>
195 </form>
196
197 </div>
198 </div>
199 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->