Text "Patron reviews" appears even if no review available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Low
|
Unassigned | ||
2.11 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Text "Patron reviews" appears in record detail page in OPAC (in "Awards, Reviews, & Suggested Reads" section even if no review available (e.g. http://
The text concerns Chilifresh patron review and occurs in the TPAC template /openils/
As it is quite confusing for catalog users, the text should not be displayed when Chilifresh patron reviews are not used in particular Evergren catalog (may be also the section Awards, Reviews, & Suggested Reads should not be displayed when empty).
(Evergren 2.10.7)
Changed in evergreen: | |
milestone: | 3.next → 2.12.2 |
no longer affects: | evergreen/2.10 |
Changed in evergreen: | |
importance: | Undecided → Low |
tags: | added: signedoff |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
We have tested a solution which is inspired by Novelist (in /templates/ opac/parts/ record/ awards. tt2) and consists of adding
[% IF ENV.OILS_ CHILIFRESH_ URL %]
before the following code:
<strong>[% l('Patron Reviews:') %]</strong> margin- bottom: 20px;"> chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
<div style="
<span class="
<div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
</div>
and
[% END %]
after the code in the awards.tt2 file.
It seems to work okay (when Chilifresh is switched off, no "Patron Reviews:" text appears).
The customized version of the awards.tt2 file is attached.