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