##############################################################################
# Misc. UI Settings
##############################################################################
+# Option for full details as a default, esp. impt. for e-content
+# that uses resolver plumbing. Valid values are 'true', 'false' and 'hide'.
+# Setting this to 'true' shows full details by default but allows the link
+# to appear for 'Show Fewer Details'. The 'hide' option shows full details
+# and also suppresses the link from displaying at all.
+show_more_details.default = 'false';
##############################################################################
# Size of the jacket image to display on the record detail summary.
-%]
</label>
<span>
+ [%- IF (show_more_details.default == 'true' OR show_more_details.default == 'hide') AND !CGI.param('detail_record_view') %]
+ <input id="detail" type="hidden" name="detail_record_view" value="1"/>
+ [%- END %]
<input id='search-submit-go' type="submit" value="[% l('Search') %]" class="opac-button"
onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
<img id='search-submit-spinner' src='/opac/images/progressbar_green.gif' style='height:16px;width:16px;' class='hidden' alt='[% l("Search In Progress") %]'/>
[% INCLUDE "opac/parts/filtersort.tt2" value=CGI.param('sort') submit_on_change=1 %]
</label>
+ [%- IF show_more_details.default != 'hide' -%]
<div class='results_header_sel' id='simple-detail-view-links'>
[% IF CGI.param('detail_record_view') %]
<a href="[% mkurl('', {detail_record_view => ''}) %]" rel="nofollow" vocab="">[% l('Show Fewer Details') %]</a> [% ELSE %]
<a href="[% mkurl('', {detail_record_view => 1}) %]" rel="nofollow" vocab="">[% l('Show More Details') %]</a>
[% END %]
</div>
+ [%- END -%]
<label class="results_header_lbl" for="limit_to_available">
<input type="checkbox" id="limit_to_available" name="modifier" value="available"
[% l('Group Formats and Editions') %]
</label>
[% END %]
- [% IF CGI.param('detail_record_view') %]
+ [%- IF CGI.param('detail_record_view')
+ OR (show_more_details.default == 'true'
+ OR show_more_details.default == 'hide');
+ -%]
<input type="hidden" name="detail_record_view" value="1" />
[% END %]
</div>