##############################################################################
##############################################################################
+# No External Links
+##############################################################################
+# If enabled then (hopefully) no external links will be generated.
+# This is intended for use by public catalog stations in libraries.
+ctx.no_external_links = 'false';
+
+##############################################################################
# Holds blocking
##############################################################################
# Prevent the "Place hold" link from being displayed if a copy is available.
search.default_qtypes = ['keyword','title','author'];
+
+##############################################################################
+# This block turns off some features that would generate external links if the
+# option is enabled.
+
+IF ctx.no_external_links == 'true';
+ ctx.refworks.enabled = 'false';
+ ctx.openurl.enabled = 'false';
+END;
%]
<div id="footer-wrap">
<div id="footer">
+[%- IF ctx.no_external_links != 'true' %]
<a href="/">[% l('Dynamic catalog') %]</a> |
<a href="http://example.com">[% l('Bottom Link 2') %]</a> |
<a href="http://example.com">[% l('Bottom Link 3') %]</a> |
<a href="http://example.com">[% l('Bottom Link 4') %]</a> |
<a href="http://example.com">[% l('Bottom Link 5') %]</a>
+[%- END %]
[% IF ctx.timing %]
<div id="timing">
[% FOR event IN ctx.timing %]
</div>
<div id="footer_logo">
[% l('Powered by') %]
+[%- IF ctx.no_external_links != 'true' %]
<a href="http://evergreen-ils.org">
+[%- END %]
<img src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png"
style="border:none; width: 94px; height: 16px;"
alt="[% l('Evergreen') %]"
/>
+[%- IF ctx.no_external_links != 'true' %]
</a>
+[%- END %]
</div>
</div>
</div>
<td class="login_boxes right_brain" align="center" valign="top" width="291">
-
+[% IF ctx.no_external_links != 'true' %]
<a href="http://example.com"><img
src="[% ctx.media_prefix %]/images/questions.png" alt="[% l('Questions?') %]" style="margin-top:29px;" /></a>
<a href="http://example.com"><img
alt="[% l('FAQs') %]" src="[% ctx.media_prefix %]/images/faqs-btn.png" style="margin-top:13px;" /></a>
+[% END %]
</td>
[%- IF num_uris > 1 %]<ul>[% END %]
[%- FOR uri IN merged_uris %]
[%- IF num_uris == 1 %]<p class="rdetail_uri">[% ELSE %]<li class="rdetail_uri">[% END %]
- <a href="[% uri.href %]">[% uri.link %]</a>[% ' - ' _ uri.note IF uri.note %]
+ [%- IF ctx.no_external_links != 'true' %]
+ <a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]
+ [%- ELSE;
+ uri.link _ ' (' _ uri.href _ ')' | html;
+ ' - ' _ uri.note | html IF uri.note;
+ END %]
[%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
[%- END %]
[%- IF num_uris > 1 %]</ul>[% END %]
<td valign='top'>
<strong>[% l('Electronic resource') %]</strong>
</td>
+ [% IF ctx.no_external_links != 'true' %]
<td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
+ [% ELSE %]
+ <td>[% uri.link _ ' (' _ uri.href _ ')' | html; ' - ' _ uri.note | html IF uri.note %] </td>
+ [% END %]
</tr>
[% END %]
[%- IF args.holdings.size > 0;
</div>
</div>
[% END %]
-[% INCLUDE "opac/parts/topnav_links.tt2" %]
+[% IF ctx.no_external_links != 'true';
+ INCLUDE "opac/parts/topnav_links.tt2";
+END %]
- <div id="topnav_logo"> <a href="http://evergreen-ils.org"><img alt="[% l('Evergreen Logo') %]"
- src="[% ctx.media_prefix %]/opac/images/small_logo.png" /></a></div>
+ <div id="topnav_logo">
+[% IF ctx.no_external_links != 'true' -%]
+ <a href="http://evergreen-ils.org">
+[%- END -%]
+ <img alt="[% l('Evergreen Logo') %]"
+ src="[% ctx.media_prefix %]/opac/images/small_logo.png" />
+[%- IF ctx.no_external_links != 'true' -%]
+ </a>
+[%- END -%]
+ </div>