sylvar: (Default)
2006-05-24 05:21 pm
Entry tags:

Creating a locally relevant xISBN cache

has a neat service that will tell you what ISBNs are associated with other editions of a given work. For example, if you ask it about the ISBN representing the hardcover edition, it will tell you the ISBNs for the paperback, the large print edition, the Braille edition, and so on.

I have a database that contains a slice of our database. It includes every in our catalog.

Today I wrote a script that goes through a list of all the ISBNs in our catalog and asks the server what other ISBNs are associated with each one.

Then it compares each resulting list of ISBNs to the ones already on our system. It assigns a group ID to each cluster so that I can later write a script that does a sort of localized xISBN query on the cached results. This way we can get only the ISBNs relevant to our catalog so that we can generate an Amazon-like list of references to other versions in our catalog. In fact, just for the sake of standards (and bloody-mindedness) I think I'll write an xISBN interface for our little cached slice of the world.

Our , 's , is reasonably customizable, but I think this goes beyond what they planned for. So, following 's advice, I'll learn some AJAX to inject the links into the catalog's web page.

To paraphrase Zippy the Pinhead: Are we yet?

I've started the script. There are approximately 500,000 ISBNs in our system. This will take a while. I'm going home. , pray I haven't messed something up.

Oh, and just in case... the main contact for the xISBN service has my cell phone number.
sylvar: (Breakfast Club: Brain)
2006-05-01 03:59 pm

Stylin'

With #code4lib's help, I've now got an XSLT stylesheet that lets browsers turn the existing RSS feed into something resembling HTML. This is a big step for all of the work I'm planning to do, since it means I can apply that knowledge to all the rest of the XSLT stuff.

Huzzah! I really need to cacheize the script so I can share the URL with everyone. I've gotten a lot done today and I'm proud of it.

From an email to the stakeholders (hey guys, put those stakes down, I haven't even got my game face on):
A letter to the webmaster, my boss, and her boss )

Technorati tags: , , , , ,
 
sylvar: (B5: Sheridan: Big Damn Hero)
2006-05-01 01:24 pm

Success!

My Perl script returns valid RSS for items added in the last 7 days at any given SunCat library. I need to make it cache results and use the cache, or else I can't share the URL without getting our database slammed by broken RSS aggregators querying once per minute. But I've got valid RSS, which is a good start.

Next parts of the project:
  1. Get a scratch PAC working so we can monkey around with it.
  2. Cache-ize the RSS script.
  3. Add more useful information; currently it's only displaying an ISBN and an image.


Technorati tags: , , , ,
 
sylvar: (PUTV: No Easy Answers)
2006-05-01 09:07 am
Entry tags:

Fun with DBD::ODBC

I'm trying to install DBD::ODBC so I can use ODBC-Sybase to make some interesting additions to our drab catalog. Sadly, it's becoming so much of a PITA that I'm already tempted to backtick a call to isql, which just seems like the Wrong Way.

Technorati tags: , ,