Extending Jon Udall’s LibraryLookup bookmarklet

I routinely use three different public library systems (Los Gatos, San Jose, and Santa Clara County). Needless to say, searching all of them for a book is a real pain.

But today at lunch, a friend reminded me of Jon Udall’s “LibraryLookup” bookmarklet, which worked wonderfully, but still required three searches to check all three libraries. So I decided to extend the bookmarklet to do the work for me, and here’s the result:


javascript:var%20re=/([\/-]|is[bs]n=)(\d{7,9}[\dX])/i;if(re.test(location.href)==true){var%20isbn=RegExp.$2;void(win=window.open('http://146.74.92.11'+'/ipac20/ipac.jsp?index=ISBNEX&term='+isbn,'Santa Clara','scrollbars=1,resizable=1,location=1,width=575,height=500'));void(win=window.open('http://64.204.128.44'+'/ipac20/ipac.jsp?index=ISBNEX&term='+isbn,'Los Gatos','scrollbars=1,resizable=1,location=1,width=575,height=500'));void(win=window.open('http://mill1.sjlibrary.org/search/?searchtype=i&searchscope=1&searcharg='+isbn,'San Jose','scrollbars=1,resizable=1,location=1,width=575,height=500'));}

I’m sure there’s some easy optimization to get rid of all of the repetition in the JavaScript, but I’m lazy.

What I do wish I could do is have the bookmarklet open the results in tabs instead of popup windows, but I don’t think that’s possible without turning this into a Greasemonkey script or a real XUL plugin, and I’m lazy.

But if someone else has done it….

WorldCat would, of course, be a better solution, but it doesn’t seem to include the Los Gatos library (yet, anyway).

Gutsy Ghastliness

I brought home my old Thinkpad T41p from work for a few days; I had wiped out its disk in preparation for giving it to someone else, and so I had to install a new OS. My first plan was just to install Windows XP, but I didn’t have an OEM disk nearby, so I couldn’t use the license key which came with the machine.

So I decided to go the Ubuntu route. I had a 7.04 CD on hand, which installed with no problems, and then I upgraded to 7.10. That was all in the office, connected to a wired Ethernet.

But I wanted to be able to use the machine on my wireless LAN at home (and elsewhere). Using Network Manager and typing in my preshared WPA key didn’t work. And I tried it many, many times.

Eventually, I found wieman01’s OWTO: Wireless Security – WPA1, WPA2, LEAP, etc., which worked wonderfully well — I am up and running on my wireless right now.

I don’t know how easy it’ll be to set things up to connect to an old WEP network, which was my real goal in bringing this beast home for a few days, but I’m sure it can be done.

I do wish I knew why Network Manager didn’t do the job, though. Suggestions welcome.