Synching opac with fixes to reserves adding back dev_week opac reserve cancel feature...
[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             <p> <label for="requestany">Place a hold on the next available copy </label>
84             <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
85             </p>
86             <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
87             <input type="submit" value="Place Hold" />
88             <input type="hidden" name="all" value="1"/></p>
89             <input type="hidden" name="place_reserve" value="1"/>
90
91         <!-- TMPL_LOOP name="bibitemloop" -->    
92
93             <!-- TMPL_UNLESS NAME="item-level_itypes" -->
94             <p><strong>Item type:</strong> <!-- TMPL_VAR NAME="description" --></p>
95             <!-- /TMPL_UNLESS -->
96             <!-- TMPL_IF NAME="publicationyear" --><p><strong>Publication year:</strong> <!-- TMPL_VAR NAME="publicationyear" --></p><!-- /TMPL_IF -->
97             <label for="requestspecific">Place a hold on a specific copy</label>
98             <table id="requestspecific">
99             <tr>
100                     <!-- TMPL_IF NAME="item-level_itypes" -->
101                 <th>Hold</th>
102                 <th>Item type</th>
103                 <!-- /TMPL_IF -->
104                 <th>Barcode</th>
105                 <th>Home Library</th>
106                 <th>Last Location</th>
107                 <th>Call number</th>
108                 <th>Information</th>
109             </tr>
110         <!-- TMPL_LOOP Name="itemloop" -->
111         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
112             <td>
113             <!-- TMPL_IF NAME="available" -->
114             <input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
115             <!-- TMPL_ELSE -->
116             <input DISABLED type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
117             <!-- /TMPL_IF -->
118             </td>
119
120             <!-- TMPL_IF NAME="item-level_itypes" -->
121             <td>
122             <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="itypename" -->" title="<!-- TMPL_VAR NAME="itypename" -->"/>
123             </td>
124             <!-- /TMPL_IF -->
125
126             <td>
127                     <!-- TMPL_VAR NAME="barcode" -->
128             </td>
129             <td>
130             <!-- TMPL_VAR NAME="homebranchname" -->
131             </td>
132             <td>
133             <!-- TMPL_VAR NAME="holdingbranchname" -->
134             </td>
135             <td>
136             <!-- TMPL_VAR NAME="itemcallnumber" -->
137             </td>
138             <td>
139         <!-- TMPL_IF Name="date_due" -->
140             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
141         <!-- /TMPL_IF -->
142
143         <!-- TMPL_IF Name="message" -->
144             Unavailable (lost or missing)
145         <!-- /TMPL_IF -->
146
147         <!-- TMPL_IF Name="notforloan" -->
148             Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)
149         <!-- /TMPL_IF -->
150         <!-- TMPL_IF Name="transfertwhen" -->
151             In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
152             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" -->
153         <!-- /TMPL_IF -->
154
155             <!-- TMPL_IF NAME="reservedate"-->
156                     <!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron 
157                     <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
158                     since
159                     <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->.
160             <!-- TMPL_ELSE -->
161                     Not on hold
162             <!-- /TMPL_IF -->
163             </td>
164         </tr>
165         <!-- /TMPL_LOOP --> <!-- itemloop -->
166         </table>
167         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
168         <input type="submit" value="Place Hold" />
169         </form>
170     <!-- end of the first form -->
171 <!-- /TMPL_IF -->
172
173 <!-- TMPL_IF NAME="item_types_selected" -->
174 <!-- if the bibitems have already been selected -->
175 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
176 <input type="hidden" name="place_reserve" value="1">
177 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><h3>Confirm Reservation</h3>
178 <div class="details">
179     <table>
180         <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span></td></tr>
181
182 <!-- TMPL_IF NAME="all" -->
183         <tr><th>Item Type: </th><td>Any<input type="hidden" name="all" value="1"></td></tr>
184 <!-- TMPL_ELSE -->
185         <tr><th>Item Types: </th><td><!-- TMPL_LOOP NAME="TYPES" -->
186 <input type="hidden" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" -->;
187 <!-- /TMPL_LOOP --></td></tr>
188
189 <!-- /TMPL_IF -->
190         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
191 </table>
192 </div>
193 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>
194
195 </form>
196
197 <!-- /TMPL_IF -->
198 </div>
199 </div>
200 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->