From 21087ab6232aba379ff2e1ebf409a269e58bfe55 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 Signed-off-by: Laura_Escamilla --- .../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 6df0282c76..fe1e038c73 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