From 220058da2608a5c773b66192603d25f540366d79 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 7 Aug 2025 18:53:40 +0000 Subject: [PATCH] Bug 40619: Remove OverDrive star ratings from the OPAC Content-Type: text/plain; charset=utf-8 Since OverDrive no longer supplies star ratings through their API we can remove the corresponding JS from the template. To test, apply the patch and enable OverDrive integration. - In the OPAC, perform a search which will return results from your OverDrive collection. - Follow the link a the top of Koha search results, "Found X results in the library's OverDrive collection" - Confirm that OverDrive search results load correctly and that nothing looks broken. Sponsored-by: Athens County Public Libraries Signed-off-by: Laura_Escamilla Signed-off-by: Marcel de Rooy --- .../en/modules/opac-overdrive-search.tt | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt index 8ee46dbc43..d5a910f3da 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt @@ -155,27 +155,6 @@ if ( prod.primaryCreator ) results.push( '

' + _("by") + ' ', prod.primaryCreator.name, '

' ); results.push( '' + _("Type:") + ' ', prod.mediaType, '' ); - if ( prod.starRating ) { - var rating_value = Math.round( prod.starRating ); - results.push( '
' ); - results.push( '
'); - results.push( '
'); - for ( var rating = 1; rating <= 5; rating++ ) { - - results.push( '' ); - } else if( rating_value > rating ){ - results.push( ' class="br-selected">' ); - } else { - results.push( '>'); - } - } - results.push( '
' ); - results.push( '
' ); - results.push( '
' ); - } - results.push( '' ); results.push( '' ); -- 2.39.5