[Koha-bugs] [Bug 17089] Move the star ratings related code to Koha::Ratings
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 12 10:37:56 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17089
--- Comment #32 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Marcel de Rooy from comment #31)
> [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
> This kind of construct does not look very pretty. Simplify?
It's not possible to set a variable to something using a filter:
[% SET rating_avg_int = rating_avg | format("%.0f") %]
This does not work.
The construct is the same I already used in facets.inc:
[% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %]
If you find something easier to write/read I will be happy to know it :)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list