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