internetarchive / internetarchive/openlibrary

Author ID should be searchable when searching by author

Open
#7,907 2 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Priority: 3 Theme: Search Type: Feature Request
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)
Screenshot 2023-05-25 at 11 37 03

### 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

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.