From f331ff3419d2a7721a4dcb049743a284405bf024 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 Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass (cherry picked from commit e0bef69d476321de444b779dc56bff00f19eb888) Signed-off-by: Jacob O'Mara --- .../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( '' );