Bugzilla – Attachment 185237 Details for
Bug 40619
Remove OverDrive star ratings from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40619: Remove OverDrive star ratings from the OPAC
Bug-40619-Remove-OverDrive-star-ratings-from-the-O.patch (text/plain), 2.65 KB, created by
Owen Leonard
on 2025-08-07 19:11:28 UTC
(
hide
)
Description:
Bug 40619: Remove OverDrive star ratings from the OPAC
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-08-07 19:11:28 UTC
Size:
2.65 KB
patch
obsolete
>From 4c7b7f31301131e38a928b938518fdd6692a0780 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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( '<p>' + _("by") + ' ', prod.primaryCreator.name, '</p>' ); > results.push( '<span class="results_summary mediatype"><span class="label">' + _("Type:") + ' </span>', prod.mediaType, '</span>' ); > >- if ( prod.starRating ) { >- var rating_value = Math.round( prod.starRating ); >- results.push( '<div class="results_summary ratings">' ); >- results.push( '<div class="br-wrapper br-theme-fontawesome-stars">'); >- results.push( '<div class="br-widget br-readonly">'); >- for ( var rating = 1; rating <= 5; rating++ ) { >- >- results.push( '<a href="#"' ); >- if( rating == rating_value ){ >- results.push( ' class="br-selected br-current"></a>' ); >- } else if( rating_value > rating ){ >- results.push( ' class="br-selected"></a>' ); >- } else { >- results.push( '></a>'); >- } >- } >- results.push( '</div>' ); >- results.push( '</div>' ); >- results.push( '</div>' ); >- } >- > results.push( '</td>' ); > > results.push( '<td>' ); >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40619
: 185237