Markup corrections. Tweaking holds interface.
[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     <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 </div>
59 <!-- /TMPL_IF -->
60
61 <!-- TMPL_IF NAME="select_item_types" -->
62     <!-- The first time round you select which bibitems you want -->
63     <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
64         <input type="hidden" name="item_types_selected" value="1">
65         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
66         <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>
67                 <fieldset class="rows holds">
68                         <ol>
69                                 <li><span class="label">For:</span> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)
70             <!-- TMPL_IF NAME="singleBranchMode" -->
71              <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branchcode" -->"/>
72             <!-- /TMPL_IF -->
73             <!-- /TMPL_LOOP --></li>
74             <li><span class="label">Priority:</span><!-- TMPL_VAR Name="fixedRank" --> out of ?</li> 
75             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
76             <li><label for="branch">Pick up from:</label> <select name="branch" id="branch">
77                     <!-- TMPL_LOOP NAME="CGIbranch" -->
78                         <!-- TMPL_IF name="selected" -->
79                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branch" --></option>
80                         <!-- TMPL_ELSE -->
81                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branch" --></option>
82                         <!-- /TMPL_IF -->
83                     <!-- /TMPL_LOOP -->
84             </select>
85             </li>
86             <!-- /TMPL_UNLESS -->
87                         <!-- TMPL_IF NAME="forloan" -->
88             <li> <label for="requestany">Place a hold on the next available copy </label>
89             <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
90             </li>
91                         </ol>
92                 </fieldset>
93
94
95 <fieldset class="action">            <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
96             <input type="submit" value="Place Hold" />
97             <input type="hidden" name="all" value="1" /></p>
98             <input type="hidden" name="place_reserve" value="1" /></fieldset>
99                         <!-- /TMPL_IF -->            
100         <!-- TMPL_LOOP name="bibitemloop" -->    
101
102             <!-- TMPL_UNLESS NAME="item-level_itypes" -->
103             <p><strong>Item type:</strong> <!-- TMPL_VAR NAME="description" --></p>
104             <!-- /TMPL_UNLESS -->
105             <!-- TMPL_IF NAME="publicationyear" --><p><strong>Publication year:</strong> <!-- TMPL_VAR NAME="publicationyear" --></p><!-- /TMPL_IF -->
106
107             <table id="requestspecific">
108                         <caption>Place a hold on a specific copy</caption>
109             <tr>
110                     <!-- TMPL_IF NAME="item-level_itypes" -->
111                 <th>Hold</th>
112                 <!-- TMPL_IF NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_IF -->
113                 <!-- /TMPL_IF -->
114                 <th>Barcode</th>
115                 <!-- TMPL_UNLESS NAME="singleBranchMode" -->
116                 <th>Home Library</th>
117                 <th>Last Location</th>
118                 <!-- /TMPL_UNLESS -->
119                 <th>Call Number</th>
120                 <th>Information</th>
121             </tr>
122         <!-- TMPL_LOOP Name="itemloop" -->
123         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
124             <td>
125             <!-- TMPL_IF NAME="available" -->
126             <input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
127             <!-- TMPL_ELSE -->
128             <input DISABLED type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
129             <!-- /TMPL_IF -->
130             </td>
131
132             <!-- TMPL_IF NAME="item-level_itypes" -->
133             <td>
134             <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->">
135             </td>
136             <!-- /TMPL_IF -->
137
138             <td>
139                     <!-- TMPL_VAR NAME="barcode" -->
140             </td>
141             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
142             <td>
143             <!-- TMPL_VAR NAME="homebranchname" -->
144             </td>
145             <td>
146             <!-- TMPL_VAR NAME="holdingbranchname" -->
147             </td>
148             <!-- /TMPL_UNLESS -->
149             <td>
150             <!-- TMPL_VAR NAME="itemcallnumber" -->
151             </td>
152             <td>
153         <!-- TMPL_IF Name="date_due" -->
154             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
155                         <!-- TMPL_ELSE -->
156         <!-- TMPL_IF Name="transfertwhen" -->
157             In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
158             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" -->
159         <!-- /TMPL_IF -->
160         <!-- /TMPL_IF -->
161
162         <!-- TMPL_IF Name="message" -->
163             Unavailable (lost or missing)
164         <!-- /TMPL_IF -->
165
166         <!-- TMPL_IF Name="notforloan" -->
167             Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)
168         <!-- /TMPL_IF -->
169
170             <!-- TMPL_IF NAME="reservedate"-->
171                     <!-- 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 -->.
175             <!-- TMPL_ELSE -->
176                     Not on hold
177             <!-- /TMPL_IF -->
178             </td>
179         </tr>
180         <!-- /TMPL_LOOP --> <!-- itemloop -->
181         </table>
182         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
183         <input type="submit" value="Place Hold" />
184         </form>
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>
218 </div>
219 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->