Bug 10125: Babeltheque star image must use sprite
authorOwen Leonard <oleonard@myacpl.org>
Wed, 3 Jul 2013 18:34:31 +0000 (14:34 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 8 Jul 2013 13:53:56 +0000 (13:53 +0000)
commite27c86be59196d346c0631a89ebb27162449cc5c
treeb148c761f9c7340fbbe86189b7aac091b57e5afb
parent35d888643f3b3c281e0212b04ed770d3a86ce1e1
Bug 10125: Babeltheque star image must use sprite

When I removed images from the OPAC in favor of sprites I didn't take
into account the display of star ratings from Babeltheque. This patch
copies the star ratings display from Koha's own ratings display,
though it is not dependent on JavaScript.

I'm sure testing would be easy for someone with access to the
Babeltheque service, but I do not. I temporarily modified the template
to set some variables for testing purposes:

    [% SET SEARCH_RESULT.score_int = 3 %]
    [% SET SEARCH_RESULT.score_avg = 3 %
    [% SET SEARCH_RESULT.num_scores = 87 %]

This enabled the display of the ratings, allowing me to confirm that
stars display correctly. Ratings should work with and without
OpacStarRatings enabled.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
I also fudged the template to test, so QA would need to be done with
someone with Babeltheque access

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt