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