Archive for the 'Technology' Category

Bigfoot - spore sighted…

Thursday, March 22nd, 2007

big footI notice with enthusiasm, that the Talis Platform Bigfoot API documentation has been released.

Must clear my schedule… now, where’s my text editor…

A Multi-library Google Map - getlibraries

Wednesday, July 5th, 2006

It’s been quiet here at ITO while I get on with little things like a dissertation. As a reward for days spent reading schema documents, I have been having a fiddle with Google maps and the Silkworm directory from Talis.

Here’s wot I got… getlibraries LibMap - sounds better!
A multi-library google map - the map in action on a real page!

Firstly, there’s one javascript file which when called from a web page using an xhtml script tag will form a query with your parameters and send it to the TPA SPARQL endpoint. the result is fired and recieved at the same time using Dynode style cross-domain scripting method (I didn’t use the dynode script, just the essense of the technique). The Parameters that you can set within the .js file are as follows:

  • key = Talis Api Key
  • identifier = identifier of a libraries collection (with more than one library*) from the Silkworm directory.
  • xsl = the URL to the XSL stylesheet explained next.

*At the moment the script will not cope with a single location, but I’m working on that.

Secondly, there’s one XSLT file which is submitted along with a SPARQL request to the Talis Platform Api (TPA) SPARQL endpoint. This reformats the RDF output into a javascript file that encapsulates the data as a JSON object, invokes a new map container and iterates through the JSON object, showing details for all libraries found by the SPARQL query.

Thirdly - and lastly, there is a small amount of code to go IN your web page, whatever your webpage may be. first is a script tag, which points to getlibraries.js. the second is a DIV tag with an id=”map” attribute. You can also set the height and width attributes to define the size of container that Google Maps will use. More instructions are in the .js file.
And that is it!

the getlibraries.js script writes another script tag that calls the data from the TPA. The javascript file can be edited to include your TPA key, the silkworm identifier for your library and the location of your copy of the XSLT file.

  1. Put the code in your page
  2. Edit the js file
  3. Put the js and xsl files on your server
  4. Job done!

I don’t for a moment think it worthy of the Mashuing Up The Library competition, but give it a go and let me know!

A note on browsers - I have tested this in Firefox 1.5.0.4 and in IE 6. It would be interesting to know if there are any problems with other browsers?

Download here… getlibraries.zip

Technorati Tags: , , , , , ,

google mail

Wednesday, December 14th, 2005

I now have a google mail account, although I’m not sure why. I find it slightly spooky that all my emails can be archived and indexed by people who I don’t really know, in order to serve me with targeted advertising.

But I’m not afraid to at least play with it.

NeedleSearch

Thursday, December 2nd, 2004

I had no idea that NeedleSearch could be so handy!

We have access to a couple of subscription databases, one of which NeedleSearch ties in with effortlessly, the other doesn’t work so well, but that is they way the search is set up, using frames and javascript for links.

But pleased to announce that both the Art College OPAC, and the County OPAC work fine!

The advantage of NeedleSearch is that it cuts out the “opening bookmark” stage of getting to the search page. You can simply select the search engine, add your keyword (multiple fields are also supported) and one click and you are away!

Furl it

Saturday, September 18th, 2004

This is such a good idea. Although I have known about Furl for some time, mostly references through other peoples blogs, I had dismissed it … (you know whats coming) … until now.

I think I had not realised that I had a need for a web page bookmark saving system until the other day. I knew I had found a picture of an old cine projector I had been given, but could I find it again? This prompted me to finally get around to signing up for Furl, and beginning my archive!

If you want to see how far I’ve got - http://www.furl.net/members/sugarmouse

Furl has the added benefit of saving a copy of the page in their cache. This means that even if the link to that really handy page that you only use once in a blue moon dies after a couple of years or so, you will still have a copy.

Marvellous.