More OPAC fun: an RSS feed of new DVDs at the public library

Following from this script to create an RSS feed of items checked out of the library, I’ve created another little tool: dvd2rss.pl is a Perl script to extract a list of DVDs from the Provincial Library OPAC, sorted so that the newest DVDs are listed first.

Like the earlier script, this one is designed to work with the web-based Dynix OPAC (and is probably to some degree dependent on the way the PEI catalogue works, and how results are rendered). It should be easy, however, to modify it to work with other Dynix installations, and to display other sorts of searches (new books, new kids books, etc.).

Here is the RSS feed that the script generates. I’d like to enhance it a little to pull the description of the DVDs from the OPAC too. As it is, though, each RSS item links to the DVD in question in the catalogue, so you can easily check its status, and put it on hold if you like.

Here’s what the result looks like in NetNewsWire:

Screen Shot

Comments

Mark's picture
Thanks for publishing this script - I have learned a lot by studying it! I don’t understand, however, why the title and description are the same variable? I am trying to do the same thing to our favorites lists. Take a look at: http://www.willard.lib.mi.us:8080/ipac20/ipac.jsp?profile=wil&uri=link=1000001@!BSL.7CCV@!1100006@!1100002&aspect=basic&menu=search&ri=1&source=198.108.150.14@!wil&term=Oprah%27s+Classics&index=BSL I can generate RSS that gets the url and the title of each book, http://willardlibrary.org/rss/oprahs_classics.xml but I can’t figure out how to get the author, publisher and the copyright. Can anybody point me in the right direction? Thanks - Mark

Post new comment

You can comment anonymously if you must, but I would prefer it if you used your real name.
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Optional. If you enter the address of a website here, your name will be publicly linked to the site.
  • Adds typographic refinements.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.