authorquery = attrs.author | replace('[,\.:;]', '');
mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
-%]">[% attrs.author | html %]</a></em>
-
- [% attrs.pubdate | html %]
+ [%- UNLESS CGI.param('detail_record_view')
+ OR (show_more_details.default == 'true'
+ OR show_more_details.default == 'hide')
+ %] [% attrs.pubdate | html %]
+ [%- END -%]
</div>
<table cellpadding="0" cellspacing="0" border="0"
class="results_info_table">
[% IF CGI.param('detail_record_view') %]
<!-- These fields are visible when viewing the results page in 'detailed' mode -->
- [% IF attrs.publisher %]
+ [% IF attrs.pubinfo %]
<tr name="results_pub_tr">
<td valign="top">
<strong>[% l('Publisher:') %]</strong>
</td>
- <td>[% attrs.publisher | html %]</td>
+ <td>[% attrs.pubinfo | html %]</td>
</tr>
[% END %]
[% IF attrs.isbns.size > 0 %]
<td nowrap='nowrap' width="1" align="right">
<div class="result_table_utils_cont">
<div class="result_table_utils">
+[%- search_ou = ctx.search_ou;
+ num_holdable_copies = attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size || 0;
+ IF ctx.place_unfillable ||
+ ( num_holdable_copies > 0
+ && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0)
+ )
+%]
<div class="results_aux_utils place_hold"><a
href="[% mkurl(ctx.opac_root _ '/place_hold',
{hold_target => rec.id, hold_type => 'T', hold_source_page => mkurl()}) %]"
src="[% ctx.media_prefix %]/images/green_check.png"
alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
</div>
+[%- END -%]
<div class="results_aux_utils result_util">
[% IF ctx.user;
INCLUDE "opac/parts/bookbag_actions.tt2";