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
  1. User submits query containing terms for OCLC number and ZIP code
  2. geopy geocodes the ZIP code
  3. worldcat grabs citation information and variant works
  4. Renders locations view...but that's not all!
Process Overview (cont.)
  1. Locations view communicates with Exhibit API to render page elements using AJAX
  2. JavaScript sends a call to a separate controller over HTTP, requesting JSON with holdings information (OCLC symbol, name, URL for catalog, latitude/longitude
  3. JSON controller sends requests to Holdings API and WorldCat Registry, and to Google Maps (as needed)
  4. Exhibit renders that data, and you've got the gravy
Demo