From 4003a4aa9090ae4c668c86a91efc049bd4d7edd6 Mon Sep 17 00:00:00 2001 From: Chris Mathevet Date: Mon, 11 May 2026 10:22:07 -0400 Subject: [PATCH] Bug 42579: Added "no-export" class to ratings div "Title" column of Checkout history export contains too much informations, making the export file hard to read and understand. Test plan : 1 - Connect on OPAC 2 - Go to "Your account" 3 - Go to "Checkout history" 4 - Click on "CSV" 5 - Open file 6 - Notice that the "title" column is too long and contains ratings informations 7 - Go back on OPAC 8 - Click on "Copy" 9 - Copy to a .txt file 10 - Notice the same problem as the CSV export 11 - Apply patch 12 - Repeat previous instructions 13 - Notice that the "title" column contains only the title Signed-off-by: Owen Leonard Signed-off-by: Laura_Escamilla Signed-off-by: Pedro Amorim --- koha-tmpl/opac-tmpl/bootstrap/en/includes/user-star-ratings.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/user-star-ratings.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/user-star-ratings.inc index 2aedc2d171..d4f37fbad9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/user-star-ratings.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/user-star-ratings.inc @@ -1,4 +1,4 @@ -
+
[% SET rating_avg = item.ratings.get_avg_rating() %] [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]