# Let's see if we should hide the content cafe / simple summary content
hide_summary = 1;
- IF attrs.summary.0; hide_summary = 0; ELSE;
+ IF attrs.summaries.0; 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;
<div class='rdetail_extras_div'>
- [% IF attrs.summary %]
+ [%- IF attrs.summary %]
<div class='rdetail-extras-summary'>
<strong>[% l('Summary: ') %]</strong>
- [% FOR sum IN attrs.summary %]
+ [% FOR sum IN attrs.summaries %]
[% IF !loop.first; '<br/>'; END %]
<span>[% sum | html %] </span>
[% END %]
</div>
- [% END %]
-
+ [%- END %]
+ [%- IF ENV.OILS_CONTENT_CAFE_USER %]
<!-- Embedded content cafe iframe -->
[% ident = attrs.isbn_clean || attrs.upc %]
<iframe width="100%" height="400" frameborder="0"
src="[% ctx.proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%-
ENV.OILS_CONTENT_CAFE_USER %]&Password=[% ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" >
</iframe>
+ [%- END %]
</div>