OCLC Developer Network

Code

The OCLC Developer Network supports coders at all skill levels, from newbies to ninjas. Here we’ve collected a few of our favorite bits of code. There are widgets you can copy and embed immediately (no coding required, actually!), code libraries that your fellow Developer Network members have contributed to help jump start you creating your own apps, and then some sample code in a Subversion repository you can use as “starter fluid” to get the creative juices flowing on your next app.

Library widgets and tools for everyone

Simple WorldCat linking

Ideas and examples of how to link into WorldCat to site materials and authors online, to help Web searchers find items in a local library.

Tabbed search box

Put a tabbed WorldCat search box on your Web site so visitors can find library items generally or in one of several specific formats. Available in six languages.

WorldCat keyword search widget

Let visitors to your subject-specific Web page review top results for related library-owned items in a compact widget. Scrollable results include links to the WorldCat.org detailed record for each item.

WorldCat links with embedded search terms

Link people to WorldCat results for one or more subject, author or title keywords

WorldCat List Widget

Let visitors to your Web site view items on your WorldCat list in a compact widget. Scrollable results include links to the WorldCat.org detailed record for each item.

WorldCat simple search box widget

Put a basic WorldCat search box on your Web site so visitors can find library items. Available in two widths and six languages.

Code Libraries Contributed by the Community

  • Open source xISBN (and isbndb) Python library

  • Given OpenSearch parameter values and a valid OCLC web service key, formats a WorldCat API OpenSearch request URL, gets a request response, transforms the response into a PHP Array, and returns the array.

  • worldcat is an open source module for the Python programming language that interacts with the WorldCat Search API and the xISBN/xLCCN/xOCLCNUM/xISSN web services. Developers can build working prototypes rapidly using the bibliographic, holdings and citation information available in WorldCat records. Sample applications, such as Google Maps, interface for displaying holdings information and a subject-based book recommender are included.

  • Library created at the WorldCat Mashathon Amsterdam. Allows Identities to be accessed via PPN or OCLC Number and last name. Returns results in XML or JSON formats

  • This gem provides the rudimentary components for Ruby to make it easier to process OCLC-provided data. Essentially, these are a handful of convenience functions that make it much easier to call and utilize the data available through the WorldCat Search API.

  • OCLC's xISBN web service allows you to look up other editions of a particular work using an ISBN. xisbn is a simple ruby library for doing these lookups.

Code Repository

The Developer Network staff creates sample code in PHP for the development community to use as examples to work from. This code is available for download from our Subversion repository. Trunk is not the most stable version of the code so developers are advised to use the latest branch if they want the most stable version code.

The sample code includes a variety of code for various OCLC web services. Sample code includes:

  • Mobile catalog code
  • Worldcat Map Mashup
  • Similar Items
  • Subject Timeline
  • Author Information
  • Identities Timeline
  • FAST Heading Tag Cloud
  • Journal metadata Enhancements

Additional there is some sample Android App code available in the repository.

Follow the OCLC Developer Network:

The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »

© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates


Powered by Drupal, an open source content management system