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