worldcat
worldcat is a Python module for interacting with OCLC's WorldCat APIs, including the WorldCat Search API and the xID APIs (xISBN, xISSN, and xOCLCNUM).
worldcat relies on the following dependencies
Mapping WorldCat Holdings
Mapping WorldCat Holdings
Mark A. Matienzo
New York Public Library
29 January 2009
Code4libNYC
Use Case
- Known item search
- by standard identifier
- for an unavailable item
Web services
Bringing It All Together: Python
Process Overview
- User submits query containing terms for OCLC number and ZIP code
- geopy geocodes the ZIP code
- worldcat grabs citation information and variant works
- Renders locations view...but that's not all!
Process Overview (cont.)
- Locations view communicates with Exhibit API to render page elements using AJAX
- JavaScript sends a call to a separate controller over HTTP, requesting JSON with holdings information (OCLC symbol, name, URL for catalog, latitude/longitude
- JSON controller sends requests to Holdings API and WorldCat Registry, and to Google Maps (as needed)
- Exhibit renders that data, and you've got the gravy
Demo