internetarchive / internetarchive/openlibrary
Author ID should be searchable when searching by author
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 138
Description
When searching for an author using advanced search, it is not possible to search by author ID. If one tries, there are no results. To search by ID, one must switch to the general search.
### Evidence / Screenshot (if possible)
### Relevant url?
https://openlibrary.org/search/authors?q=OL781673A&mode=everything
### Steps to Reproduce
1. Go to ...https://openlibrary.org/search/authors
2. Do ...search for a valid author ID, for example, OL781673A.
* Actual: No results.
* Expected: The author associated with that ID should be returned. https://openlibrary.org/authors/OL781673A/Stephanie_Urdang
### Details
- **Logged in (Y/N)?**
- **Browser type/version?**
- **Operating system?**
- **Environment (prod/dev/local)?** prod
### Proposal & Constraints
- Use a regular expression to check if the search term is an open library author id, and if so, search just for `key:/authors/{olid}`.
### Related files
### Stakeholders
@cdrini
Contributor guide
Assessment
This issue has not been assessed yet.