Corrrecting layout for opacuserlogin = 0. Fixes Bug 2228, "Wrong page design on opac...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-reserve.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryNameTitle" DEFAULT="Koha Online" --> 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 <div id="doc3" class="yui-t7">
6 <!--TMPL_INCLUDE NAME="masthead.inc" -->
7
8    <div id="bd">
9         <div id="yui-g">
10 <div id="holds" class="container">
11 <!-- TMPL_IF NAME="message" -->
12     <!-- TMPL_IF NAME="GNA" -->
13     <div class="dialog alert">
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     </div>
16     <div class="dialog alert">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     </div>
18     <!-- /TMPL_IF -->
19     <!-- TMPL_IF NAME="lost" -->
20     <div class="dialog alert">
21         <strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.
22     </div>
23     <div class="dialog alert">
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     </div>
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     </div>
31     <div class="dialog alert">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     </div>
33     <!-- /TMPL_IF -->
34     <!-- TMPL_IF NAME="too_much_oweing" -->
35     <div class="dialog alert">
36         Sorry, you cannot place holds because you owe <!-- TMPL_VAR NAME="too_much_oweing" -->.
37     </div>
38     <!-- /TMPL_IF -->
39     <!-- TMPL_IF NAME="too_many_reserves" -->
40         <div class="dialog alert">Sorry, you cannot place more than <!-- TMPL_VAR NAME="too_many_reserves" --> holds.
41         </div>
42         <!-- /TMPL_IF -->
43     <!-- TMPL_IF NAME="already_reserved" -->
44     <div class="dialog alert">
45         You already have a hold placed on this item. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Return to Item Detail Screen</a>
46     </div>
47     <!-- /TMPL_IF -->
48     <!-- TMPL_IF NAME="no_items_selected" -->
49     <div class="dialog alert">
50         You must select at least one item.
51     </div>
52     <!-- /TMPL_IF -->
53     <!-- TMPL_IF NAME="no_branch_selected" -->
54     <div class="dialog alert">
55         You must select a library for pickup.
56     </div>
57     <!-- /TMPL_IF -->
58     <!-- TMPL_IF NAME="no_biblionumber" -->
59     <div class="dialog alert">ERROR: No biblionumber received.</div>
60     <!-- /TMPL_IF -->
61     <!-- TMPL_IF NAME="bad_biblionumber" -->
62     <div class="dialog alert">ERROR: No biblio record found for biblionumber <!-- TMPL_VAR NAME="bad_biblionumber" -->.</div>
63     <!-- /TMPL_IF -->
64 </div>
65 <!-- /TMPL_IF -->
66
67 <!-- TMPL_IF NAME="select_item_types" -->
68     <!-- The first time round you select which bibitems you want -->
69     <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
70         <input type="hidden" name="item_types_selected" value="1">
71         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
72         <h3>Place a hold on <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><!-- TMPL_IF NAME="author" -->,  by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></h3>
73
74 <!-- TMPL_IF NAME="OPACItemHolds" --> <!-- TMPL_LOOP name="bibitemloop" --> 
75             <!-- TMPL_UNLESS NAME="item-level_itypes" -->
76             <p><strong>Item type:</strong> <!-- TMPL_VAR NAME="description" --></p>
77             <!-- /TMPL_UNLESS -->
78             <!-- TMPL_IF NAME="publicationyear" --><p><strong>Publication year:</strong> <!-- TMPL_VAR NAME="publicationyear" --></p><!-- /TMPL_IF -->
79 <!-- /TMPL_IF --><!-- /TMPL_LOOP -->
80
81                 <fieldset class="rows holds">
82                         <ol>
83                                 <li><span class="label">For:</span> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)
84             <!-- TMPL_IF NAME="singleBranchMode" -->
85              <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branchcode" -->"/>
86             <!-- /TMPL_IF -->
87             <!-- /TMPL_LOOP --></li>
88             <li><span class="label">Priority:</span><!-- TMPL_VAR Name="rank" DEFAULT="?" --> out of <!-- TMPL_VAR Name="reservecount" DEFAULT="?" -->
89                         </li> 
90             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
91             <li><label for="branch">Pick up from:</label> <select name="branch" id="branch">
92                     <!-- TMPL_LOOP NAME="CGIbranch" -->
93                         <!-- TMPL_IF name="selected" -->
94                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branch" --></option>
95                         <!-- TMPL_ELSE -->
96                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branch" --></option>
97                         <!-- /TMPL_IF -->
98                     <!-- /TMPL_LOOP -->
99             </select>
100             </li>
101             <!-- /TMPL_UNLESS -->
102                         
103                         <!-- TMPL_IF NAME="forloan" -->
104             <!-- TMPL_IF NAME="OPACItemHolds" --><li> <label for="requestany">Place a hold on the next available copy </label>
105             <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
106             </li><!-- TMPL_ELSE --><input type="hidden" name="request" value="Any" /><!-- /TMPL_IF -->
107                         </ol>
108                 </fieldset>
109
110
111 <fieldset class="action">            <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
112             <input type="submit" value="Place Hold" />
113             <input type="hidden" name="all" value="1" /></p>
114             <input type="hidden" name="place_reserve" value="1" /></fieldset>
115                         <!-- /TMPL_IF -->  
116                                   
117        <!-- TMPL_IF NAME="OPACItemHolds" --> <!-- TMPL_LOOP name="bibitemloop" -->    
118
119             <table id="requestspecific">
120                         <caption>Place a hold on a specific copy</caption>
121             <tr>
122                 <th>Hold</th>
123                     <!-- TMPL_IF NAME="item-level_itypes" -->
124                 <th>Item Type</th>
125                 <!-- /TMPL_IF -->
126                 <th>Barcode</th>
127                 <!-- TMPL_UNLESS NAME="singleBranchMode" -->
128                 <th>Home Library</th>
129                 <th>Last Location</th>
130                 <!-- /TMPL_UNLESS -->
131                 <th>Call Number</th>
132                 <th>Information</th>
133             </tr>
134         <!-- TMPL_LOOP Name="itemloop" -->
135         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
136             <td>
137             <!-- TMPL_IF NAME="available" -->
138             <input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
139             <!-- TMPL_ELSE -->
140             <input DISABLED type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
141             <!-- /TMPL_IF -->
142             </td>
143             <!-- TMPL_IF NAME="item-level_itypes" -->
144             <td>
145             <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->">
146             </td>
147             <!-- /TMPL_IF -->
148             <td><!-- TMPL_VAR NAME="barcode"           --></td>
149             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
150             <td><!-- TMPL_VAR NAME="homebranchname"    --></td>
151             <td><!-- TMPL_VAR NAME="holdingbranchname" --></td>
152             <!-- /TMPL_UNLESS -->
153             <td><!-- TMPL_VAR NAME="itemcallnumber"    --></td>
154             <td>
155         <!-- TMPL_IF Name="date_due" -->
156             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
157         <!-- TMPL_ELSIF Name="transfertwhen" -->
158             <span class="intransit">In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
159             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" --></span>
160         <!-- /TMPL_IF -->
161
162         <!-- TMPL_IF Name="message" -->
163             <span class="lost">Unavailable (lost or missing)</span>
164         <!-- /TMPL_IF -->
165
166         <!-- TMPL_IF Name="notforloan" -->
167             <span class="notforloan">Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)</span>
168         <!-- /TMPL_IF -->
169
170             <!-- TMPL_IF NAME="reservedate"-->
171                     <span class="waiting"><!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron 
172                     <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
173                     since
174                     <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->.</span>
175             <!-- TMPL_ELSE -->
176                     <span class="notonhold">Not on hold</span>
177             <!-- /TMPL_IF -->&nbsp;
178             </td>
179         </tr>
180         <!-- /TMPL_LOOP --> <!-- itemloop -->
181         </table>
182         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
183         <input type="submit" value="Place Hold" />
184         </form><!-- /TMPL_IF -->
185     <!-- end of the first form -->
186 <!-- /TMPL_IF -->
187
188 <!-- TMPL_IF NAME="item_types_selected" -->
189 <!-- if the bibitems have already been selected -->
190 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
191 <input type="hidden" name="place_reserve" value="1">
192 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><h3>Confirm Reservation</h3>
193 <div class="details">
194     <table>
195         <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span></td></tr>
196
197 <!-- TMPL_IF NAME="all" -->
198         <tr><th>Item Type: </th><td>Any<input type="hidden" name="all" value="1"></td></tr>
199 <!-- TMPL_ELSE -->
200         <tr><th>Item Types: </th><td><!-- TMPL_LOOP NAME="TYPES" -->
201 <input type="hidden" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" -->;
202 <!-- /TMPL_LOOP --></td></tr>
203
204 <!-- /TMPL_IF -->
205         <!-- TMPL_IF NAME="singleBranchMode" -->
206         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->">
207         <!-- TMPL_ELSE -->
208         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
209         <!-- /TMPL_IF -->
210 </table>
211 </div>
212 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>
213
214 </form>
215
216 <!-- /TMPL_IF -->
217 </div></div>
218 </div>
219 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->