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