Bug 5917 / Bug 6085 : Fixing not being able to change language
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / pendingreserves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Holds to Pull</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                 $.tablesorter.defaults.widgets = ['zebra'];
23                 $("#holdst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
24                 dateFormat: 'uk',<!-- /TMPL_IF -->
25                         sortList: [[3,0]],
26                         headers: { 0:{sorter:false},1:{sorter:false},3: { sorter: 'articles' },7:{sorter:false}}
27                 }); 
28          });
29 //]]>
30 </script>
31 </head>
32 <body>
33 <!-- TMPL_INCLUDE NAME="header.inc" -->
34 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
35
36
37 <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; Holds to Pull</div>
38
39 <div id="doc3" class="yui-t2">
40    
41    <div id="bd">
42         <div id="yui-main">
43         <div class="yui-b">
44
45 <h2>Holds to Pull<!-- TMPL_IF NAME="run_report" --> placed between <!-- TMPL_VAR NAME="from" --> and <!-- TMPL_VAR NAME="to" --><!-- /TMPL_IF --></h2>
46 <!-- TMPL_IF NAME="run_report" -->
47 <h3>Reported on <!-- TMPL_VAR NAME="todaysdate" --></h3>
48 <p>The following holds have not been filled. Please retrieve them and check them in.</p>
49 <div class="searchresults">
50     <!-- TMPL_IF NAME="reserveloop" -->
51     <table id="holdst">
52     <thead>
53     <tr>
54         <th>
55                                 Pull This Many Items
56         </th>        
57         <th>
58                                 Items Available
59         </th>
60         <th>
61                                 Patrons with Holds
62         </th>
63         <th>Title
64         <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=biblio&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
65         </th>
66         <th>
67             Libraries
68                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=library&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
69         </th>
70         <th>
71             Available Call Numbers
72                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=call&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
73         </th>
74         <th>
75             Available Itypes
76                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=itype&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
77         </th>
78         <th>
79             Available Locations
80                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=location&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
81         </th>
82         <th >Earliest Hold Date
83             <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=date&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
84         </th>
85     </tr>
86     </thead>
87     <tbody>
88         <!-- TMPL_IF NAME="next_or_previous" -->
89         <tr>
90             <td colspan="3" align="left">
91             <!-- TMPL_IF NAME="prev_results" -->
92                 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
93                     <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
94                     <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
95                     <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="prev_results" -->">
96                     <input type="submit" name="run_report" value="&lt; Prev">
97                 </form>
98             <!-- /TMPL_IF -->
99             </td>
100             <td colspan="3"></td>
101             <td colspan="3" align="right">
102             <!-- TMPL_IF NAME="next_results" -->
103                 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
104                     <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
105                     <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
106                     <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="next_results" -->">
107                     <input type="submit" name="run_report" value="Next &gt;">
108                 </form>
109             <!-- /TMPL_IF -->
110             </td>
111         </tr>
112         <!-- /TMPL_IF -->
113         <!-- TMPL_LOOP NAME="reserveloop" -->
114         <tr>
115             <!-- TMPL_IF name="borrowernumber" -->
116                 <td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
117                 <td><!-- TMPL_VAR NAME="count" --></td>  
118                 <td><!-- TMPL_VAR NAME="rcount" --></td> 
119                 <td>
120                     <p>
121             <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
122                                 <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
123                             </a>
124                     </p>
125                 </td>
126             <!-- TMPL_ELSE -->
127                 <td colspan="3">
128                     &nbsp;
129                 </td>
130                 <td>"</td>
131             <!-- /TMPL_IF -->
132             <td><p><!-- TMPL_VAR NAME="holdingbranch" --></p></td>
133             <td><p><!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
134                                 <td><p><!-- TMPL_VAR NAME="itype" --></p></td> 
135                                 <td><p><!-- TMPL_VAR NAME="location" --></p></td>
136             <td width="15%">
137                 <p><!-- TMPL_VAR NAME="reservedate" --></p>
138                 <p>in <!-- TMPL_VAR NAME="branch" --></p>
139                 <!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
140             </td>
141         </tr>
142         <!-- /TMPL_LOOP -->
143         <!-- TMPL_IF NAME="next_or_previous" -->
144         <tr>
145             <td colspan="3" align="left">
146             <!-- TMPL_IF NAME="prev_results" -->
147                 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
148                     <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
149                     <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
150                     <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="prev_results" -->">
151                     <input type="submit" name="run_report" value="&lt; Prev">
152                 </form>
153             <!-- /TMPL_IF -->
154             </td>
155             <td colspan="3"></td>
156             <td colspan="3" align="right">
157             <!-- TMPL_IF NAME="next_results" -->
158                 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
159                     <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
160                     <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
161                     <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="next_results" -->">
162                     <input type="submit" name="run_report" value="Next &gt;">
163                 </form>
164             <!-- /TMPL_IF -->
165             </td>
166         </tr>
167         <!-- /TMPL_IF -->
168     </tbody>
169     </table>
170     <!-- TMPL_ELSE -->
171         <b>No items found.</b>
172     <!-- /TMPL_IF -->
173 </div>
174 <!-- /TMPL_IF -->
175
176 </div>
177 </div>
178 <div class="yui-b">
179 <div id="filters">
180
181 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
182 <fieldset class="brief">
183 <h4>Refine Results</h4>
184 <ol>
185 <li>
186 <label for="from">
187     Start date:
188 </label>
189 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
190 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
191 <script language="JavaScript" type="text/javascript">
192 function validate1(date) {
193     var day = date.getDate();
194     var month = date.getMonth() + 1;
195     var year = date.getFullYear();
196     var weekDay = date.getDay();
197     var dayMonth = month + '-' + day;
198     var dateString = year + '-' + month + '-' + day;
199     var dateTo = document.getElementById('to').value.split("-");
200     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
201     if (date > limitDate) {
202             return true;
203     } else {
204             return false;
205     }
206 }
207 Calendar.setup(
208         {
209         inputField : "from",
210         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
211         button : "openCalendarFrom",
212         disableFunc : validate1,
213         dateStatusFunc : validate1
214         }
215 );
216 </script></li>
217 <li><label for="to">
218     End date:
219 </label>
220 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
221 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
222 <script type="text/javascript">
223         function validate2(date) {
224             var day = date.getDate();
225             var month = date.getMonth() + 1;
226             var year = date.getFullYear();
227             var weekDay = date.getDay();
228             var dayMonth = month + '-' + day;
229             var dateString = year + '-' + month + '-' + day;
230             var dateFrom = document.getElementById('from').value.split("-");
231             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
232             if (limitDate > date) {
233                     return true;
234             } else {
235                     return false;
236             }
237         }
238
239         Calendar.setup(
240                 {
241                     inputField : "to",
242                     ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
243                     button : "openCalendarTo",
244                     disableFunc : validate2,
245                     dateStatusFunc : validate2
246                 }
247         );
248 </script></li>
249 </ol>
250 <p><i>(Inclusive, default is two days ago to today, set other date ranges as needed. )</i></p>
251 <fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
252 </fieldset>
253 </form>
254
255 </div>
256 </div>
257 </div>
258 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->