[Koha-bugs] [Bug 29280] Add OPACStarRatings to opac-shelves.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 22 16:45:50 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29280

--- Comment #3 from Lucas Gass <lucas at bywatersolutions.com> ---
(In reply to Owen Leonard from comment #2)
> Although it was introduced for (and named for) user-related pages, the
> include file user-star-ratings.inc could be used here, I think. Unless the
> ratings are supposed to display, but not be interacted with?
> 
> If they are supposed to be interacted with, the template will need to
> include the relevant JS:
> 
>     [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
>         [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
>         [% Asset.js("js/ratings.js") | $raw %]
>     [% END %]

Thanks for looking at this Owen! I followed the behavior of results.tt, which
doesn't seem to allow users to interact with OpacStarRatings, only view them. 

Do you think we should allow patrons to interact with ratings on both results
and lists? (if they are logged in) And if so, should I handle all of that in
this bug?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list