more XHTML corrections for new circ reports
[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; Pending Holds</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 </head>
12 <body>
13 <!-- TMPL_INCLUDE NAME="header.inc" -->
14 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
15
16
17 <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; Pending Holds</div>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25 <h1>Hold Pull List</h1>
26 <h1>Pending holds on <!-- TMPL_VAR NAME="todaysdate" --> (from <!-- TMPL_VAR NAME="from" -->
27         to <!-- TMPL_VAR NAME="to" -->)</h1>
28 <div id="filters">
29 <br />
30 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
31 <p>
32
33 <label for="from">
34     Start date:
35 </label>
36 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
37 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
38 <script language="JavaScript" type="text/javascript">
39 function validate1(date) {
40     var day = date.getDate();
41     var month = date.getMonth() + 1;
42     var year = date.getFullYear();
43     var weekDay = date.getDay();
44     var dayMonth = month + '-' + day;
45     var dateString = year + '-' + month + '-' + day;
46     var dateTo = document.getElementById('to').value.split("-");
47     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
48     if (date > limitDate) {
49             return true;
50     } else {
51             return false;
52     }
53 }
54 Calendar.setup(
55         {
56         inputField : "from",
57         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
58         button : "openCalendarFrom",
59         disableFunc : validate1,
60         dateStatusFunc : validate1
61         }
62 );
63 </script>
64 <label for="to" >
65     End date:
66 </label>
67 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
68 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
69 <script type="text/javascript">
70         function validate2(date) {
71             var day = date.getDate();
72             var month = date.getMonth() + 1;
73             var year = date.getFullYear();
74             var weekDay = date.getDay();
75             var dayMonth = month + '-' + day;
76             var dateString = year + '-' + month + '-' + day;
77             var dateFrom = document.getElementById('from').value.split("-");
78             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
79             if (limitDate > date) {
80                     return true;
81             } else {
82                     return false;
83             }
84         }
85
86         Calendar.setup(
87                 {
88                     inputField : "to",
89                     ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
90                     button : "openCalendarTo",
91                     disableFunc : validate2,
92                     dateStatusFunc : validate2
93                 }
94         );
95 </script>
96 <br/>
97 <i>(Inclusive, default is (10 years ago to yesterday), set "to" to today as needed. )</i>
98 <input type="submit" value="Go" class="submit"/>
99 </p>
100 </form>
101 <p>The following holds have not been filled.</p>
102 <p>Please retrieve them and check them in</p>
103 </div>
104
105 <div class="searchresults">
106     <!-- TMPL_IF NAME="reserveloop" -->
107     <table>
108     <tr>
109         <th>
110                                 Pull This Many Items
111         </th>        
112         <th>
113                                 Items Available
114         </th>
115         <th>
116                                 Patrons with Holds
117         </th>
118         <th >Title
119         <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=biblio&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
120         </th>
121         <th>
122             Libraries
123                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=library&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
124         </th>
125         <th>
126             Available Call Numbers
127                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=call&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
128         </th>
129         <th>
130             Available Itypes
131                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=itype&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
132         </th>
133         <th>
134             Available Locations
135                                 <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=location&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
136         </th>
137         <th >Earliest Hold Date
138             <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=date&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
139         </th>
140
141     </tr>
142     
143     <!-- TMPL_LOOP NAME="reserveloop" -->
144         <tr>
145             <!-- TMPL_IF name="borrowernumber" -->
146                 <td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
147                 <td><!-- TMPL_VAR NAME="count" --></td>  
148                 <td><!-- TMPL_VAR NAME="rcount" --></td> 
149                 <td>
150                     <p>
151                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
152                     <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
153                         <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
154                     </a>
155                     <!-- TMPL_ELSE -->
156                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
157                         <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
158                             <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
159                         </a>
160                         <!-- TMPL_ELSE -->
161                             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
162                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
163                             </a>
164                         <!-- /TMPL_IF -->
165                     <!-- /TMPL_IF -->
166                     </p>
167                     <p><!-- TMPL_VAR NAME="notes" --></p>
168                 </td>
169             <!-- TMPL_ELSE -->
170                 <td colspan="3">
171                     &nbsp;
172                 </td>
173                 <td>"</td>
174             <!-- /TMPL_IF -->
175             <td><p><!-- TMPL_VAR NAME="holdingbranch" --></p></td>
176             <td><p><!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
177                                 <td><p><!-- TMPL_VAR NAME="itype" --></p></td> 
178                                 <td><p><!-- TMPL_VAR NAME="location" --></p></td>
179             <td width="15%">
180                 <p><!-- TMPL_VAR NAME="reservedate" --></p>
181                 <p>in <!-- TMPL_VAR NAME="branch" --></p>
182                 <!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
183             </td>
184         </tr>
185     <!-- /TMPL_LOOP -->
186     </table>
187     <!-- TMPL_ELSE -->
188         <b>No items found.</b>
189     <!-- /TMPL_IF -->
190 </div>
191 </div>
192 </div>
193 <div class="yui-b">
194 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
195 </div>
196 </div>
197 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->