Corrections for XHTML compliance, again.
[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</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- Additions to enable Calendar system -->
6 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
7 <!-- End of additions --><!-- Additions to enable Calendar system -->
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
11 <!-- End of additions -->
12
13 <!-- TMPL_INCLUDE NAME="menus.inc" -->
14 <!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
15
16 <h1>Pending holds as of <!-- TMPL_VAR NAME="todaysdate" --></h1>
17 <div id="filters">
18 <br />
19 <form method="post" >
20 <p>
21 <label for "from">
22     Start date:
23 </label>
24 <input type="text"
25         size="10"
26         id="from"
27         name="from"
28         value="<!-- TMPL_VAR NAME="from" -->" />
29 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" 
30         border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
31 <script language="JavaScript" type="text/javascript">
32 function validate1(date) {
33     var day = date.getDate();
34     var month = date.getMonth() + 1;
35     var year = date.getFullYear();
36     var weekDay = date.getDay();
37     var dayMonth = month + '-' + day;
38     var dateString = year + '-' + month + '-' + day;
39     var dateTo = document.getElementById('to').value.split("-");
40     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
41     if (date > limitDate) {
42             return true;
43     } else {
44             return false;
45     }
46 }
47 Calendar.setup(
48         {
49         inputField : "from",
50         ifFormat : "%Y-%m-%d",
51         button : "openCalendarFrom",
52         disableFunc : validate1,
53         dateStatusFunc : validate1
54         }
55 );
56 </script>
57 <label for "to" >
58     End date:
59 </label>
60 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
61 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt=""
62         id="openCalendarTo"
63         style="cursor: pointer;"
64         valign="top" border="0" />
65 <script type="text/javascript">
66         function validate2(date) {
67             var day = date.getDate();
68             var month = date.getMonth() + 1;
69             var year = date.getFullYear();
70             var weekDay = date.getDay();
71             var dayMonth = month + '-' + day;
72             var dateString = year + '-' + month + '-' + day;
73             var dateFrom = document.getElementById('from').value.split("-");
74             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
75             if (limitDate > date) {
76                     return true;
77             } else {
78                     return false;
79             }
80         }
81
82         Calendar.setup(
83                 {
84                     inputField : "to",
85                     ifFormat : "%Y-%m-%d",
86                     button : "openCalendarTo",
87                     disableFunc : validate2,
88                     dateStatusFunc : validate2
89                 }
90         );
91 </script>
92 (inclusive)
93 <input type="submit" value="Go" class="submit">
94 </p>
95 </form>
96 <p>The following holds have not been filled.</p>
97 <p>Please retrieve them and check them in</p>
98 </div>
99
100 <div class="searchresults">
101     <!-- TMPL_IF NAME="reserveloop" -->
102     <table>
103     <tr>
104         <th >
105             Priority
106             <a href="/cgi-bin/koha/circ/reserve.pl?order=priority">Sort</a>
107         </th>
108         <th >Hold Date
109             <a href="/cgi-bin/koha/circ/reserve.pl?order=date">Sort</a>
110         </th>
111         <th >Patron
112         <a href="/cgi-bin/koha/circ/reserve.pl?order=borrower">Sort</a>
113         </th>
114         <th >Title
115         <a href="/cgi-bin/koha/circ/reserve.pl?order=biblio">Sort</a>
116         </th>
117         <th>
118             Library
119         </th>
120     </tr>
121     
122     <!-- TMPL_LOOP NAME="reserveloop" -->
123         <tr>
124             <!-- TMPL_IF name="borrowernumber" -->
125                 <td><p><!-- TMPL_VAR NAME="priority" --></p></td>
126                 <td width="15%">
127                     <p><!-- TMPL_VAR NAME="reservedate" --></p>
128                     <p>in <!-- TMPL_VAR NAME="branch" --></p>
129                     <!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
130                 </td>
131                 <td>
132                     <p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
133                 <!-- TMPL_IF NAME="email" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
134     <!-- TMPL_VAR NAME="email" --></a><!--/TMPL_IF-->
135                     </p>
136                 </td>
137                 <td>
138                     <p>
139                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
140                     <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
141                         <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
142                     </a>
143                     <!-- TMPL_ELSE -->
144                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
145                         <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
146                             <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
147                         </a>
148                         <!-- TMPL_ELSE -->
149                             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
150                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
151                             </a>
152                         <!-- /TMPL_IF -->
153                     <!-- /TMPL_IF -->
154                     </p>
155                     <p><!-- TMPL_VAR NAME="notes" --></p>
156                 </td>
157             <!-- TMPL_ELSE -->
158                 <td colspan="2">
159                     &nbsp;
160                 </td>
161                 <td>"</td>
162                 <td>"</td>
163             <!-- /TMPL_IF -->
164             <td><p><!-- TMPL_VAR NAME="holdingbranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
165         </tr>
166     <!-- /TMPL_LOOP -->
167     </table>
168     <!-- TMPL_ELSE -->
169         <b>No items found.</b>
170     <!-- /TMPL_IF -->
171 </div>
172 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->