Bug 6739: make it possible to block expired patrons from OPAC actions
[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             [% IF ( expired_patron ) %]
275                 <div id="expired_patron" class="dialog alert"><p><strong>Sorry</strong>, you cannot place holds because your library card has expired.<p><p>Please contact your librarian if you wish to renew your card</p></div>
276             [% END %]
277           [% ELSE %]
278             [% IF ( none_available ) %]
279                 <div id="none_available" class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold.
280                 </div>
281               [% END %]
282           [% END %]<!-- NAME="message" -->
283
284       [% UNLESS ( message ) %][% UNLESS ( none_available ) %]<h3>Confirm holds for:
285                       [% FOREACH USER_INF IN USER_INFO %]
286                         [% USER_INF.firstname %] [% USER_INF.surname %] ([% USER_INF.cardnumber %])
287                       [% END %]
288                     </h3>[% END %]
289               [% IF (RESERVE_CHARGE) %]
290               <div class="dialog alert" id="reserve_fee">
291                 There is a charge of [% RESERVE_CHARGE %] for placing this hold
292               </div>
293               [% END %]
294
295             <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
296             <input type="hidden" name="place_reserve" value="1"/>
297
298             <!-- These values are set dynamically by js -->
299             <input type="hidden" name="biblionumbers" id="biblionumbers"/>
300             <input type="hidden" name="selecteditems" id="selections"/>
301             <div id="bigloop">
302
303                 [% FOREACH bibitemloo IN bibitemloop %]
304                     <div class="holdrow">
305
306                         <p>
307
308                         [% IF ( bibitemloo.holdable ) %]
309                           <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
310                           <input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber %]"/>
311                             <span class="confirmjs_hold" title="[% bibitemloo.biblionumber %]" style="padding:.3em"></span>
312                             <span class="confirm_nonjs">
313                               <input type="radio" class="confirmbox checkitem [% bibitemloo.biblionumber %]"
314                                      name="[% bibitemloo.biblionumber %]" checked="checked"
315                                      id="single_[% bibitemloo.biblionumber %]"
316                                      value="any" />
317                               <label class="confirm_label" for="single_[% bibitemloo.biblionumber %]">Place a hold on </label>
318                             </span>
319                         [% ELSE %]
320                         [% END %]
321
322                             <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>
323                                             [% IF ( bibitemloo.author ) %],  by [% bibitemloo.author %][% END %]</p>
324
325
326
327
328                         [% UNLESS ( bibitemloo.holdable ) %]
329                             [% IF ( bibitemloo.already_reserved ) %]
330                                 <div class="bibmessage">You have already requested this title.</div>
331                             [% ELSE %]
332                                 [% UNLESS ( bibitemloo.bib_available ) %]
333                                     <div class="bibmessage">No available items.</div>
334                                 [% ELSE %]
335                                     [% IF ( bibitemloo.already_patron_possession ) %]
336                                         <div class="bibmessage">This title cannot be requested because it's already in your possession.</div>
337                                     [% ELSE %]
338                                         <div class="bibmessage">This title cannot be requested.</div>
339                                     [% END %]
340                                 [% END %]
341                             [% END %]
342                         [% END %]
343
344                         [% IF ( bibitemloo.holdable ) %]
345                             <fieldset class="rows">
346                             <ul>
347                             <!-- HOLDABLE -->
348                             [% UNLESS ( item_level_itypes ) %]
349                                 <li class="itype">
350                                     <span class="label">Item type: </span>
351                                     [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %]
352                                     [% bibitemloo.description %]
353                                 </li>
354                             [% END %]
355                             [% IF showholds || showpriority %]
356                                 <li class="priority">
357                                     <span class="label">Holds and priority: </span>
358                                     [% IF showpriority %] [% bibitemloo.rank %] [% END %]
359                                     [% IF showholds && showpriority %] out of [% END %]
360                                     [% IF showholds %] [% bibitemloo.reservecount %] [% END %]
361                                 </li>
362                             [% END %]
363
364
365
366                             [% UNLESS ( singleBranchMode ) %]
367                                 [% IF ( bibitemloo.holdable ) %]
368                                     [% IF ( choose_branch ) %]
369                                         <li class="branch">
370                                             <label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label>
371                                             [% UNLESS ( bibitemloo.holdable ) %]
372                                                 <select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled">
373                                                     [% FOREACH branchloo IN bibitemloo.branchloop %]
374                                                         [% IF ( branchloo.selected ) %]
375                                                             <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
376                                                         [% ELSE %]
377                                                             <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
378                                                         [% END %]
379                                                     [% END %]
380                                                 </select>
381                                             [% ELSE %]
382                                                 <select name="branch" id="branch_[% bibitemloo.biblionumber %]">
383                                                     [% FOREACH branchloo IN bibitemloo.branchloop %]
384                                                         [% IF ( branchloo.selected ) %]
385                                                             <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
386                                                         [% ELSE %]
387                                                             <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
388                                                         [% END %]
389                                                     [% END %]
390                                                 </select>
391                                             [% END %]
392                                         </li>
393                                     [% END %]
394                                 [% END %]
395                             [% END %]
396                         </ul>
397                         <a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber %]" style="display:none;" href="#">Show more options</a>
398                         <div id="hold-options-[% bibitemloo.biblionumber %]" class="hold-options">
399                         <ul>
400                             [% IF ( reserve_in_future ) %]
401                                 <li><label for="from[% bibitemloo.biblionumber %]">Hold starts on date:</label>
402                                     <input name="reserve_date_[% bibitemloo.biblionumber %]" id="from[% bibitemloo.biblionumber %]" size="10" class="holddatefrom"/>
403                                     <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber %]">[% INCLUDE 'date-format.inc' %]</span>
404                                 </li>
405                             [% END %]
406
407                         [% END %]
408                         [% IF ( bibitemloo.holdable ) %]
409                             <li>
410                                 <label for="to[% bibitemloo.biblionumber %]">Hold not needed after:</label>
411                                     <input name="expiration_date_[% bibitemloo.biblionumber %]" id="to[% bibitemloo.biblionumber %]" size="10" class="holddateto" />
412                                     <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber %]">[% INCLUDE 'date-format.inc' %]</span>
413                             </li>
414                         [% END %]
415
416                         [% IF ( OpacHoldNotes && bibitemloo.holdable ) %]
417                             <li>
418                                 <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]">
419                                   <label for="holdnotes[% bibitemloo.biblionumber %]">Hold notes:</label>
420                                   <span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span>
421                                   <textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea>
422                                   <input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/>
423                                 </div>
424                             </li>
425                         [% END %]
426
427                         [% IF ( bibitemloo.holdable ) %]
428                             <!-- HOLD ABLE -->
429                             [% IF ( OPACItemHolds ) %]
430                             <!-- ITEM HOLDS -->
431
432                                 <li class="radio">
433                                   [% UNLESS ( bibitemloo.holdable ) %]
434                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
435                                            id="reqany_[% bibitemloo.biblionumber %]"
436                                            class="selectany"
437                                            value="Any"
438                                            disabled="disabled"
439                                     />
440                                   [% ELSE %]
441                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
442                                            id="reqany_[% bibitemloo.biblionumber %]"
443                                            class="selectany"
444                                            value="Any"
445                                            checked="checked"
446                                     />
447                                   [% END %]
448
449                                   <label for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
450                                   [% UNLESS ( bibitemloo.holdable ) %]
451                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
452                                            id="reqspecific_[% bibitemloo.biblionumber %]"
453                                            class="selectspecific"
454                                            disabled="disabled"
455                                            value="Specific"
456                                     />
457                                   [% ELSE %]
458                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
459                                            id="reqspecific_[% bibitemloo.biblionumber %]"
460                                            class="selectspecific"
461                                            value="Specific"
462                                     />
463                                   [% END %]
464                                   <label for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
465                                 </li>
466
467                             [% END %]
468                 </ul>
469                         [% END %]
470                   [% IF ( OPACItemHolds ) %]
471                   [% IF ( bibitemloo.holdable ) %]
472
473                         <table class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]">
474                           <caption>Select a specific item:</caption>
475                           <tr>
476                             <th>Copy number</th>
477                             [% IF ( item_level_itypes ) %]
478                               <th>Item type</th>
479                             [% END %]
480                             <th>Barcode</th>
481                             [% UNLESS ( singleBranchMode ) %]
482                               <th>Home library</th>
483                               <th>Last location</th>
484                             [% END %]
485                             <th>Call number</th>
486                             [% IF ( itemdata_enumchron ) %]
487                               <th>Vol info</th>
488                             [% END %]
489                             <th>Information</th>
490                           </tr>
491
492                           [% FOREACH itemLoo IN bibitemloo.itemLoop %]
493                             <tr class="[% itemLoo.backgroundcolor %]">
494                               <td class="copynumber">
495                                 [% IF ( itemLoo.available ) %]
496                                   <input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber %]" name="checkitem_[% bibitemloo.biblionumber %]"
497                                          value="[% itemLoo.itemnumber %]" />
498                                 [% ELSE %]
499                                   <input disabled="disabled" type="radio" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber %]" />
500                                   <img src="/opac-tmpl/lib/famfamfam/silk/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" />
501                                 [% END %] [% IF ( itemLoo.copynumber ) %][% itemLoo.copynumber %][% END %]
502                               </td>
503                               [% IF ( item_level_itypes ) %]
504                                 <td class="itype">
505                                   [% UNLESS ( noItemTypeImages ) %]
506                                   [% IF ( itemLoo.imageurl ) %]<img src="[% itemLoo.imageurl %]" alt="" />[% END %]
507                                   [% END %]
508                                                                 [% itemLoo.description %]
509                                 </td>
510                               [% END %]
511                               <td class="barcode">[% itemLoo.barcode %]</td>
512                               [% UNLESS ( singleBranchMode ) %]
513                                 <td class="homebranch">[% itemLoo.homeBranchName %]</td>
514                                 <td class="holdingbranch">[% itemLoo.holdingBranchName %]</td>
515                               [% END %]
516                               <td class="call_no">[% itemLoo.callNumber %]</td>
517                               [% IF ( itemdata_enumchron ) %]
518                                 <td class="vol_info">[% itemLoo.enumchron %]</td>
519                               [% END %]
520                               <td class="information">
521                                 [% IF ( itemLoo.dateDue ) %]
522                                   <span class="checkedout">Due [% itemLoo.dateDue %]</span>
523                                 [% ELSIF ( itemLoo.transfertwhen ) %]
524                                   <span class="intransit">In transit from [% itemLoo.transfertfrom %],
525                                     to [% itemLoo.transfertto %], since [% itemLoo.transfertwhen %]</span>
526                                 [% END %]
527                                 [% IF ( itemLoo.message ) %]
528                                   <span class="lost">Unavailable (lost or missing)</span>
529                                 [% END %]
530                                 [% IF ( itemLoo.notforloan ) %]
531                                   <span class="notforloan">Not for loan ([% itemLoo.notforloanvalue %])</span>
532                                 [% END %]
533                                 [% IF ( itemLoo.reservedate ) %]
534                                   <span class="waiting">[% IF ( itemLoo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %] for patron
535                                     [% IF ( itemLoo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% itemLoo.ExpectedAtLibrary %]
536                                     since
537                                     [% IF ( itemLoo.waitingdate ) %][% itemLoo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemLoo.reservedate ) %][% itemLoo.reservedate %][% END %][% END %].
538                                   </span>
539                                 [% ELSE %]
540                                   <span class="notonhold">Not on hold</span>
541                                 [% END %]&nbsp;
542                               </td>
543                             </tr>
544                           [% END %]
545                         </table>
546                     </div>
547
548                 </fieldset>
549                   [% END %]<!-- OPACItemHolds -->
550
551                   [% END %]<!-- bib_available -->
552
553             </div>
554                 [% END %]
555
556               [% END %] <!-- if message -->
557             </div><!-- bigloop -->
558
559             [% UNLESS ( message ) %]
560             [% UNLESS ( none_available ) %]
561             <input type="submit" value="Place hold" class="placehold" />
562             [% END %]
563             [% END %]
564
565             </form>
566
567         </div><!-- holds -->
568       </div><!-- yui-g -->
569     </div><!-- bd    -->
570   </div><!-- doc3  -->
571
572 <div><!-- The following include seems to have an extra "/div" in it... -->
573 [% INCLUDE 'opac-bottom.inc' %]