Add holds policies
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-reserve.tmpl
blob510313cb8344089916c636eadbae549186192651
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" -->
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 -->
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>
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 -->
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>
142 <fieldset class="action">            <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
144             <!-- TMPL_IF NAME="none_available" -->
145             <input type="submit" disabled="disabled" value="Place Hold" />
146             <!-- TMPL_ELSE -->
147             <input type="submit" value="Place Hold" />
148             <!-- /TMPL_IF -->
149             <input type="hidden" name="all" value="1" />
150             <input type="hidden" name="place_reserve" value="1" /></fieldset>
151                         <!-- /TMPL_IF -->  
152                                   
153        <!-- TMPL_IF NAME="OPACItemHolds" --> <!-- TMPL_LOOP name="bibitemloop" -->    
155             <table id="requestspecific">
156                         <caption>Place a hold on a specific copy</caption>
157             <tr>
158                 <th>Hold</th>
159                     <!-- TMPL_IF NAME="item-level_itypes" -->
160                 <th>Item Type</th>
161                 <!-- /TMPL_IF -->
162                 <th>Barcode</th>
163                 <!-- TMPL_UNLESS NAME="singleBranchMode" -->
164                 <th>Home Library</th>
165                 <th>Last Location</th>
166                 <!-- /TMPL_UNLESS -->
167                 <th>Call Number</th>
168                 <th>Information</th>
169             </tr>
170         <!-- TMPL_LOOP Name="itemloop" -->
171         <tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
172             <td>
173             <!-- TMPL_IF NAME="available" -->
174             <input type="radio" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
175             <!-- TMPL_ELSE -->
176             <input disabled="disabled" type="radio" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
177             <img src="/intranet-tmpl/<!-- TMPL_VAR NAME="theme" -->/img/famfamfam/silk/cross.png" alt="Cannot be put on hold" />
178             <!-- /TMPL_IF -->
179             </td>
180             <!-- TMPL_IF NAME="item-level_itypes" -->
181             <td>
182             <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" />
183             </td>
184             <!-- /TMPL_IF -->
185             <td><!-- TMPL_VAR NAME="barcode"           --></td>
186             <!-- TMPL_UNLESS NAME="singleBranchMode" -->
187             <td><!-- TMPL_VAR NAME="homebranchname"    --></td>
188             <td><!-- TMPL_VAR NAME="holdingbranchname" --></td>
189             <!-- /TMPL_UNLESS -->
190             <td><!-- TMPL_VAR NAME="itemcallnumber"    --></td>
191             <td>
192         <!-- TMPL_IF Name="date_due" -->
193             <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
194         <!-- TMPL_ELSIF Name="transfertwhen" -->
195             <span class="intransit">In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
196             to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" --></span>
197         <!-- /TMPL_IF -->
199         <!-- TMPL_IF Name="message" -->
200             <span class="lost">Unavailable (lost or missing)</span>
201         <!-- /TMPL_IF -->
203         <!-- TMPL_IF Name="notforloan" -->
204             <span class="notforloan">Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)</span>
205         <!-- /TMPL_IF -->
207             <!-- TMPL_IF NAME="reservedate"-->
208                     <span class="waiting"><!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron 
209                     <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
210                     since
211                     <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->.</span>
212             <!-- TMPL_ELSE -->
213                     <span class="notonhold">Not on hold</span>
214             <!-- /TMPL_IF -->&nbsp;
215             </td>
216         </tr>
217         <!-- /TMPL_LOOP --> <!-- itemloop -->
218         </table>
219         <!-- /TMPL_LOOP --> <!-- bibitemloop -->
220             <!-- TMPL_IF NAME="none_available" -->
221             <input type="submit" disabled="disabled" value="Place Hold" />
222             <!-- TMPL_ELSE -->
223             <input type="submit" value="Place Hold" />
224             <!-- /TMPL_IF -->
225         </form><!-- /TMPL_IF -->
226     <!-- end of the first form -->
227 <!-- /TMPL_IF -->
229 <!-- TMPL_IF NAME="item_types_selected" -->
230 <!-- if the bibitems have already been selected -->
231 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
232 <input type="hidden" name="place_reserve" value="1" />
233 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><h3>Confirm Reservation</h3>
234 <div class="details">
235     <table>
236         <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" escape="html" --></span></td></tr>
238         <!-- TMPL_IF NAME="singleBranchMode" -->
239         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
240         <!-- TMPL_ELSE -->
241         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" /></td></tr>
242         <!-- /TMPL_IF -->
243 </table>
244 </div>
245 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();" /></p>
247 </form>
249 <!-- /TMPL_IF -->
250 </div></div>
251 </div>
252 <!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->