51ed1282311f642a4770ef5293143e027d59bf32
[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" escape="html" --> 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 <script type="text/javascript">
4 // <![CDATA[ 
5  $(document).ready(function() {
6         $("#requestany").click(function() {
7                 if(this.checked){
8                 $("input[@name=checkitem]").each(function() {
9                         $(this).attr("checked","");
10                 });
11                 }
12         });
13         $("input[@name=checkitem]").click(function() {
14                 onechecked = 0;
15                 $("input[@name=checkitem]").each(function() {
16                         if(this.checked){
17                                 onechecked = 1;
18                         }
19                 });
20                 if(onechecked == 1){
21                         $("#requestany").attr("checked","");
22                 } else {
23                         $("#requestany").attr("checked","checked");
24                 }
25         });
26  });
27 // ]]>
28 </script>
29 </head>
30 <body>
31 <div id="doc3" class="yui-t7">
32 <!--TMPL_INCLUDE NAME="masthead.inc" -->
33
34    <div id="bd">
35         <div id="yui-g">
36 <div id="holds" class="container">
37 <!-- TMPL_IF NAME="message" -->
38     <!-- TMPL_IF NAME="GNA" -->
39     <div class="dialog alert">
40         <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.
41     </div>
42     <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)
43     </div>
44     <!-- /TMPL_IF -->
45     <!-- TMPL_IF NAME="lost" -->
46     <div class="dialog alert">
47         <strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.
48     </div>
49     <div class="dialog alert">
50         If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.
51     </div>
52     <!-- /TMPL_IF -->
53     <!-- TMPL_IF NAME="debarred" -->
54     <div class="dialog alert">
55         <strong>Sorry</strong>, you cannot place holds because your account has been frozen.
56     </div>
57     <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.
58     </div>
59     <!-- /TMPL_IF -->
60     <!-- TMPL_IF NAME="too_much_oweing" -->
61     <div class="dialog alert">
62         Sorry, you cannot place holds because you owe <!-- TMPL_VAR NAME="too_much_oweing" -->.
63     </div>
64     <!-- /TMPL_IF -->
65     <!-- TMPL_IF NAME="too_many_reserves" -->
66         <div class="dialog alert">Sorry, you cannot place more than <!-- TMPL_VAR NAME="too_many_reserves" --> holds.
67         </div>
68         <!-- /TMPL_IF -->
69     <!-- TMPL_IF NAME="already_reserved" -->
70     <div class="dialog alert">
71         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>
72     </div>
73     <!-- /TMPL_IF -->
74     <!-- TMPL_IF NAME="no_items_selected" -->
75     <div class="dialog alert">
76         You must select at least one item.
77     </div>
78     <!-- /TMPL_IF -->
79     <!-- TMPL_IF NAME="no_branch_selected" -->
80     <div class="dialog alert">
81         You must select a library for pickup.
82     </div>
83     <!-- /TMPL_IF -->
84     <!-- TMPL_IF NAME="no_biblionumber" -->
85     <div class="dialog alert">ERROR: No biblionumber received.</div>
86     <!-- /TMPL_IF -->
87     <!-- TMPL_IF NAME="bad_biblionumber" -->
88     <div class="dialog alert">ERROR: No biblio record found for biblionumber <!-- TMPL_VAR NAME="bad_biblionumber" -->.</div>
89     <!-- /TMPL_IF -->
90     <!-- TMPL_IF NAME="none_available" -->
91     <div class="dialog alert">
92         <strong>Sorry</strong>, none of these items can be placed on hold.
93     </div>
94     <!-- /TMPL_IF -->
95 </div>
96 <!-- /TMPL_IF -->
97
98 <!-- TMPL_IF NAME="select_item_types" -->
99     <!-- The first time round you select which bibitems you want -->
100     <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
101         <input type="hidden" name="item_types_selected" value="1" />
102         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
103         <h3>Place a hold on <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a><!-- TMPL_IF NAME="author" -->,  by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></h3>
104
105 <!-- TMPL_IF NAME="OPACItemHolds" --> <!-- TMPL_LOOP name="bibitemloop" --> 
106             <!-- TMPL_UNLESS NAME="item-level_itypes" -->
107             <p><strong>Item type:</strong> <!-- TMPL_VAR NAME="description" --></p>
108             <!-- /TMPL_UNLESS -->
109             <!-- TMPL_IF NAME="publicationyear" --><p><strong>Publication year:</strong> <!-- TMPL_VAR NAME="publicationyear" --></p><!-- /TMPL_IF -->
110 <!-- /TMPL_IF --><!-- /TMPL_LOOP -->
111
112                 <fieldset class="rows holds">
113                         <ol>
114                                 <li><span class="label">For:</span> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)
115             <!-- TMPL_IF NAME="singleBranchMode" -->
116              <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branchcode" -->"/>
117             <!-- /TMPL_IF -->
118             <!-- /TMPL_LOOP --></li>
119             <li><span class="label">Priority:</span><!-- TMPL_VAR Name="rank" DEFAULT="?" --> out of <!-- TMPL_VAR Name="reservecount" DEFAULT="?" -->
120                         </li> 
121             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
122             <li><label for="branch">Pick up from:</label> <select name="branch" id="branch">
123                     <!-- TMPL_LOOP NAME="CGIbranch" -->
124                         <!-- TMPL_IF name="selected" -->
125                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branch" --></option>
126                         <!-- TMPL_ELSE -->
127                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branch" --></option>
128                         <!-- /TMPL_IF -->
129                     <!-- /TMPL_LOOP -->
130             </select>
131             </li>
132             <!-- /TMPL_UNLESS -->
133                         
134                         <!-- TMPL_IF NAME="forloan" -->
135             <!-- TMPL_IF NAME="OPACItemHolds" --><li> <label for="requestany">Place a hold on the next available copy </label>
136             <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
137             </li><!-- TMPL_ELSE --><input type="hidden" name="request" value="Any" /><!-- /TMPL_IF -->
138                         </ol>
139                 </fieldset>
140
141
142 <fieldset class="action">            <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
143                         <!-- TMPL_IF NAME="none_available" -->
144             <input type="submit" disabled="disabled" value="Place Hold" />
145             <!-- TMPL_ELSE -->
146             <input type="submit" value="Place Hold" />
147             <!-- /TMPL_IF -->
148             <input type="hidden" name="all" value="1" />
149             <input type="hidden" name="place_reserve" value="1" /></fieldset>
150                         <!-- /TMPL_IF -->  
151                                   
152        <!-- TMPL_IF NAME="OPACItemHolds" --> <!-- TMPL_LOOP name="bibitemloop" -->    
153
154             <table id="requestspecific">
155                         <caption>Place a hold on a specific copy</caption>
156             <tr>
157                 <th>Hold</th>
158                     <!-- TMPL_IF NAME="item-level_itypes" -->
159                 <th>Item Type</th>
160                 <!-- /TMPL_IF -->
161                 <!-- TMPL_UNLESS NAME="singleBranchMode" -->
162                 <th>Home Library</th>
163                 <th>Last Location</th>
164                 <!-- /TMPL_UNLESS -->
165                 <th>Call Number</th>
166                 <th>Copy Number</th>
167                 <th>Information</th>
168             </tr>
169         <!-- TMPL_LOOP Name="itemloop" -->
170         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
171             <td>
172             <!-- TMPL_IF NAME="available" -->
173             <input type="radio" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
174             <!-- TMPL_ELSE -->
175             <input disabled="disabled" type="radio" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
176             <img src="/intranet-tmpl/<!-- TMPL_VAR NAME="theme" -->/img/famfamfam/silk/cross.png" alt="Cannot be put on hold" />
177             <!-- /TMPL_IF -->
178             </td>
179             <!-- TMPL_IF NAME="item-level_itypes" -->
180             <td>
181             <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" />
182             </td>
183             <!-- /TMPL_IF -->
184             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
185             <td><!-- TMPL_VAR NAME="homebranchname"    --></td>
186             <td><!-- TMPL_VAR NAME="holdingbranchname" --></td>
187             <!-- /TMPL_UNLESS -->
188             <td><!-- TMPL_VAR NAME="itemcallnumber"    --></td>
189             <td><!-- TMPL_IF NAME="copynumber" --><!-- TMPL_VAR NAME="copynumber" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
190             <td>
191         <!-- TMPL_IF Name="date_due" -->
192             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
193         <!-- TMPL_ELSIF Name="transfertwhen" -->
194             <span class="intransit">In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
195             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" --></span>
196         <!-- /TMPL_IF -->
197
198         <!-- TMPL_IF Name="message" -->
199             <span class="lost">Unavailable (lost or missing)</span>
200         <!-- /TMPL_IF -->
201
202         <!-- TMPL_IF Name="notforloan" -->
203             <span class="notforloan">Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)</span>
204         <!-- /TMPL_IF -->
205
206             <!-- TMPL_IF NAME="reservedate"-->
207                     <span class="waiting"><!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron 
208                     <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
209                     since
210                     <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->.</span>
211             <!-- TMPL_ELSE -->
212                     <span class="notonhold">Not on hold</span>
213             <!-- /TMPL_IF -->&nbsp;
214             </td>
215         </tr>
216         <!-- /TMPL_LOOP --> <!-- itemloop -->
217         </table>
218         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
219         <!-- TMPL_IF NAME="none_available" -->
220             <input type="submit" disabled="disabled" value="Place Hold" />
221         <!-- TMPL_ELSE -->
222             <input type="submit" value="Place Hold" />
223         <!-- /TMPL_IF -->
224         </form><!-- /TMPL_IF -->
225     <!-- end of the first form -->
226 <!-- /TMPL_IF -->
227
228 <!-- TMPL_IF NAME="item_types_selected" -->
229 <!-- if the bibitems have already been selected -->
230 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
231 <input type="hidden" name="place_reserve" value="1" />
232 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><h3>Confirm Reservation</h3>
233 <div class="details">
234     <table>
235         <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" escape="html" --></span></td></tr>
236
237         <!-- TMPL_IF NAME="singleBranchMode" -->
238         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
239         <!-- TMPL_ELSE -->
240         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" /></td></tr>
241         <!-- /TMPL_IF -->
242 </table>
243 </div>
244 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();" /></p>
245
246 </form>
247
248 <!-- /TMPL_IF -->
249 </div></div>
250 </div>
251 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->