internetarchive / internetarchive/openlibrary
Clean up records with future publication dates
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 138
Description
### Evidence / Screenshot (if possible)
Many works have wrong year of publication (Like 9999, 2049, 2040....)
See: https://openlibrary.org/search?q=publish_year%3A%5B2025+TO+*%5D

### Relevant url?
https://openlibrary.org/search?q=mark&mode=everything&sort=new
https://openlibrary.org/works/OL21132031W/Classical_Music_Picture_Book?edition=
https://openlibrary.org/works/OL21486637W/Making_Sense_of_Politics?edition=
### Details
- **Logged in (Y/N)?** Y
- **Browser type/version?** Chrome
- **Operating system?** Windows 10
- **Environment (prod/dev/local)?** prod
### Proposal
Use `first_publish_year:[2025 TO *]` in solr, e.g. https://openlibrary.org/search.json?q=first_publish_year%3A%5B2025+TO+*%5D, to find future dates
* Run a [json solr query](https://openlibrary.org/search.json?q=first_publish_year%3A%5B2025+TO+*%5D) to get all ~12k records with future dates
* Write a small [script](https://github.com/internetarchive/openlibrary-bots/blob/master/BWBImportBot/import-ol.py#L10-L14) to fetch and update these records by removing the future dates
### Stakeholders
Contributor guide
Assessment
This issue has not been assessed yet.