Carry "Place Hold" blockage over into conifer templates
authorDan Scott <dscott@laurentian.ca>
Tue, 31 Jul 2012 21:49:48 +0000 (17:49 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 31 Jul 2012 21:51:56 +0000 (17:51 -0400)
As we had previously cloned the record/summary template to munge the
display, we needed to carry over the same "block hold on available"
logic as Art added to core.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates_conifer/opac/parts/record/summary.tt2

index 306aae6..e440de2 100644 (file)
     </div>
 
     <div id="rdetail_actions_div">
+        [%- search_ou = ctx.search_ou; IF attrs.org_copy_counts.$search_ou.available == 0 OR ctx.holds_block.enabled == 'false' %]
         <div class="rdetail_aux_utils place_hold">
             <a href="[% mkurl(ctx.opac_root _ '/place_hold', 
                 {hold_target => ctx.bre_id, hold_type => 'T', hold_source_page => mkurl()}, stop_parms) %]" 
             class="no-dec"><img src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('place hold') %]" /><span 
             class="place_hold">[% l('Place Hold') %]</span></a>
         </div>
+        [%- END %]
         <div class="rdetail_aux_utils toggle_list">
         [%-  
             operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";