]> git.koha-community.org Git - koha.git/commit
Bug 10659: Upgrade jQuery star ratings plugin
authorOwen Leonard <oleonard@myacpl.org>
Wed, 28 Nov 2018 16:58:48 +0000 (16:58 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Feb 2019 18:42:46 +0000 (18:42 +0000)
commitef248b82d7de8be112b312351f09cfb4baa3199f
treea4f9b98be8ea8050aadbc34fc87ea2bde0dd879c
parent6aadbcc4be65185a56a79980bea54bc4d74fe356
Bug 10659: Upgrade jQuery star ratings plugin

This patch replaces our current jQuery star ratings plugin with a newer
plugin which will be compatible with newer versions of jQuery:

http://antenna.io/demo/jquery-bar-rating/examples/

To test you should have one or more records in your catalog with star
ratings.

- Apply the patch and set the OpacStarRatings system preference
  to "results and details"
- Perform a search in the catalog which will return one or more titles
  which have ratings.
  - Confirm that the ratings appear correctly and the ratings are
    read-only.
- Open the "normal" detail page for that record.
  - Confirm that the star rating appears correctly.
  - Test setting and re-setting your star rating. Confirm that it is
    saved.
  - Confirm that the "cancel rating" link appears when you have a rating
    set, and that it disappears after you click it.
- Test that the "only details" and disabled options of the
  OpacStarRatings preference work as they should.
- Confirm that information about the plugin appears on the About page in
  the staff client, replacing the old star ratings plugin information.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
koha-tmpl/opac-tmpl/bootstrap/css/jquery.rating.css [deleted file]
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
koha-tmpl/opac-tmpl/bootstrap/images/spinner-small.gif [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.rating.js [deleted file]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.barrating.min.js [new file with mode: 0644]