# Specify the initial script URL for Novelist (containing account credentials, etc.)
#SetEnv OILS_NOVELIST_URL
-
+ #
# Uncomment to force SSL any time a patron is logged in. This protects
# authentication tokens. Left commented out for backwards compat for now.
#SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1
-
# If set, the skin uses the combined JS file at $SKINDIR/js/combined.js
#SetEnv OILS_OPAC_COMBINED_JS 1
# Expire the HTML quickly since we're loading dynamic data for each page
ExpiresActive On
ExpiresByType text/html "access plus 5 seconds"
+
+ # For use with embedded Content Cafe content
+ #SetEnv OILS_CONTENT_CAFE_USER 123
+ #SetEnv OILS_CONTENT_CAFE_PASS 456
+ # Consider copying/moving other added content configs
+ # (e.g. NOVELIST) into here or to an outer container shared by
+ # both /opac and /eg/opac since some are used in both places
</Location>
.rdetail-author-div { padding-bottom: 10px; }
.invisible { visibility: hidden; }
+.rdetail-extras-summary { margin: 10px; }
args.author = xml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent;
args.publisher = xml.findnodes('//*[@tag="260"]/*[@code="b"]').textContent;
args.pubdate = xml.findnodes('//*[@tag="260"]/*[@code="c"]').textContent;
+ args.summary = xml.findnodes('//*[@tag="520"]/*[@code="a"]').textContent;
args.edition = xml.findnodes('//*[@tag="250"]/*[@code="a"]').textContent ||
xml.findnodes('//*[@tag="534"]/*[@code="b"]').textContent ||
xml.findnodes('//*[@tag="775"]/*[@code="b"]').textContent;
<div id='rdetail_extras_div' style='width: 100%;'>
[% # Hidden extras are not yet implemented. Some may require JS
+
+ # Let's see if we should hide the content cafe / simple summary content
+ hide_summary = 1;
+ IF attrs.summary; hide_summary = 0; ELSE;
+ # Expose content cafe if it's reasonable to do so.
+ # This approach only works when using embedded content cafe.
+ IF ENV.OILS_CONTENT_CAFE_USER;
+ ident = attrs.isbn_clean || attrs.upc;
+ IF ident; hide_summary = 0; END;
+ END;
+ END;
+
extras = [
- {name => 'summary', label => l('Summaries & More'), hide => 1}, # Content Cafe
+ {name => 'summaryplus', label => l('Summaries & More'), hide => hide_summary},
{name => 'content', label => l('Contents'), hide => 1}, # ToC
{name => 'authors', label => l('Authors')},
{name => 'series', label => l('Series'), hide => 1},
--- /dev/null
+<div class='rdetail_extras_div'>
+ [% IF attrs.summary %]
+ <div class='rdetail-extras-summary'>
+ <strong>[% l('Summary: ') %]</strong>[% attrs.summary %]
+ </div>
+ [% END %]
+
+ <!-- Embedded content cafe iframe -->
+ [% ident = attrs.isbn_clean || attrs.upc %]
+ <iframe width="100%" height="400" frameborder="0"
+ src="http://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%-
+ ENV.OILS_CONTENT_CAFE_USER %]&Password=[% ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident %]&Options=Y" >
+ </iframe>
+</div>
+