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