Trying to fix checkall function in the cart
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-reserve.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Reserving <!-- TMPL_VAR NAME="title" --> for <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP -->
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 </head>
4 <body>
5 <!--TMPL_INCLUDE NAME="masthead.inc" -->
6
7 <div id="doc" class="yui-t7">
8    <div id="bd">
9         <div id="yui-g">
10
11 <!-- TMPL_IF NAME="message" -->
12     <!-- TMPL_IF NAME="GNA" -->
13     <p class="problem">
14         <strong>Sorry</strong>, you cannot place holds because the library doesn't have up-to-date <a href="/cgi-bin/koha/opac-userdetails.pl">contact information</a> on file.
15     </p>
16     <p class="problem">Please contact your librarian, or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)
17     </p>
18     <!-- /TMPL_IF -->
19     <!-- TMPL_IF NAME="lost" -->
20     <p class="problem">
21         <strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.
22     </p>
23     <p class="problem">
24         If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.
25     </p>
26     <!-- /TMPL_IF -->
27     <!-- TMPL_IF NAME="debarred" -->
28     <p class="error">
29         <strong>Sorry</strong>, you cannot place holds because your account has been frozen.
30     </p>
31     <p class="problem">Usually the reason for freezing an account is old overdues or damage fees.   If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please consult a librarian.
32     </p>
33     <!-- /TMPL_IF -->
34     <!-- TMPL_IF NAME="too_much_oweing" -->
35     <p class="problem">
36         Sorry, you cannot place holds because you owe <!-- TMPL_VAR NAME="too_much_oweing" -->.
37     </p>
38     <!-- /TMPL_IF -->
39     <!-- TMPL_IF NAME="too_many_reserves" -->
40         <p class="error">Sorry, you cannot place more than <!-- TMPL_VAR NAME="too_many_reserves" --> holds.
41         </p>
42         <!-- /TMPL_IF -->
43     <!-- TMPL_IF NAME="already_reserved" -->
44     <p class="problem">
45         You already have a hold placed on this item.
46         <form action="/cgi-bin/koha/opac-detail.pl" method="post">
47             <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
48             <input type="submit" class="icon back" value="Return to Item Detail Screen" />
49         </form>
50     </p>
51     <!-- /TMPL_IF -->
52     <!-- TMPL_IF NAME="no_items_selected" -->
53     <p class="problem">
54         You must select at least one item.
55     </p>
56     <!-- /TMPL_IF -->
57     <!-- TMPL_IF NAME="no_branch_selected" -->
58     <p class="error">
59         You must select a library for pickup.
60     </p>
61     <!-- /TMPL_IF -->
62 </div>
63 <!-- /TMPL_IF -->
64
65 <!-- TMPL_IF NAME="select_item_types" -->
66     <!-- The first time round you select which bibitems you want -->
67     <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
68         <input type="hidden" name="item_types_selected" value="1">
69         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
70         <h3>Place a hold on <span class="title"><!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->,  by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></h3>
71             <p><strong>For:</strong> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_LOOP --></p>
72             <p><strong>Priority:</strong><!-- TMPL_VAR Name="fixedRank" --> out of ?</p> 
73             <p>Pick up from:<select name="branch" id="branch">
74                     <!-- TMPL_LOOP NAME="CGIbranch" -->
75                         <!-- TMPL_IF name="selected" -->
76                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branch" --></option>
77                         <!-- TMPL_ELSE -->
78                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branch" --></option>
79                         <!-- /TMPL_IF -->
80                     <!-- /TMPL_LOOP -->
81             </select>
82             </p>
83                         <!-- TMPL_IF NAME="forloan" -->
84             <p> <label for="requestany">Place a hold on the next available copy </label>
85             <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
86             </p>
87
88             <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
89             <input type="submit" value="Place Hold" />
90             <input type="hidden" name="all" value="1"/></p>
91             <input type="hidden" name="place_reserve" value="1"/>
92                         <!-- /TMPL_IF -->            
93         <!-- TMPL_LOOP name="bibitemloop" -->    
94
95             <!-- TMPL_UNLESS NAME="item-level_itypes" -->
96             <p><strong>Item type:</strong> <!-- TMPL_VAR NAME="description" --></p>
97             <!-- /TMPL_UNLESS -->
98             <!-- TMPL_IF NAME="publicationyear" --><p><strong>Publication year:</strong> <!-- TMPL_VAR NAME="publicationyear" --></p><!-- /TMPL_IF -->
99             <label for="requestspecific">Place a hold on a specific copy</label>
100             <table id="requestspecific">
101             <tr>
102                     <!-- TMPL_IF NAME="item-level_itypes" -->
103                 <th>Hold</th>
104                 <th>Item type</th>
105                 <!-- /TMPL_IF -->
106                 <th>Barcode</th>
107                 <th>Home Library</th>
108                 <th>Last Location</th>
109                 <th>Call number</th>
110                 <th>Information</th>
111             </tr>
112         <!-- TMPL_LOOP Name="itemloop" -->
113         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
114             <td>
115             <!-- TMPL_IF NAME="available" -->
116             <input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
117             <!-- TMPL_ELSE -->
118             <input DISABLED type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
119             <!-- /TMPL_IF -->
120             </td>
121
122             <!-- TMPL_IF NAME="item-level_itypes" -->
123             <td>
124             <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="itypename" -->" title="<!-- TMPL_VAR NAME="itypename" -->"/>
125             </td>
126             <!-- /TMPL_IF -->
127
128             <td>
129                     <!-- TMPL_VAR NAME="barcode" -->
130             </td>
131             <td>
132             <!-- TMPL_VAR NAME="homebranchname" -->
133             </td>
134             <td>
135             <!-- TMPL_VAR NAME="holdingbranchname" -->
136             </td>
137             <td>
138             <!-- TMPL_VAR NAME="itemcallnumber" -->
139             </td>
140             <td>
141         <!-- TMPL_IF Name="date_due" -->
142             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
143                         <!-- TMPL_ELSE -->
144         <!-- TMPL_IF Name="transfertwhen" -->
145             In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
146             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" -->
147         <!-- /TMPL_IF -->
148         <!-- /TMPL_IF -->
149
150         <!-- TMPL_IF Name="message" -->
151             Unavailable (lost or missing)
152         <!-- /TMPL_IF -->
153
154         <!-- TMPL_IF Name="notforloan" -->
155             Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)
156         <!-- /TMPL_IF -->
157
158             <!-- TMPL_IF NAME="reservedate"-->
159                     <!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron 
160                     <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
161                     since
162                     <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->.
163             <!-- TMPL_ELSE -->
164                     Not on hold
165             <!-- /TMPL_IF -->
166             </td>
167         </tr>
168         <!-- /TMPL_LOOP --> <!-- itemloop -->
169         </table>
170         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
171         <input type="submit" value="Place Hold" />
172         </form>
173     <!-- end of the first form -->
174 <!-- /TMPL_IF -->
175
176 <!-- TMPL_IF NAME="item_types_selected" -->
177 <!-- if the bibitems have already been selected -->
178 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
179 <input type="hidden" name="place_reserve" value="1">
180 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><h3>Confirm Reservation</h3>
181 <div class="details">
182     <table>
183         <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span></td></tr>
184
185 <!-- TMPL_IF NAME="all" -->
186         <tr><th>Item Type: </th><td>Any<input type="hidden" name="all" value="1"></td></tr>
187 <!-- TMPL_ELSE -->
188         <tr><th>Item Types: </th><td><!-- TMPL_LOOP NAME="TYPES" -->
189 <input type="hidden" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" -->;
190 <!-- /TMPL_LOOP --></td></tr>
191
192 <!-- /TMPL_IF -->
193         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
194 </table>
195 </div>
196 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>
197
198 </form>
199
200 <!-- /TMPL_IF -->
201 </div>
202 </div>
203 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->