Moving </head><body> into body of templates so that js and css can be embedded per...
[koha_gimpoz] / 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 </head>
5 <body>
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7
8 <!-- Additions to enable Calendar system -->
9 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
10 <!-- End of additions --><!-- Additions to enable Calendar system -->
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
12 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
13 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
14 <!-- End of additions -->
15
16 <!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
17
18 <div id="doc3" class="yui-t2">
19    
20    <div id="bd">
21         <div id="yui-main">
22         <div class="yui-b"><div class="yui-g">
23
24 <h1>Pending holds as of <!-- TMPL_VAR NAME="todaysdate" --></h1>
25 <div id="filters">
26 <br />
27 <form method="post" >
28 <p>
29 <label for "from">
30     Start date:
31 </label>
32 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
33 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
34 <script language="JavaScript" type="text/javascript">
35 function validate1(date) {
36     var day = date.getDate();
37     var month = date.getMonth() + 1;
38     var year = date.getFullYear();
39     var weekDay = date.getDay();
40     var dayMonth = month + '-' + day;
41     var dateString = year + '-' + month + '-' + day;
42     var dateTo = document.getElementById('to').value.split("-");
43     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
44     if (date > limitDate) {
45             return true;
46     } else {
47             return false;
48     }
49 }
50 Calendar.setup(
51         {
52         inputField : "from",
53         ifFormat : "%Y-%m-%d",
54         button : "openCalendarFrom",
55         disableFunc : validate1,
56         dateStatusFunc : validate1
57         }
58 );
59 </script>
60 <label for "to" >
61     End date:
62 </label>
63 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
64 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" 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 </div>
173 </div>
174 </div>
175
176 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
177 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->