REST output from Huddersfield's catalogue

Inspiried by John Blyberg’s middleware which provides REST output from the Ann Arbor catalogue, I’ve put together something similar for ours:

Here are some sample results: railways

I’ve decided to include more information in the output than John did — primarily because I want to use the REST output to power a staff OPAC.  Amongst other things, the output includes:

The output is littered with xlink links, which can be used to issue further REST requests.

For those of you who like gory techie details, the REST output is generated by approx 1,000 lines of Perl coded as a single mod_perl handle.  The code works by fetching the XML output from HIP and then parsing it to strip out anything that’s not required in the REST output.  At the same time, extra information is pulled in from other sources (e.g. direct from the Horizon database, and from the xISBN service).

Unfortunately, looking at the XML output from other HIP servers, I doubt the code can quickly be used by other Horizon sites.  Also, not everyone has their own mod_perl server to the the code on.  However, if anyone wants to play around with the code then please send me an email (d.c.pattern [at]  There’s also a cloud on the Horizon (pun itended) relating to getting XML output out of HIP 4 — it seems Dynix have chosen to make it harder (not easier) to do this with the latest version of their OPAC (boo! hiss!).

I’ve already said that I’m planning to use the REST output to power a staff OPAC, but what I’m really keen on is letting our students loose on the data for use in final year projects, etc.  I’m also planning to use the output for a revised version of the Amazon Greasemonkey script.

The University is gradually moving towards a portal environment and I’m hoping the REST output will come in handy for dropping live catalogue content into other systems.

There’s still quite a bit of work to do, especially with adding information for journals.  We’ve already got live journal information from our SFX OpenURL server appearing in our OPAC, so I might as well include that in the REST output too:

Have fun!

  1. Davey P said:

    It looks like there might be a bug in the code, so I’ve put a fix in to force a timeout error in the event that a request takes more than 20 seconds to process. In the meantime, I’ll bash the code around with my mighty debugging hammer 🙂

  2. Pingback: panlibus

  3. The accessible OPAC is very nice! Now you just need a little box to type in search queries in and you’re all set.

  4. Davey P said:

    Cheers Ed – I’ve added one now.

  5. Seeing your post makes me wonder just how far someone outside any library catalogue can go if they have access to urlrewriitng on their own server?
    For example, i created some shortcuts into a couple of our library systems using rewrites that provide me with an easy way of making a call into the cataloge from the address line:

    Here’s another way i found of ‘command lining’ search boxes: Firefox smart keywords:


  6. Davey P said:

    Hi Tony

    One of the features most OPACs are missing is the ability to have a simple permanent link to an item in the catalogue.

    Many will let you bookmark a page, but the URL often contains sessions IDs and many other fields that superfluous. Not only that, but you run the danger than any future upgrades to the OPAC will introduce a new URL structure that ruins your old bookmarks!

    Personally, I like the idea of URL rewriting – we use something similar to resolve the permalinks on our catalogue, although it’s basically just a bit of JavaScript that redirects to the correct page. The huge advantages is that it’s a quick tweak if an OPAC upgrade changes the URL structure.

  7. Pingback: panlibus

  8. on panlibus you said “I’m not convinced that OpenSearch meets the goals that I was trying to achieve with the REST interface” – I’d be very interested hearing what goals there are that OpenSearch cannot meet.

  9. Davey P said:

    Hi Michael

    For browsing and discovery, having to code everything into a single <description> tag just seems too limiting.

    If we were able to implement some of the browsing functionality that the sites have within A9, then I could see more possibilities. However, that would seem to imply that the output from our OpenSearch code would only be suitable for use within A9?

    Having said all that, I see OpenSearch as being a very useful tool: – the ability to search a reference site and also bring up relevant catalogue items is (IMHO) a direction that OPACs should be moving towards.

    I think what both John and myself are trying to achieve here is to create something that the majority of OPACs are sorely missing – an API layer.

    Once you’re able to easily pull content out of your ILS/LMS, then it’s (relatively) simple to reformat it as SimpleDC, OpenURL, etc. Unfortunately most of us have systems that require you to jump through programming hoops just to do that.

    At the end of the day, I’m happy to code and recode the output into whatever formats are useful. If a student can do cool things with our OpenSearch output then who am I to stop them? At the moment, my gut feeling says that a REST type output will let them do even cooler stuff!

  10. Having OpenSearch output from my school’s library is exactly what I want, actually; I hope to provide a better interface for their search, eventually.

    Anyhow, if you’re talking about the [description] within individual [item]s, then you don’t have to shove everything there. Indeed, the XML you’re already generating is virtually OpenSearch… just change [Record] to [item] and you’re most of the way there. I’m not talking about the core RSS/Atom elements, it’s extensible just as any other XML is.

  11. Davey P said:

    Hi Michael

    Many thanks for that – I think I need to take a deeper look at OpenSearch 🙂

    I’ve been doing some more coding that (I hope) will allow many of the other Dynix/Horizon sites out there to take advantage of OpenSearch.

    The key (for me anyway) is getting to a stage where I can easily repurpose the data from our ILS/LMS into whatever format I want.

    With Dynix, we’re fairly lucky as most versions of their OPAC can output any page as XML — it’s not pretty XML, but it’s usable! Once you combine that with direct SQL access to your LMS database (to enrich the XML from the OPAC), and data from third party web services (e.g. xISBN), you can start doing really cool stuff.


  12. Pingback: panlibus

  13. Davey P said:

    Thanks for the reminder Kael – I’ve now added the autodiscovery link to our catalogue!

  14. Davey P said:

    Looks like the REST interface has been down for a few days (many apologies for that), but it should be available again now.

  15. Kendra said:

    Thanks for ones marvelous posting! I certainly enjoyed reading it, you will be a great author. I will remember to bookmark your blog and definitely will come back from now on. I want to encourage you to definitely continue your great writing, have a nice holiday weekend!

  16. not fake said:

    One of the difficulties in relying too much on profiling is screening security threats is that terrorists are prone to figure that out and learn how you can
    use it in order to avoid detection not fake in either case, a payday money advance loan can be
    the solution when quick financial resources are needed.

  17. laserdrucker test
    whoah this blog is great i like reading your articles.
    Stay up the good work! You understand, a lot of people are looking around for this information, you could aid
    them greatly. laserdrucker test

  18. My two-year agreement included having to pay $25 a month for 2
    gigabytes of information. By breaking, you are actually tampering with your gadget.
    The answer is to limit your obtain quantity and video clip streaming

  19. I am really impressed with your writing skills as well as with
    the layout on your weblog. Is this a paid theme or did
    you modify it yourself? Either way keep up the nice quality writing, it is rare to see a nice blog like this one nowadays.

  20. You really make it seem so easy with your presentation but I find this matter to be actually something which I think
    I would never understand. It seems too complex and very broad for me.
    I’m looking forward for your next post, I will try to get the hang of it!

  21. Remarkable things here. I’m very satisfied to see your article.
    Thank you a lot and I am looking forward to contact you.
    Will you kindly drop me a e-mail?

  22. หารายได้พิเศษ said:

    I used to be suggested this web site by means of my cousin.
    I am now not certain whether or not this publish is written by way of him as no one else recognize such special about my trouble.
    You’re incredible! Thanks!

  23. Hey! This is kind of off topic but I need some guidance from an established blog.
    Is it hard to set up your own blog? I’m not very techincal but
    I can figure things out pretty fast. I’m thinking about
    creating my own but I’m not sure where to begin. Do you have any tips or suggestions?
    With thanks

  24. Piece of writing writing is also a excitement, if you be
    acquainted with afterward you can write or else it is difficult to

  25. I think this is among the most important info
    for me. And i am glad reading your article. But wanna remark on few general things, The website style is great, the articles is really excellent
    : D. Good job, cheers

  26. Western Canada Lottery Corpodation works in conjunction with the
    prvinces off Alberta, Saskatchewan, Manitoba annd territory of Yukon and Sport North Lottery
    Authority. As many previous gamblers know, patrons of the casinos receive free
    drinks on the gambling floor during play. One of the most frustrating things
    is not wining during your free spins aand that’s whre the
    latest win-win feature cokes in.

  27. This software practically lives around its title.

    Released by the creators of Facebook, this iPhone app
    offers access to your Facebook earth. That’s a massive USD
    120 discount, on the original price.

  28. You can also make-up your own personal variations of the classic games.
    Follow directions carefully to be certain that you produce the right number of game sheets to enjoy the games.
    But-don’t assume math activities to work miracles.

  29. Milagro said:

    When you get an introduction, start by stating ‘Hi’ or smiling
    at her. Do not make the mistake of considering you are
    the only guy who has problems in this division. In fact, it has turn out to be a
    socially acceptable way to meet women.

  30. Mythbusters practices stories, both old and new, and build them as true, false or possible.
    They certainly were some sweet, funny, musical, interesting excellent movies for children to

  31. Their media selection is huge and addresses each veriety of
    songs, movies and video games. On Sept. 12th Apple
    is anticipated to introduce the subsequent-era Apple iphone.
    You can really appear for this plan on the web.

  32. Free coloring pages : An one-stop source for free coloring pages on the web.
    Gently smooth the residual fringe of the beeswax level contrary to the candle.
    He is watched by every child with open admiration.

  33. Smallville tells the tale of Clark Kent before he became Superman.
    The initial notion: send Paris Hilton and her friend
    Nicole to a farm to live for a week. Any TV show involving Diddy (also called G.

  34. Open the situation carefully, and vacuum the followers.
    But being on my annual leave on a scorching, sluggish December afternoon, I just believed, why not have a look.
    As soon as they take, you are ready to start your video call!

  35. A choice in between Droid and Apple iphone will be dictated
    by style and personality. That’s why Apple iphone 2G substitute elements are vital.
    This has currently hailed criticism: “Where are the improvements,” asks the net community.

  36. With computers attached to network, the possibilities of things we can
    do is unlimited. A rubber inside to protect your iPhone from shock, and a difficult inside
    to protect it from impact.

  37. But, while Quincy and CSI share subject material, their treatment
    of it could not become more clearly unique. He is a novice race car travel who believes he is the best.
    Firstly, the site has to be a legit one.

  38. The Apple Apple iphone is a phone, an iPod, plus
    an Web device housed in the alike black metal casing.
    Sprint gained’t be alone in the increased revenue for the iphone five.

  39. Alan said:

    It’ll display if the firmware upgrade can be acquired and ask if you would like to upgrade then obviously click ‘yes’.
    There’s virtually no time limit on what long you are able to store them.

  40. Ignore that, and you spend $400-$500 much more with AT&T’s new choices.
    Following the songs is transferred, you can drag and
    drop the songs folders to iTunes. It is available only in metallic silver,
    and black.

  41. Patrick’s Day craft out comes green markers, green forms, the green color and green colors.
    Bring Rug designs on some paper bags or building paper.
    Rotate the positioning of the merchandise within your store.

  42. The first baby who knocks down all of the drinks properly wins a
    prize. To The other hand, to ensure that this may not happen, try not
    getting toys with small pieces. Reduce directory cards
    or hard paper into pieces.

  43. cydia said:

    Is it worthy enough to be lusted so powerfully? There could be some problems,
    after an iPhone is jail broken. Another change they applied to make the iphone 5
    slimmer may be the ‘Lightning Connector’.

  44. Literal Bears I Am Jealous Of is known as to be the top amusing website of them all.
    This arises from the truth that Apple being what it’s wish one
    to regain simply to existing firmware version.

  45. You can find sixty free, printable Batman related coloring pages with this site.
    It is fun to be welcomed to and fun to host… if you select
    this occasion topic Mama so you’re set for a treat.

  46. To add the finishing touches to your landscape: Remove the grass and
    other growth from the areas designated for the walkway.
    Imagine your backyard with wood playscapes in an area of the site designed specifically for young people.
    Backyard landscaping is a wonderful art that attracts lots of aesthetic values.

  47. We have been discussing the iPhone 4 that’s several capabilities.
    You can even crop, change red-eye, and enhance photos from
    the comfort of your image stream. There
    is no warranty with this information.

  48. Rodolfo said:

    Making your Ccnasecurity accreditation is really a tremendous boost for your career and prospects!
    The iSkin revo2 has integrated port covers, To guard the docking
    and earphone ports.

  49. I’m really loving the theme/design of your web site. Do you ever run into any web browser compatibility issues?
    A number of my blog readers have complained about my blog not working correctly in Explorer but looks great
    in Opera. Do you have any advice to help fix this

  50. That settlement funding one I’ve heard of but I
    wonder how it might best fit with the wreckage.
    One reason why people try to diminish the amount each party could invest
    whenever the case you lose, then is typically
    when an employer employs five or six years that’s all you hear.

    That is exactly where you will receive his/her fair share funding, you should note.
    To also let you know the cause of the year before school.

  51. There is no medical reason for this, but purely aesthetics.
    Abrasive is the most different hair removal method
    among all the available hair removal methods.
    The liquid dip will also work well for leaning any Tiffany
    Jewelry with diamonds.

  52. I always spent my half an hour to read this blog’s articles all the
    time along with a mug of coffee.

  53. Hi, I do think this is a great blog. I stumbledupon it 😉 I am
    going to revisit once again since i have bookmarked it.
    Money and freedom is the best way to change, may you be rich and continue to guide others.

  54. I seldom discuss these posts, but I thought this on deserved a thumb up

  55. Why users still use to read news papers when in this technological globe everything is accessible on web?

  56. Dacă vrei să -l scadă în dragoste , cu toate
    acestea , există o serie de alte butoane de care aveți nevoie pentru a împinge .

    Ideea va fi de a face să pară ca un donjon , cu cât mai puțin numerar petrecut posibil .
    Cu cat mai adanc geamătul , cea mai mică sunteți în stare să meargă .

  57. Thurman said:

    great issues altogether, you simply gained a emblem new reader.
    What may you recommend in regards to your put up that you made a few days in the past?

    Any positive?

  58. I was suggested this blog by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my
    problem. You are incredible! Thanks!

  59. Jonas said:

    It’s truly very complex in this active life to listen news on TV, therefore I simply use internet for that purpose, and take the most up-to-date

  60. We stumbled over here by a different web address and thought I might
    check things out. I like what I see so now i’m following you.
    Look forward to finding out about your web page repeatedly.

  61. You really make it appear really easy with your presentation however I to find this
    topic to be actually something which I feel I might never understand.
    It seems too complicated and extremely extensive for me.
    I’m having a look forward in your next post, I’ll attempt
    to get the hang of it!

  62. You have to write this things more.At this time there are a good
    amount of people who are suffering from concerns including being
    overweight and increased excess weight currently. The reason right behind this
    scenario could be the occupied living and variable agenda because of that they cannot really spend correct attention on the health and fitness.

    A lot of them don’t have possibly time to work out. For them,
    simplest way to remain healthy and fit will be to begin the suitable supplements.

    If you are searching forward to to have reliable and certified natural supplement, Forskolin can fulfill your
    preferences to a great extent. The pure extract of Forskolin has been applied as an efficient slimming pill.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: