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>
</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";