From b379bba255e32d6fcd7f8b053e58c2bc23491926 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 11 Feb 2019 13:35:12 +0000 Subject: [PATCH] Bug 10659: (follow-up) Ensure zero rating shows correctly This patch makes a minor markup addition to ensure that a title with no rating shows no stars. Also changed: Minor addition to search results JS to prevent unwanted scrolling if the user clicks a star in a star rating. Signed-off-by: Nick Clemens --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 5 ++++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 05ff1bc4c9..46c1c76cb1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -477,11 +477,14 @@ [% ELSE %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index c4af74537d..20f0f1c6fc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -738,6 +738,10 @@ $(document).ready(function(){ }); enableCheckboxActions(); + $(".br-readonly a").on("click", function(e){ + e.preventDefault(); + }); + [% IF ( IDreamBooksResults ) %] $('.idbresult').each(function() { var isbn = $(this).children('a').text().replace(/\s*/,''); -- 2.39.5