View | Details | Raw Unified | Return to bug 29280
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-1 / +1 lines)
Lines 477-483 Link Here
477
477
478
                                                        [% itemsloo.XSLTBloc | $raw %]
478
                                                        [% itemsloo.XSLTBloc | $raw %]
479
479
480
                                                        [% IF ( OpacStarRatings == 'all' ) %]
480
                                                        [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
481
                                                            <div class="results_summary ratings">
481
                                                            <div class="results_summary ratings">
482
                                                                [% SET rating_avg = itemsloo.ratings.get_avg_rating() %]
482
                                                                [% SET rating_avg = itemsloo.ratings.get_avg_rating() %]
483
                                                                [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
483
                                                                [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
(-)a/opac/opac-shelves.pl (-5 lines)
Lines 76-85 if( $op eq 'view' || $op eq 'list' ){ Link Here
76
        });
76
        });
77
}
77
}
78
78
79
$template->param(
80
    OpacStarRatings => C4::Context->preference("OpacStarRatings")
81
);
82
83
if (C4::Context->preference("BakerTaylorEnabled")) {
79
if (C4::Context->preference("BakerTaylorEnabled")) {
84
    $template->param(
80
    $template->param(
85
        BakerTaylorImageURL => &image_url(),
81
        BakerTaylorImageURL => &image_url(),
86
- 

Return to bug 29280