Redirect script for parsing different IDs to OL records
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Library |
Confirmed
|
High
|
Anand Chitipothu |
Bug Description
Anand,
Hank, Brewster and I have been talking about adding a link to a (Texts) item page from the Internet Archive into Open Library.
It might look something like this:
http://
Hank had a great idea about this. Instead of pinging for each item using the API, or needing to know an Open Library ID, what if he could send us another sort of ID via a URL that we can try to lookup in Open Library, then redirect to the right page.
So, Internet Archive needs to be able to send us a URL like one of these:
- www.openlibrary
- www.openlibrary
- www.openlibrary
Where the ID after the /id/ can be an ISBN, OCLC, LCCN, IA, OL (and presumably any number of IDs in the future - LibraryThing, GoodReads, Flickr, Wikipedia etc etc).
We do a look up for that ID in Open Library, then based on what it refers to, we construct a URL to send someone to the right page.
This could be really, really useful for other sites to throw links at Open Library. Imagine if there was a way to shoot ISBNs at us and have us find the right Open Library page? Very flexible, very light.
We should also design specifically for the exception when we can't find a record on Open Library. We should show a specific page that explains that we can't find a match, and perhaps "create a new record" or... "go back" or something.
We should also do this for production now, but also for Upstream (or at least, I'll make a note that this particular case might be a variable that we can through into a page like a 404.)
Changed in openlibrary: | |
assignee: | nobody → Anand Chitipothu (anandology) |
importance: | Undecided → High |
status: | New → Confirmed |
Just one small correction: these redirecting urls were Brewster's idea, not mine.