From 4c7b7f31301131e38a928b938518fdd6692a0780 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 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 --- .../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 a02cfd62fc1..2f19bb8a71b 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 @@ -148,27 +148,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