WordPress.org

Forums

GoodReviews
[resolved] Average rating all editions of a book (4 posts)

  1. jorisvanriel
    Member
    Posted 1 year ago #

    Hi there!

    Great plugin, good work!
    Working with ISBN works fine, gives the same ratings as shown on goodreads.com. Only sometimes, for instance a dutch book ISBN gives 4 stars based on 4 ratings, while the book has come out in 100 editions and goodreads total rating for all editions is 4 stars based on 43291 ratings. Is there a possibility to show the total rating of all editions? That would make a great extra statistic figure on the website. (not that dutch readers don't exist, but still..;).

    http://wordpress.org/plugins/goodreviews/

  2. jhanbackjr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, jorisvanriel.

    Thanks for using GoodReviews. I'm not sure what you're requesting is possible directly from the Goodreads API (which is where GoodReviews pulls the average rating). However, I'm planning to implement some improvements to the average rating in the next revision. I'll take a deeper look into supporting your feature as I implement those changes.

    Thanks again for using GoodReviews!

    James

  3. jorisvanriel
    Member
    Posted 1 year ago #

    Hi jhanbackjr,

    I looked into it. Seems that the plugin pulls average rating from WORK (which is based on all editions) and also fills stars based on that, while ratings-count is based on a single ISBN. There are 2 ratings_count in API, one in Work en one in Book. On line 302 (stars&ratings) in goodreviews functions.php i changed $Result->book->ratings_count into $Result->book->work->ratings_count. Now it gives the ratings_count (WORK) from all editions.

    Thought I'd share the info for next revisions.

    Joris

  4. jhanbackjr
    Member
    Plugin Author

    Posted 11 months ago #

    This feature has been implemented in the next version of GoodReviews, which will be released in the coming weeks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GoodReviews
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic