OCLC Developer Network

Demonstrations and Code

Syndicate content

Mashathon demos get incorporated at libraries

One of the scripts which I wrote as a mashup demonstration used the New York Times Bestseller API to add Best Seller indicators and links to a full record screen being generated via data from the WorldCat Search API. Michael Beccaria at Paul Smith College in upstate NY has taken my prototype script and revamped and incorporated it into their VuFind powered library catalog.

QR Code Hacks

A lightning talk on QR codes at Access last week reminded me that just prior to the Boston Mashathon I did a nifty mashup using the RSS feed from the Developer Network Application Gallery and the Google Chart API. I wanted to mass generate QR Codes for all the web addresses of the applications in the Application Gallery to put them in attendee's badges at the Boston Mashathon. I found a QR code generate where I could perform this task one by one. However, I wanted something way more efficient since there are now over 60 applications in the gallery. I discovered that the Google Chart API has a way to generate QR codes easily. The next thing I needed was a way to get the URLs for all the applications out of the Application gallery so I could easily loop through it and build QR codes. Drupal has a dead easy way to do this. You just use Views to create an RSS feed that includes all the applications. The feed will have the name of the application as the Title and the url in the Link element. Once I had the feed I could use a PHP script to parse it and build the code on the fly. The result was a tabular web page that listed all the application names and their QR code. Saving the page and all its accompanying files to my hard drive gave me all the QR code images. You can see below that the code for producing the QR codes is pretty simple. I could have also written the PHP to just download the image files using curl to a folder on my hard drive but this approach was simpler and also let me display the codes in a web page to check to make sure they were being properly created. If you want to see the page in action you can check in out at http://www.librarywebchic.net/mashups/QR_code_page.php . Be patient the QR codes take a bit of time to load. This demo shows just how easy it is to use data from an RSS feed to produce QR codes. I can imagine a library potentially sending out a New Books list brochure that uses QR codes to link readers of the brochure back to information about a specific book and allow them to place a hold for that book.

New demos for Access presentation

I'm presenting on OCLC Web Services at Access this week and I wanted to have some new stuff to show off at the conference. As a result, I wrote two new demos which show off OCLC Web Services and other APIs. One demo is an extension of the code I wrote at the Boston Mashathon.

New York Times Movie Reviews mashup with WorldCat data

I posted a while back about the fact that I've been playing with the New York Times Bestseller API in order to add indicators that a book was on the best seller list to a mock catalog screen. While I was working on that I discovered the New York Times Movie Reviews API and decided it would be really neat if I could put links to review from the New York Times into my mock catalog demo.

Creating a Catalog Search Form Using WorldCat Registry

When I'm talking about OCLC Web Services to developers, some services spark ideas more quickly than others. Most developers can easily see applications for services like the WorldCat Search API, xISBN, and Identities. Some services though don't instanteously spark as many ideas. One such services is the WorldCat Registry. The Registry contains information about libraries worldwide. Both OCLC members and non-member institutions. Metadata like a library's name, address, phone number, OCLC Symbol, catalog URL, website URL, OpenURL resolver are all in the registry.

New York Times Mashups

Every since the New York Times posted about a mashup done with their Best Seller API and WorldCat, I've been itching to try out my own versions. So I've built two mashups:

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