Bugfix 1979 - display hold numbers. Note that hold priorities are still buggy.
[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>&nbsp;</th>
123                     <!-- TMPL_IF NAME="item-level_itypes" -->
124                 <th>Hold</th>
125                 <th>Item Type</th>
126                 <!-- /TMPL_IF -->
127                 <th>Barcode</th>
128                 <!-- TMPL_UNLESS NAME="singleBranchMode" -->
129                 <th>Home Library</th>
130                 <th>Last Location</th>
131                 <!-- /TMPL_UNLESS -->
132                 <th>Call Number</th>
133                 <th>Information</th>
134             </tr>
135         <!-- TMPL_LOOP Name="itemloop" -->
136         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
137             <td>
138             <!-- TMPL_IF NAME="available" -->
139             <input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
140             <!-- TMPL_ELSE -->
141             <input DISABLED type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
142             <!-- /TMPL_IF -->
143             </td>
144                         <td>&nbsp;</td>
145             <!-- TMPL_IF NAME="item-level_itypes" -->
146             <td>
147             <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->">
148             </td>
149             <!-- /TMPL_IF -->
150             <td><!-- TMPL_VAR NAME="barcode"           --></td>
151             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
152             <td><!-- TMPL_VAR NAME="homebranchname"    --></td>
153             <td><!-- TMPL_VAR NAME="holdingbranchname" --></td>
154             <!-- /TMPL_UNLESS -->
155             <td><!-- TMPL_VAR NAME="itemcallnumber"    --></td>
156             <td>
157         <!-- TMPL_IF Name="date_due" -->
158             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
159         <!-- TMPL_ELSIF Name="transfertwhen" -->
160             <span class="intransit">In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
161             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" --></span>
162         <!-- /TMPL_IF -->
163
164         <!-- TMPL_IF Name="message" -->
165             <span class="lost">Unavailable (lost or missing)</span>
166         <!-- /TMPL_IF -->
167
168         <!-- TMPL_IF Name="notforloan" -->
169             <span class="notforloan">Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)</span>
170         <!-- /TMPL_IF -->
171
172             <!-- TMPL_IF NAME="reservedate"-->
173                     <span class="waiting"><!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron 
174                     <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
175                     since
176                     <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->.</span>
177             <!-- TMPL_ELSE -->
178                     <span class="notonhold">Not on hold</span>
179             <!-- /TMPL_IF -->&nbsp;
180             </td>
181         </tr>
182         <!-- /TMPL_LOOP --> <!-- itemloop -->
183         </table>
184         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
185         <input type="submit" value="Place Hold" />
186         </form><!-- /TMPL_IF -->
187     <!-- end of the first form -->
188 <!-- /TMPL_IF -->
189
190 <!-- TMPL_IF NAME="item_types_selected" -->
191 <!-- if the bibitems have already been selected -->
192 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
193 <input type="hidden" name="place_reserve" value="1">
194 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><h3>Confirm Reservation</h3>
195 <div class="details">
196     <table>
197         <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span></td></tr>
198
199 <!-- TMPL_IF NAME="all" -->
200         <tr><th>Item Type: </th><td>Any<input type="hidden" name="all" value="1"></td></tr>
201 <!-- TMPL_ELSE -->
202         <tr><th>Item Types: </th><td><!-- TMPL_LOOP NAME="TYPES" -->
203 <input type="hidden" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" -->;
204 <!-- /TMPL_LOOP --></td></tr>
205
206 <!-- /TMPL_IF -->
207         <!-- TMPL_IF NAME="singleBranchMode" -->
208         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->">
209         <!-- TMPL_ELSE -->
210         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
211         <!-- /TMPL_IF -->
212 </table>
213 </div>
214 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>
215
216 </form>
217
218 <!-- /TMPL_IF -->
219 </div></div>
220 </div>
221 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->