internetarchive / internetarchive/openlibrary

Add trending score to the Book Page (if > threshold)

Open
#11,072 12 comments 0 reactions 1 assignee Claimed by @nexpectArpit View on GitHub
Good First Issue Lead: @cdrini Needs: Assignee Check-in Needs: Response Priority: 3 Theme: Book Page Type: Feature Request
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Feature Request

### Problem / Opportunity

We recently added trending scores to our solr search engine. This means, when we arrive on the book page, we should have trending score available to us.

### Proposal

If the trending score for the book on the book page is > some threshold e.g. 5, then render the trending badge macro.

https://github.com/internetarchive/openlibrary/blob/master/openlibrary/macros/TrendingBadge.html

Please propose a design if you'd like to work on this issue :)

### Breakdown

### Related files

Refer to [this map of common Endpoints](https://github.com/internetarchive/openlibrary/wiki/Endpoints):
*

### Requirements Checklist
Checklist of requirements that need to be satisfied in order for this issue to be closed:
* [ ]

### Stakeholders

*


### Instructions for Contributors

* **Before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) or pushing up changes to a PR, please first [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date, as the pre-commit bot may add commits to your PRs upstream.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.