Bug 11497: remove TT construct for picking a default string that i18n toolchain fails...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-reserve.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Placing a hold
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 <script type="text/javascript">
8 // <![CDATA[
9  var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
10  var ForceHoldNotesReasons=new Array(
11     _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific item information may be helpful."),
12     "*** Add a new reason above this line ***" ); // NOTE: Do not renumber reasons; this will affect use of existing ones.
13
14  function prefixOf (s, tok) {
15      var index = s.indexOf(tok);
16      return s.substring(0, index);
17  }
18  function suffixOf (s, tok) {
19      var index = s.indexOf(tok);
20      return s.substring(index + 1);
21  }
22
23  $(document).ready(function() {
24     $('#hold-request-form').preventDoubleFormSubmit();
25
26     var copiesRowId = null;
27     var wasSpecific = false;
28     var lastCopiesRowId = null;
29         $(".checkitem").parent().click(function(e){
30                 if(e.target.tagName.toLowerCase() == 'td'){
31            $(this).find("input.checkitem").each( function() {
32                $(this).attr('checked', !$(this).attr('checked'));
33                         });
34                 }
35         });
36     // Hides all 'specific copy' table rows on load.
37     $(".copiesrow").hide();
38
39     // Insert reasons for forced hold notes
40     $(".forcenotesreason").each(function(){
41         biblioNum = suffixOf($(this).attr("id"), "_");
42         var j=$("#notesmandatory_"+biblioNum).val();
43         if(j>0) {
44             $(this).html(ForceHoldNotesReasons[j-1]);
45         }
46     });
47
48     $("#place_on_hdr,.place_on_type,.toggle-hold-options").show();
49     $(".hold-options").hide();
50     $(".holddatefrom,.holddateto").prop("readOnly", true);
51
52     $(".date-format").each(function(){
53         if($(this).hasClass("to")){ var op = "to"; }
54         if($(this).hasClass("from")){ var op = "from"; }
55         var bibNum = $(this).data("biblionumber");
56         $(this).html("<a href=\"#\" class=\"clear-date\" data-op=\"" + op + "\" id=\"clear" + bibNum + "\">" + _("Clear date") + "</a>");
57     });
58
59     $(".clear-date").on("click",function(e){
60         e.preventDefault();
61         var fieldID = this.id.replace("clear","");
62         var op = $(this).data("op");
63         $("#" + op + fieldID).val("");
64     });
65
66     // Replace non-JS single-selection with multi-selection capability.
67     $(".reserve_mode").val("multi");
68     $(".confirm_nonjs").remove();
69     $(".confirmjs_hold").each(function(){
70         var bib = $(this).attr("title");
71         var html = "<label><input type =\"checkbox\" class=\"confirmjs\" checked=\"checked\"";
72         html += "value=\"" + bib + "\"/> " + _("Place a hold on") + " </label> ";
73         $(this).html(html);
74     });
75     $(".confirmjs_nohold").each(function(){
76         var bib = $(this).attr("title");
77         var html = "<label><input type =\"checkbox\" class=\"confirmjs\" disabled=\"disabled\"";
78         html += "value=\"" + bib + "\"/>" + _("Place a hold on: ") + "</label>";
79         $(this).html(html);
80     });
81
82     // Make sure a specific item was selected where specified
83     // before moving on to a new item.
84     function changeSelection (newCopiesRowId, isSpecific) {
85         if (copiesRowId && ((copiesRowId != newCopiesRowId) || (wasSpecific != isSpecific))) {
86             var biblioNum = suffixOf(copiesRowId, "_");
87
88             // If the 'specific copy' radio button was checked
89               if (wasSpecific && (copiesRowId != newCopiesRowId)) {
90                 // Find the selected copy
91                 var item = $(".checkitem_" + biblioNum + ":checked");
92                 if ($(item).size() == 0) {
93                     alert(MSG_NO_ITEM_SELECTED);
94                     return false;
95                 }
96             }
97         }
98         copiesRowId = newCopiesRowId;
99         wasSpecific = isSpecific;
100         return true;
101     }
102
103     // When 'specific copy' radio button is clicked
104     $(".selectspecific").click(function() {
105
106         // Make sure all other specific copy table rows are hidden
107         biblioNum = suffixOf($(this).attr("id"), "_");
108         newCopiesRowId = "#copiesrow_" + biblioNum;
109
110         if (!changeSelection(newCopiesRowId, true)) {
111             return false;
112         }
113
114         // Show the specific copy table for this radio button.
115         $(newCopiesRowId).show();
116     });
117
118
119     // When 'first available' radion button is clicked
120     $(".selectany").click(function() {
121         // Make sure all other specific copy table rows are hidden
122         biblioNum = suffixOf($(this).attr("id"), "_");
123         newCopiesRowId = "#copiesrow_" + biblioNum;
124
125         if (!changeSelection(newCopiesRowId, false)) {
126             return false;
127         }
128
129         // Hide the copies table row
130         $(newCopiesRowId).hide();
131     });
132
133     // When 'Place Hold' button is clicked
134     $(".placehold").click(function(){
135         var biblionumbers = "";
136         var selections = "";
137
138         if ($(".confirmjs:checked").size() == 0) {
139             alert(MSG_NO_RECORD_SELECTED);
140             return false;
141         }
142
143         // Find the items with the 'Hold' box checked
144         var badBib = null;
145         $(".confirmjs:checked").each(function() {
146             var biblioNum = $(this).val();
147             biblionumbers += biblioNum + "/";
148             selections += biblioNum + "/";
149
150             // If the 'specific copy' radio button is checked
151             if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) {
152                 // Find the selected copy
153                 var item = $(".checkitem_" + biblioNum + ":checked");
154                 if ($(item).size() == 0) {
155                     badBib = biblioNum;
156                     return false;
157                 } else {
158                   selections += $(item).val();
159                 }
160             }
161             selections += "/";
162
163             // Add the pickup location
164             var branchSel = $("#branch_" + biblioNum);
165             if (branchSel.size() > 0) {
166                 selections += $(branchSel).val();
167             }
168             selections += "/";
169             return true;
170         });
171
172         if (badBib) {
173             alert(MSG_NO_ITEM_SELECTED);
174             return false;
175         }
176
177         $("#selections").val(selections);
178         $("#biblionumbers").val(biblionumbers);
179
180         return true;
181     });
182     $(".toggle-hold-options").on("click",function(e){
183         e.preventDefault();
184         toggleLink = $(this);
185         var optionsID = this.id.replace("toggle-hold-options-","");
186         $("#hold-options-"+optionsID).toggle(0, function() {
187             toggleLink.text($(this).is(':visible') ? _("Hide options") : _("Show more options"));
188         });
189     });
190
191
192
193
194
195 [% FOREACH bibitemloo IN bibitemloop %]
196     [% IF ( bibitemloo.holdable ) %]
197         // http://jqueryui.com/demos/datepicker/#date-range
198         var dates[% bibitemloo.biblionumber %] = $( "#from[% bibitemloo.biblionumber %], #to[% bibitemloo.biblionumber %]" ).datepicker({
199             minDate: 1,
200             changeMonth: true,
201             numberOfMonths: 1,
202             onSelect: function( selectedDate ) {
203                 var option = this.id == "from[% bibitemloo.biblionumber %]" ? "minDate" : "maxDate",
204                     instance = $( this ).data( "datepicker" );
205                     date = $.datepicker.parseDate(
206                         instance.settings.dateFormat ||
207                         $.datepicker._defaults.dateFormat,
208                         selectedDate, instance.settings );
209                 dates[% bibitemloo.biblionumber %].not( this ).datepicker( "option", option, date );
210             }
211         });
212     [% END %]
213 [% END %]
214
215  });
216 // ]]>
217 </script>
218 <style type="text/css">td ul { padding : 0; } td li { white-space: nowrap; font-size: 90%; list-style-type:none; padding : .3em 0; }</style>
219 </head>
220
221 <body id="opac-holds">
222   <div id="doc3" class="yui-t7">
223     <div id="bd">
224     [% INCLUDE 'masthead.inc' %]
225           <div id="yui-g">
226         <div id="holds" class="container">
227         [% IF ( message ) %]
228             [% IF ( GNA ) %]
229               <div id="gna" class="dialog alert">
230                 <p><strong>Sorry</strong>, you cannot place holds because the library doesn't have up-to-date <a href="/cgi-bin/koha/opac-memberentry.pl">contact information</a> on file.</p>
231               <p>Please contact your librarian, or use the <a href="/cgi-bin/koha/opac-memberentry.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)</p>
232               </div>
233             [% END %]
234             [% IF ( lost ) %]
235               <div id="lost" class="dialog alert">
236                 <p><strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.</p>
237                 <p>If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.</p>
238               </div>
239             [% END %]
240             [% IF ( debarred ) %]
241               <div id="debarred" class="dialog alert">
242                 <p><strong>Sorry</strong>, you cannot place holds because your account has been frozen.</p>
243                 <p>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.</p>
244               </div>
245             [% END %]
246             [% IF ( too_much_oweing ) %]
247               <div id="too_much_oweing" class="dialog alert">
248                 Sorry, you cannot place holds because you owe [% too_much_oweing %].
249               </div>
250             [% END %]
251             [% IF ( too_many_reserves ) %]
252               <div id="too_many_reserves" class="dialog alert">Sorry, you cannot place more than [% too_many_reserves %] holds.
253               </div>
254             [% END %]
255             [% IF ( bad_biblionumber ) %]
256               <div id="bad_biblionumber" class="dialog alert">ERROR: No biblio record found for biblionumber [% bad_biblionumber %].</div>
257             [% END %]
258             [% IF ( no_items_selected ) %]
259               <div id="no_items_selected" class="dialog alert">
260                 You must select at least one item.
261               </div>
262             [% END %]
263             [% IF ( no_branch_selected ) %]
264               <div id="no_branch_selected" class="dialog alert">
265                 You must select a library for pickup.
266               </div>
267             [% END %]
268             [% IF ( no_biblionumber ) %]
269               <div id="no_biblionumber" class="dialog alert">ERROR: No biblionumber received.</div>
270             [% END %]
271             [% IF ( bad_data ) %]
272               <div id="bad_data" class="dialog alert">ERROR: Internal error: incomplete hold request.</div>
273             [% END %]
274           [% ELSE %]
275             [% IF ( none_available ) %]
276                 <div id="none_available" class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold.
277                 </div>
278               [% END %]
279           [% END %]<!-- NAME="message" -->
280
281       [% UNLESS ( message ) %][% UNLESS ( none_available ) %]<h3>Confirm holds for:
282                       [% FOREACH USER_INF IN USER_INFO %]
283                         [% USER_INF.firstname %] [% USER_INF.surname %] ([% USER_INF.cardnumber %])
284                       [% END %]
285                     </h3>[% END %]
286               [% IF (RESERVE_CHARGE) %]
287               <div class="dialog alert" id="reserve_fee">
288                 There is a charge of [% RESERVE_CHARGE %] for placing this hold
289               </div>
290               [% END %]
291
292             <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
293             <input type="hidden" name="place_reserve" value="1"/>
294
295             <!-- These values are set dynamically by js -->
296             <input type="hidden" name="biblionumbers" id="biblionumbers"/>
297             <input type="hidden" name="selecteditems" id="selections"/>
298             <div id="bigloop">
299
300                 [% FOREACH bibitemloo IN bibitemloop %]
301                     <div class="holdrow">
302
303                         <p>
304
305                         [% IF ( bibitemloo.holdable ) %]
306                           <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
307                           <input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber %]"/>
308                             <span class="confirmjs_hold" title="[% bibitemloo.biblionumber %]" style="padding:.3em"></span>
309                             <span class="confirm_nonjs">
310                               <input type="radio" class="confirmbox checkitem [% bibitemloo.biblionumber %]"
311                                      name="[% bibitemloo.biblionumber %]" checked="checked"
312                                      id="single_[% bibitemloo.biblionumber %]"
313                                      value="any" />
314                               <label class="confirm_label" for="single_[% bibitemloo.biblionumber %]">Place a hold on </label>
315                             </span>
316                         [% ELSE %]
317                         [% END %]
318
319                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber %]">[% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %]</a>
320                                             [% IF ( bibitemloo.author ) %],  by [% bibitemloo.author %][% END %]</p>
321
322
323
324
325                         [% UNLESS ( bibitemloo.holdable ) %]
326                             [% IF ( bibitemloo.already_reserved ) %]
327                                 <div class="bibmessage">You have already requested this title.</div>
328                             [% ELSE %]
329                                 [% UNLESS ( bibitemloo.bib_available ) %]
330                                     <div class="bibmessage">No available items.</div>
331                                 [% ELSE %]
332                                     [% IF ( bibitemloo.already_patron_possession ) %]
333                                         <div class="bibmessage">This title cannot be requested because it's already in your possession.</div>
334                                     [% ELSE %]
335                                         <div class="bibmessage">This title cannot be requested.</div>
336                                     [% END %]
337                                 [% END %]
338                             [% END %]
339                         [% END %]
340
341                         [% IF ( bibitemloo.holdable ) %]
342                             <fieldset class="rows">
343                             <ul>
344                             <!-- HOLDABLE -->
345                             [% UNLESS ( item_level_itypes ) %]
346                                 <li class="itype">
347                                     <span class="label">Item type: </span>
348                                     [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %]
349                                     [% bibitemloo.description %]
350                                 </li>
351                             [% END %]
352                             [% IF showholds || showpriority %]
353                                 <li class="priority">
354                                     <span class="label">Holds and priority: </span>
355                                     [% IF showpriority %] [% bibitemloo.rank %] [% END %]
356                                     [% IF showholds && showpriority %] out of [% END %]
357                                     [% IF showholds %] [% bibitemloo.reservecount %] [% END %]
358                                 </li>
359                             [% END %]
360
361
362
363                             [% UNLESS ( singleBranchMode ) %]
364                                 [% IF ( bibitemloo.holdable ) %]
365                                     [% IF ( choose_branch ) %]
366                                         <li class="branch">
367                                             <label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label>
368                                             [% UNLESS ( bibitemloo.holdable ) %]
369                                                 <select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled">
370                                                     [% FOREACH branchloo IN bibitemloo.branchloop %]
371                                                         [% IF ( branchloo.selected ) %]
372                                                             <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
373                                                         [% ELSE %]
374                                                             <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
375                                                         [% END %]
376                                                     [% END %]
377                                                 </select>
378                                             [% ELSE %]
379                                                 <select name="branch" id="branch_[% bibitemloo.biblionumber %]">
380                                                     [% FOREACH branchloo IN bibitemloo.branchloop %]
381                                                         [% IF ( branchloo.selected ) %]
382                                                             <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
383                                                         [% ELSE %]
384                                                             <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
385                                                         [% END %]
386                                                     [% END %]
387                                                 </select>
388                                             [% END %]
389                                         </li>
390                                     [% END %]
391                                 [% END %]
392                             [% END %]
393                         </ul>
394                         <a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber %]" style="display:none;" href="#">Show more options</a>
395                         <div id="hold-options-[% bibitemloo.biblionumber %]" class="hold-options">
396                         <ul>
397                             [% IF ( reserve_in_future ) %]
398                                 <li><label for="from[% bibitemloo.biblionumber %]">Hold starts on date:</label>
399                                     <input name="reserve_date_[% bibitemloo.biblionumber %]" id="from[% bibitemloo.biblionumber %]" size="10" class="holddatefrom"/>
400                                     <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber %]">[% INCLUDE 'date-format.inc' %]</span>
401                                 </li>
402                             [% END %]
403
404                         [% END %]
405                         [% IF ( bibitemloo.holdable ) %]
406                             <li>
407                                 <label for="to[% bibitemloo.biblionumber %]">Hold not needed after:</label>
408                                     <input name="expiration_date_[% bibitemloo.biblionumber %]" id="to[% bibitemloo.biblionumber %]" size="10" class="holddateto" />
409                                     <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber %]">[% INCLUDE 'date-format.inc' %]</span>
410                             </li>
411                         [% END %]
412
413                         [% IF ( OpacHoldNotes && bibitemloo.holdable ) %]
414                             <li>
415                                 <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]">
416                                   <label for="holdnotes[% bibitemloo.biblionumber %]">Hold notes:</label>
417                                   <span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span>
418                                   <textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea>
419                                   <input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/>
420                                 </div>
421                             </li>
422                         [% END %]
423
424                         [% IF ( bibitemloo.holdable ) %]
425                             <!-- HOLD ABLE -->
426                             [% IF ( OPACItemHolds ) %]
427                             <!-- ITEM HOLDS -->
428
429                                 <li class="radio">
430                                   [% UNLESS ( bibitemloo.holdable ) %]
431                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
432                                            id="reqany_[% bibitemloo.biblionumber %]"
433                                            class="selectany"
434                                            value="Any"
435                                            disabled="disabled"
436                                     />
437                                   [% ELSE %]
438                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
439                                            id="reqany_[% bibitemloo.biblionumber %]"
440                                            class="selectany"
441                                            value="Any"
442                                            checked="checked"
443                                     />
444                                   [% END %]
445
446                                   <label for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
447                                   [% UNLESS ( bibitemloo.holdable ) %]
448                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
449                                            id="reqspecific_[% bibitemloo.biblionumber %]"
450                                            class="selectspecific"
451                                            disabled="disabled"
452                                            value="Specific"
453                                     />
454                                   [% ELSE %]
455                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
456                                            id="reqspecific_[% bibitemloo.biblionumber %]"
457                                            class="selectspecific"
458                                            value="Specific"
459                                     />
460                                   [% END %]
461                                   <label for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
462                                 </li>
463
464                             [% END %]
465                 </ul>
466                         [% END %]
467                   [% IF ( OPACItemHolds ) %]
468                   [% IF ( bibitemloo.holdable ) %]
469
470                         <table class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]">
471                           <caption>Select a specific item:</caption>
472                           <tr>
473                             <th>Copy number</th>
474                             [% IF ( item_level_itypes ) %]
475                               <th>Item type</th>
476                             [% END %]
477                             <th>Barcode</th>
478                             [% UNLESS ( singleBranchMode ) %]
479                               <th>Home library</th>
480                               <th>Last location</th>
481                             [% END %]
482                             <th>Call number</th>
483                             [% IF ( itemdata_enumchron ) %]
484                               <th>Vol info</th>
485                             [% END %]
486                             <th>Information</th>
487                           </tr>
488
489                           [% FOREACH itemLoo IN bibitemloo.itemLoop %]
490                             <tr class="[% itemLoo.backgroundcolor %]">
491                               <td class="copynumber">
492                                 [% IF ( itemLoo.available ) %]
493                                   <input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber %]" name="checkitem_[% bibitemloo.biblionumber %]"
494                                          value="[% itemLoo.itemnumber %]" />
495                                 [% ELSE %]
496                                   <input disabled="disabled" type="radio" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber %]" />
497                                   <img src="/opac-tmpl/lib/famfamfam/silk/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" />
498                                 [% END %] [% IF ( itemLoo.copynumber ) %][% itemLoo.copynumber %][% END %]
499                               </td>
500                               [% IF ( item_level_itypes ) %]
501                                 <td class="itype">
502                                   [% UNLESS ( noItemTypeImages ) %]
503                                   [% IF ( itemLoo.imageurl ) %]<img src="[% itemLoo.imageurl %]" alt="" />[% END %]
504                                   [% END %]
505                                                                 [% itemLoo.description %]
506                                 </td>
507                               [% END %]
508                               <td class="barcode">[% itemLoo.barcode %]</td>
509                               [% UNLESS ( singleBranchMode ) %]
510                                 <td class="homebranch">[% itemLoo.homeBranchName %]</td>
511                                 <td class="holdingbranch">[% itemLoo.holdingBranchName %]</td>
512                               [% END %]
513                               <td class="call_no">[% itemLoo.callNumber %]</td>
514                               [% IF ( itemdata_enumchron ) %]
515                                 <td class="vol_info">[% itemLoo.enumchron %]</td>
516                               [% END %]
517                               <td class="information">
518                                 [% IF ( itemLoo.dateDue ) %]
519                                   <span class="checkedout">Due [% itemLoo.dateDue %]</span>
520                                 [% ELSIF ( itemLoo.transfertwhen ) %]
521                                   <span class="intransit">In transit from [% itemLoo.transfertfrom %],
522                                     to [% itemLoo.transfertto %], since [% itemLoo.transfertwhen %]</span>
523                                 [% END %]
524                                 [% IF ( itemLoo.message ) %]
525                                   <span class="lost">Unavailable (lost or missing)</span>
526                                 [% END %]
527                                 [% IF ( itemLoo.notforloan ) %]
528                                   <span class="notforloan">Not for loan ([% itemLoo.notforloanvalue %])</span>
529                                 [% END %]
530                                 [% IF ( itemLoo.reservedate ) %]
531                                   <span class="waiting">[% IF ( itemLoo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %] for patron
532                                     [% IF ( itemLoo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% itemLoo.ExpectedAtLibrary %]
533                                     since
534                                     [% IF ( itemLoo.waitingdate ) %][% itemLoo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemLoo.reservedate ) %][% itemLoo.reservedate %][% END %][% END %].
535                                   </span>
536                                 [% ELSE %]
537                                   <span class="notonhold">Not on hold</span>
538                                 [% END %]&nbsp;
539                               </td>
540                             </tr>
541                           [% END %]
542                         </table>
543                     </div>
544
545                 </fieldset>
546                   [% END %]<!-- OPACItemHolds -->
547
548                   [% END %]<!-- bib_available -->
549
550             </div>
551                 [% END %]
552
553               [% END %] <!-- if message -->
554             </div><!-- bigloop -->
555
556             [% UNLESS ( message ) %]
557             [% UNLESS ( none_available ) %]
558             <input type="submit" value="Place hold" class="placehold" />
559             [% END %]
560             [% END %]
561
562             </form>
563
564         </div><!-- holds -->
565       </div><!-- yui-g -->
566     </div><!-- bd    -->
567   </div><!-- doc3  -->
568
569 <div><!-- The following include seems to have an extra "/div" in it... -->
570 [% INCLUDE 'opac-bottom.inc' %]