Category: XML

Mar 16 2010

Mash-Up the OPAC


ILS user groups can be one of the greatest sources of tips, tricks and inspiration for tech-oriented library staff. There was a recent discussion on the Innovative User’s Group that has led to an interesting way to embed various media into OPAC search results.

Each of these work in Innovative’s Millennium OPAC. I have not had a chance to check whether this will work in other systems, but would greatly enjoy hearing whether or not it works for others.

The key to this is the MARC 970 field, using the subfield |t, which is used for Table of Contents display information. It was observed that the contents of the field were passed along to the browser, and that html code could be passed to the bibliographic display.

It works well, and is a perfect example of a “hack”, utilizing existing functionality in new and creative ways. To date, there are six ways to extend the OPAC.

To try out these examples, simply copy the html code, starting with the |t, and paste it into a 970 field in a bibliographic record. Each of the examples should work as is; some information about how to modify the code, as well as a screenshot of the example is provided.

Displaying an Image:
This is fairly straightforward insertion of an image stored on Flickr. Change the URLs to whatever you need, adjust the pixel height and width, and this will serve you well.

|t<center><object data="http://farm4.static.flickr.com/3433/3694927599_039309b2e6_o.jpg" type="image/jpg" width="400" height="600"><img src="http://farm4.static.flickr.com/3433/3694927599_039309b2e6_o.jpg"></img></object></center>

Screenshot of inserted image

Image Screenshot

Embedding a Search Form:
This code embeds a search form for OpenLibrary, including a selector check box and link to an advanced search page. Search forms can be tricky, and it can be very challenging to get even basic search functionality for some services.

|t<br />Search OpenLibrary:<form method="get" action="http://www.openlibrary.org/search"><input border: 1px solid #ccc; width: 100%" type="text" name="q" value="" title="type_search." /><button class="go" type="submit">Go</button><br /><input tabindex="9" type="checkbox" value="mhsncqbxgkup" name="ftokens">Scanned books only<br /><a href="http://www.openlibrary.org/advanced" style="text-decoration: underline">OpenLibrary Advanced Search Page</a></form>

OpenLibrary search box screenshot

Search Box Screenshot

Embedding a Video:
This example embeds a YouTube video, specifically the preview for the film “A Streetcar Named Desire”. Previews of videos available in the library, library instructional videos, and author interviews are examples of the types of embedded video that add can value to your OPAC.

The embedding information comes from the “Embed” information from the YouTube result page. You can also simply replace the URL information in the code below:

|t<center><embed src="http://www.youtube.com/v/ilW32IKJoM0&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="720" height="578"></embed></center>

Embedded Video Screenshot

Embedded Video Screenshot

Streaming Audio:
This example uses a third-party service called Odeo to stream the MP3 audio of Martin Luther King Jr’s “I Have a Dream” speech. The audio file lives on the Internet Archive.

|tTo listen to the speech, click the "Play" button:<br /><center><embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" quality="high" width="300" height="52" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url=http://www.archive.org/download/MLKDream/MLKDream_64kb.mp3" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></center>

Streaming Audio Screenshot

Streaming Audio Screenshot

Journal Table of Contents
This example utilizes two separate third-party services. First, the ticTOCs Journal Tables of Contents service is used to locate an RSS feed for a table of contents, in this case “Educational Research“.

After this, the feed URL is entered into the Feed2js service, which generates the code. To display any RSS feed, simply use the Feed2js service with a feed’s URL.

|t<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.informaworld.com%2Fampp%2Frss%7Econtent%3D0013-1881&chan=y&tz=-5&targ=y&utf=y&html=a" charset="UTF-8" type="text/javascript"></script> <noscript> <a href="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.informaworld.com%2Fampp%2Frss%7Econtent%3D0013-1881&chan=y&tz=-5&targ=y&utf=y&html=y">View RSS feed</a> </noscript>

Journal Table of Contents Screenshot

Journal Table of Contents Screenshot

Virtual Bookplate
This example is simply a proof of concept, but I especially enjoyed putting this one together and hope to create a more polished version in the future. It uses a background image of an open book with blank pages (credit to happysweetmama via Flickr), and then applies Relative Positioning to place text on top of the image.

The text position, font, size, and content are all able to be controlled for each record. This can be a great way to honor those who add to a collection, or to highlight items from a particular collection.

|t<center><object data="http://www.libology.com/capital/OpenBook500.jpg" type="image/jpg" width="500" height="364"> <img src="http://www.libology.com/capital/OpenBook500.jpg" width="500" height="364"></img> </object><div style="position: relative; top:-225px; left:-125px"><font size="+1" font-family:"Times New Roman",Georgia,Serif;>A Gift from:</font></div><div style="position: relative; top:-260px; left:125px"><font size="+2" font-family:"Times New Roman",Georgia,Serif;>Josiah H.<br />Blackmore II</font></div></center>

Virtual Bookplate Screenshot

Virtual Bookplate Screenshot

There are, I am sure, dozens of ways that one can use this hack to enhance the OPAC… these are just a start.

  • Share/Bookmark
Jun 17 2009

ISBN-UPC-EAN Lookups


If you are involved with the selection or ordering process, then you are very likely to be familiar with searching for items by the International Standard Book Number, or ISBN.  The newer, 13-digit ISBN is actually based on the European Article Number, or EAN, which makes books consistent with most international trade goods.  The EAN was developed as an expansion of the common Universal Product Code, or UPC.

Enough theory?  How about web sites that offer lookup services that can help you find booksellers, prices, and even reviews and summaries of the books you wish to acquire?

  • BookFinder – This site returns a large number of booksellers (many, many used booksellers!), although it seems odd that it doesn’t display the book’s title.
  • CheckUPC.com – A good summary, and a variety of printable bar codes make this a decent site for book information.
  • ISBN.nu – This is one I have used for years, and is still the one I turn to when our primary vendors don’t have a book in stock.
  • ISBNdb.com – With summaries, subjects, similar items, and physical details, this site is a great resource for information about books.
  • OCLC’s xISBN service – This service returns a list of related ISBNs, other editions of the book whose ISBN you append to their base URL ( http://xisbn.worldcat.org/webservices/xid/isbn/ ), in XML format.  It isn’t pretty, but when you need it, it is very helpful.
  • ThingISBN – Similar to xISBN, LibraryThing provides a service where you append your ISBN to the end of their base URL ( http://www.librarything.com/api/thingISBN/ ) and get a list of related ISBNs in XML format.
  • UPC Database – This site returns a large number of booksellers of the group; it also lets you know that the UPC is associated with that fictional country that so many people enjoy visiting:  Bookland.
  • Wikipedia’s Book Sources – If you want a service that can give you dozens (and dozens!) of places where you can “Find This Book”, then you need to try this one.

For comparison, here are links to results for the same book (Stephen King : The Dark Tower):

Sources and further information:

  • Share/Bookmark
May 14 2009

Google and Microformats


Google has made the jump into supporting Microformats as well as RDFa, calling their implementation “Rich Snippets”!

This is great news on several different levels. Semantic markup within web pages provides a way to target searches much more effectively.  TechCrunch provides an excellent example:

“If I was to write a post that mentioned “The President” without naming him, Google probably wouldn’t realize that I was talking about President Obama – it might think I was referring to another US president, or perhaps the leader of a company. But using RDFa I could tag the words “The President” with “Barack Obama”. That tag would be visible to machines spidering the page for indexing (resulting in smarter search results), but wouldn’t be shown to users reading the post. In effect, it’s a way to tell search engines about your content without exposing your visitors to extraneous text.”

In addition, sites that provide well-structured metadata have the potential to be much more usable (and useful).  Library web sites, especially OPACs and Resource pages, should include structured information that details the context of the displayed content.  Using microformats in our web sites will benefit everyone involved over time.  As David Peterson notes on the SitePoint blog:

“Now that Google is supporting structured data it is high time to learn how to use this stuff.”

  • Share/Bookmark
Apr 08 2009

Time for Marc to go


Marc was a Good & Loyal Mule but Now It’s Time to Shoot It is a post over on the Future4catalogers blog that does an effective job at explaining why the library community should be focusing on using a new, more powerful (and easier to learn, use, explain, and mashup) metadata structure.

I suspect that part of the problem lies with people who don’t really know what a marc record looks like, and why it is nearly impossible to work with in its native form.  From the essay:

To do anything with a Marc record, it must be disassembled and reconstituted in pieces.  Even the displays we see as Marc workforms require this disassembly and reassembly to make it comprehensible to catalogers.

Most see the nicely formatted row-by-row marc view that can be seen on some library OPACs as well as cataloging software in our ILS platforms.  If you have ever opened a pure marc file in a text editor, you would quickly conclude that locating and understanding information in the record is very challenging, and the thought of editing the record in this form is crazy talk.

If a good and robust metadata format were used instead, then the data could be arranged and edited in a wide variety of ways (including replication of the standard cataloging interface).  Even better, however, is that one can open, view, and edit the record (or even a large group of records) within a text editor (though there are and will be many tools to streamline and simplify the process).

  • Share/Bookmark
May 19 2008

XML in Libraries


Eric Leese Morgan has updated his workshop notes for XML in Libraries : A Workshop.  This is as good an overview of XML for library staff as I have seen anywhere.

found via Catalogablog

  • Share/Bookmark
May 09 2008

APML


APML stands for Attention Profiling Markup Language.  Its purpose is to permit a standardized way to gather and transfer your interests from site to site across the web.  It is built using XML, and is definitely a new technology that may or may not catch on.  It could become an important element of using the web, because of the benefits it offers to users.

For example, Amazon.com tracks what you purchase, what is on your wish list, and even what you view (while logged in).  If you incorporated this into your APML file (which could be stored with an online service, on your computer or flash drive, etc.) your interests could be applied to other APML-compatable websites.

This has the potential, as with much web 2.0 technology, of creating privacy issues and complications.  It also could save users an incredible amount of time and effort, as resources relating to their interests would gain relevance and become much easier to find.  Think of the potential for searching news sites, link services such as Digg, and many other specialized discovery tools.

And yes, as John Fudrow suggests, it has a lot of potential for libraries.  Imagine how our users could benefit from this, especially when you add “suggested by others who liked this” and other social connectivity tools.

  • Share/Bookmark
FireStats icon Powered by FireStats