Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register
STRATEGIC DEVELOPER  

Do the simple things

Following even 'trivial' rules can have healthy results

By Jon Udell  
April 11, 2003
 

Every week or so, a librarian sends me a URL template that extends the scope of the LibraryLookup project. I started in December, as you may recall, with a page of bookmarklets, one for each of about 900 of the libraries that use the same OPAC (online public access catalog) as my local library does. Each bookmarklet is a snippet of JavaScript which, when invoked from an Amazon page (or from another page whose URL includes an ISBN), will look up the indicated book in a local library.

Free IT resource

Hear how top CIOs turn change into a competitive advantage.

Sponsored by HP

Free IT resource

Attend the SOA Executive Forum: Breaking SOA Bottlenecks SOAExecForum.com/may2007

Sponsored by InfoWorld

To jumpstart the project, I rounded up a few other OPACs and made lists of bookmarklets for libraries that use them. When that became unmaintainable, I turned it into a self-serve operation. If your library's OPAC is one of the LibraryLookup-supported systems, you can use a form to generate the bookmarklet that works with your library. Just this week, readers sent in two more URL patterns, bringing the total to nine OPACS -- and I don't know how many thousands of libraries.

Also this week, a librarian wrote to ask about a variation on the theme:

"I am wondering if you or someone else has developed a tool that works the other way -- refers customers using the library online catalog to local bookstores, or even Amazon.com? Then if the customer makes a purchase from the online store, a percentage of sales could go back to the library. Public libraries all over the country are experiencing mind-boggling budget cuts and are desperately looking for ways to increase revenues to keep our doors open to the public. … If you can develop this 'bookstore lookup' tool you may one day become a patron saint of libraries."

Boy, that has a nice ring to it! But I am not likely to be canonized anytime soon. For trivial and avoidable reasons, solving this problem in a general way is not as easy as it could be or should be. If your OPAC embeds the ISBN (International Standard Book Number) in the URLs that it emits, reveals the full URL (i.e., uses HTTP GET rather than HTTP POST), and does not inject a session ID into the URL, then you're all set. The reverse lookup, from an ISBN-enabled OPAC to Amazon or Barnes and Noble, is available from Matt Croydon, in response to a request relayed by Jenny "The Shifted Librarian" Levine.

Unfortunately I cannot perform this miracle for any of the nine OPAC systems currently supported by LibraryLookup. None of them uses the embedded-URL convention predictably, if at all. Now, to be fair, librarians don't rely on the ISBN to locate books. That number refers to an edition, not to all editions of a title. If you want to get from your OPAC to Amazon, an author/title search would be a better way.

Author and title fields are clearly not things you'd ever want to stick in a URL. But Amazon does have another way to provide them. Actually, it has several ways. You can use one of its XML APIs -- either the SOAP or the REST flavor. Or, even easier, you can find the author and title fields in the HTML META tag at the top of a book's detail page. I use the latter source to automate a request to my local library for a book that isn't in its collection. The OPAC's request form includes required fields for author and title. As I showed in an earlier column and in more detail on my Weblog[6], it's easy to extract the needed items from Amazon's page by using JavaScript to query the DOM (Document Object Model). To assure my sainthood, OPACs need only emit HTML META tags containing the author, the title, and while we're at it, the ISBN and publisher. Unfortunately, none of the nine do.

If you build Web-based information systems -- and who doesn't? -- it's a great idea to  wrap them in Web services APIs. The more the merrier. By offering a choice between SOAP- and REST-flavored APIs, Amazon embraces diversity. But Amazon is even more inclusive than that. It gets the simple things right. The page that represents a book has a canonical URL that you can construct automatically. It carries basic metadata in standard HTML META tags. These rules seem too trivial to mention. But they are seldom followed, even though they can spell the difference between a healthy information system that integrates with a society of peers and an isolated outcast. Moral: do the simple things.





 


 
Jon Udell is lead analyst and blogger in chief at the InfoWorld Test Center.

  More of Jon Udell's column
  Jon Udell's Weblog

Newsletter Check out all of our free newsletters!
Enter e-mail address:




 

TOP NEWS:


»  Four quick tips for choosing an IM security product
71 percent of businesses will invest in real-time messaging this year. If you're one of them, be sure to protect your enterprise

»  Forrester analysts ID hot IT jobs
Research group finds 16 IT roles with a promising future

»  Nvidia claims 10 hours of HD video on Tegra chip
The Tegra 600 and 650 can be used with hard disk drives and are designed partly for mobile Internet devices

»  Database vendors add Google's MapReduce
Greenplum and Aster Data Systems will support Google's programming technique, developed for parallel processing of large data sets across commodity hardware

»  Network management: Tips for managing costs
New technologies, changing requirements, and ongoing equipment maintenance and upgrades cost money, but there are ways to manage expenses

»  EMC targets SMBs, branch offices with new low-end storage
Celerra NX4 highlights include thin provisioning, snapshot technology for data recovery and backups, and Web-based console for management of storage volumes




Are you ready for event-driven business?
"Faster than a speeding bullet" doesn't just refer to superheroes anymore, it's the velocity your business needs to compete. In this webcast you will learn strategies you can implement today that will keep your systems ahead of the increased business velocity. Sponsor: Progress Sonic

»  Click here to view this Webcast
  Virtualization Solutions Guide
This comprehensive IT Strategy Guide covers Virtualization and puts you at the forefront of the discussion. You'll learn all you need to know from the cost of virtualization, how to implement it for your business, how to back it up safely and which products are best. Sponsored by Riverbed

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 

FIND PRODUCTS AND COMPANIES
» COMPLETE PRODUCT GUIDE



TECHNOLOGY INDEX
• Applications
• Application Development
• Security
• Networking
• Wireless
• Platforms
• Hardware
• Data Management
• Storage
• Web Services
• Business
• Telecom
• Professional Services
• Standards

TECH WATCH 


What's the 411 on GOOG-411?
Just as Google has become synonymous with "performing a Web search," 411 is understood to mean "information" -- as in "what's the 411?" I was thus surprised to discover, from a billboard, no less, that the king of search is taking on the ...

Apple HTML source reveals 'iPhone Extreme'
"This one's a stretch..." reports AppleInsider. Um, yeah. Reporting on HTML code sightings of product names could be called a stretch, but iPhone Extreme has a ring to it. Now, that sounds like the product Apple should have released first, rather ...

COLUMNISTS

Unified under law
Ephraim Schwartz's Column and Blog (InfoWorld) - In the litigious world we live in, deploying a unified communications platform in your enterprise could...
» MORE COLUMNISTS

MORE INFOWORLD BLOGS


Open Sources 
Product Management
When I joined MySQL four years ago, there was quite a lot of debate about product management. We didn't actually have ...

Zero Day 
Botnet herders tending smaller flocks
New research backs up the theory that botnet operators are keeping their networks smaller in a continued effort to keep ...



• Advice Line
• Database Underground
• The Deep End
• Enterprise Mac
• Geeks in Paradise
• Grid Meter
• The Gripe Line
• InfoWorld Daily
• Inside IT
• IT Troubleshooter
• ITXtreme
• Open Sources
• ProdBlog
• Real World SOA
• Reality Check
• Security Adviser
• SMB IT
• The Storage Network
• Tech Watch
• Virtualization Report
• Zero Day

ADVERTISEMENT


RESOURCE CENTERadvertisement 

GOVERNMENT IT & POLICY
'If you don't go after the network, you're never going to stop these guys. Never.'
From the State Department, All the News for Inquiring Minds
TechPresident, the Internet Citizenry's New Consensus Taker



Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist