Re: [CODE4LIB] Google Book Search API - JavaScript Query
Tim and David, Thanks for sharing you solutions; the IE problem has been driving me crazy. I've mostly been working on the title browse page of our catalog. Originally I had it working on Firefox, Safari, and IE7 (IE6 worked if I refreshed the page); after some rearrangement of the script, it's now working on IE6 but broken on Safari. This is still proof of concept code and is only on our staging server (http://kentlink.kent.edu:2082/). Try a keyword search and you should see some Google links. Mike -- Michael Kreyche Systems Librarian / Associate Professor Libraries and Media Services Kent State University 330-672-1918 -Original Message- From: Code for Libraries [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hodson Sent: Thursday, March 20, 2008 7:21 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Google Book Search API - JavaScript Query One way I have used to resolve this is to poll the object until it exisits before continuing. function myInit(id){ 13 // if Obj is not defined yet, call this function again until it is. 14 15 if (typeof myObj == undefined){ 16 createScript(); 17 setTimeout(myInit(), 60); 18 return; 19 } 20 // do stuff onlu if myObj is now an object 21 else if (typeof myObj == object){ 22 23 myGo(); 24 return; 25 } HTH Tim 26} On 20/03/2008, David Kane [EMAIL PROTECTED] wrote: HI Folks, We were one of the first libraries to get the GBS API working on our OPAC. Like many OPACs, ours is difficult to modify at times and requires a dynamic insert of a generated (by PHP) JavaScript, which is hosted on a separate server to the OPAC pages. It seems to work fine on most browsers, giving an appropriate link to a full/partial text preview of that work on GBS. I run into a problem with IE6, which means that the function defined in the JavaScript aren't available by the time the script is called at the bottom of the page. You should be able to see a GBS link on most pages, here is an example: http://witcat.wit.ie/search/i?SEARCH=0192833987 The attached image shows you what you should see. If anyone can shed any light on this, it would be appreciated. Thanks and best regards, David Kane Systems Librarian Waterford Institute of Technology Ireland -- Tim Hodson www.informationtakesover.co.uk www.timhodson.co.uk
Re: [CODE4LIB] Google Book Search API - JavaScript Query
I looked into this issue some more and like to share a bit of what I learned. The short answer is: use jQuery (or a library like it.) Thanks, Godmar, for investigating this further and sharing. JQuery will determine when the document is ready and execute your anonymous function then, which is at the earliest possible time. If no hack is known for a particular platform, jQuery falls back to the load handler. If you think about it, that's not something you want to implement or even think about. Amen to that! In fact, I have not had much time to think about it since my last post, but the little bit I did was leading me to pretty much the same conclusion! Mike -- Michael Kreyche Associate Professor Libraries and Media Services Kent State University 330-672-1918
Re: [CODE4LIB] ne.code4lib.org wiki
(By the way, I didn't actually get this email, someone let me know about it -- anyone else sporadically getting code4lib emails?) -b --- Birkin James Diana Programmer, Integrated Technology Services Brown University Library [EMAIL PROTECTED] Most of them have not been getting to me for a month or more. Mike -- Michael Kreyche Associate Professor Libraries and Media Services Kent State University 330-672-1918
Re: [CODE4LIB] character-sets for dummies?
Ken-- You may find a reason to create a normalized stealth field, but I have a couple of suggestions that will probably help you avoid that scenario. 1) Read up a little on the Unicode Normalization Forms (http://unicode.org/reports/tr15/) and convert all your UTF-8 characters to the composed form (NFC). The standard for MARC data is the decomposed form (NFD), but this is a real pain to work with if you like things to sort nicely (at least in MySQL). One way to do this is in perl with Unicode::Normalize. 2) Use a collation other than utf8-bin (here's where you lost your case insensitivity, I think). Try utf8_unicode_ci (ci as in case insensitive). I wish I had written down everything I learned about this stuff, but I didn't--and I keep having to go back and refresh my memory. Mike -- Michael Kreyche Systems Librarian / Associate Professor Libraries and Media Services Kent State University 330-672-1918 -Original Message- From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Ken Irwin Sent: Wednesday, December 16, 2009 1:26 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] character-sets for dummies? Hi all -- thanks for these fabulous replies. I'm learning a lot. Armed with a bit of new knowledge, I've done some tinkering. I think I've solved my original quandaries, and have opened new cans of worms. I have a few more specific questions: 1) It appears that once I switch my MySQL table over from a latin character set to UTF-8, it is not longer case-insensitive (this makes sense based on what I learned from the Joel on Software post). All of the scripting I've done until now takes advantage of the case insensitivity; is there an easy way to keep this case insensitive while in UTF-8? 2) Is there a good/easy way to make the database agnostic about diacritics, so that a search for cafe will also find café The answers to both of these may be convert data to some normalized A-Z field that never displays, but I can only imagine that normalizing even most-Roman-characters-with-diacritics to plain ASCII-style characters can be daunting task. Any advice on these particulars? Thanks, Ken
Re: [CODE4LIB] Cookout in McLean on Saturday? (was Re: [CODE4LIB] Get together in DC during ALA?)
Since no one else has asked, does Monday the 25th mean Monday (the 28th) or Friday (the 25th). Mike -Original Message- From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Joe Hourcle Sent: Thursday, June 24, 2010 3:32 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Cookout in McLean on Saturday? (was Re: [CODE4LIB] Get together in DC during ALA?) On Thu, 24 Jun 2010, Schwartz, Raymond wrote: What is RFD? A restaurant in DC. Here's what was sent out the last time: -Original Message- From: Jonathan Rochkind [mailto:rochk...@jhu.edu] Sent: Monday, June 18, 2007 11:33 AM To: CODE4LIB@listserv.nd.edu Subject: [CODE4LIB] Informal get together Monday of ALA Some of us have spontaneously decided to have an informal Code4Lib get together the Monday of ALA in DC. We will meet on Monday the 25th of June at 8pm, at RFD, which reccomended by anarchivist, which appears to be a pub and Washington's Largest Multi-Tap. It's located just a couple blocks from the convention center. http://www.lovethebeer.com/rfd.html Some of the Talis crew have said they will be there. I will be there. Anarchivist and edsu have said they'll be there. (I forget if I just made up edsu). Please join us! Any and everyone interested in meeting code4lib folks or other assorted library technologists and library geeks and hangers on are welcome. No, I wasn't planning on making a reservation or anything. No, I have no idea how we'll all find each other. I think it'll work out. Jonathan I assumed we'd go with the same ast last time -- Monday, 8pm, just show up and we'll figure something out. (it worked out okay last time). -Joe Oh ... and for those from Tucson, it might be the largest multi-tap in DC, but it's only like 1/2 of what 1702 has)
Re: [CODE4LIB] Listserv help desperately needed!
I haven't seen this problem, but I guess I haven't sent a message to the list recently. We'll see what happens when this goes out. We've been having a similar problem with other listserv lists (autocat and oclc-cat) since the beginning of March. We just stopped getting mail from these lists but are still subscribed. Our mail admins have been working on it in conjunction with counterparts from the hosting institutions but no resolution as yet. Mike -- Michael Kreyche Systems Librarian / Associate Professor University Libraries Kent State University 330-672-1918 -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of LeVan,Ralph Sent: Monday, April 11, 2011 3:32 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] Listserv help desperately needed! When an OCLC staff member sends a message to this list (and possibly all lists) the rest of us in the company don't see the message. Worse yet, the company email system rejects the email to us and the sending listserv eventually gets tired of that and unsubscribes us from the list. We can't be the only ones with this problem. Does anyone have a suggestion on how we fix it? Thanks! Ralph
Re: [CODE4LIB] Google Book Search and Millennium
I've been through a couple iterations of this in our III catalog (http://kentlink.kent.edu). Current version uses jscript and is much cleaner than my original effort. I've sent out instructions to a few people but never got around to putting it in the IUG Clearinghouse or elsewhere. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Gabriel Farrell Sent: Monday, April 25, 2011 11:36 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Google Book Search and Millennium Nice work, Patrick. You reminded me I never mentioned on this list the III Refworks Export script I put up on GitHub (see the code for props to those who did most of the work). It's at https://github.com/gsf/refworksexport. Maybe we should start collecting these under a iiihacks GitHub org. On Mon, Apr 25, 2011 at 5:48 PM, Patrick Berry pbe...@gmail.com wrote: Hi, We're working on integrating links to Google Books from Millennium. I'm not a fan of rewritting things from scratch, so I've borrowed heavily from those that already have this working. Props to the gbsclasses.js folks, MSU, and Temple. One thing I noticed is that IE 9 (perhaps earlier versions as well) do not work with the code in use at MSU and Temple on the bib_display.html templates. I've done some clean-up on a static example: http://www.csuchico.edu/~pberry/google-books/ Questions? Comments? DMCA notices? Pat in Chico
Re: [CODE4LIB] opening a pdf file
Eric, I have to answer mostly no to your question. I can open it with the Adobe reader on my Android tablet, but the pages are too blurred to read. It's a little (don’t take this literally) like an interlaced image when only the first half of the lines are displayed. I've never run into this before. When I open it with Documents to Go, each page is blank with a red X across it. I've run into occasional pages like this with large graphical PDF files (most often with one that's 77 Mb), but after waiting maybe 5 seconds the pages render fine. With your file, the pages are all like that and waiting doesn't help. Whatever the problem, it's not likely to be the size of the file. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Eric Lease Morgan Sent: Monday, October 03, 2011 9:58 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] opening a pdf file Are any of you able to open the following URL with an Android-based tablet device: http://dh.crc.nd.edu/sandbox/cyl/corpus/canarybird00schm.pdf I have harvested about 60 PDF documents from the Internet Archive, and I created a rudimentary tablet-based interface to the collection here: http://dh.crc.nd.edu/sandbox/cyl/catalog/ Using my desktop machine I am able to download and view the PDF documents found in the catalog, but I am unable to view them on my iPad nor my iPhone. G… I've tried many different PDF viewers on my iPad and iPhone, all to no avail. I'm wondering whether or not this is a iOS thing or if there is something wrong with my PDF files. Please tell me what your experience is. -- Eric Morgan University of Notre Dame
Re: [CODE4LIB] opening a pdf file [diva]
I just installed EBookDroid (AFAICT the latest and greatest version of VuDroid) from the Android Market and tried it on the color version of Eric's canary file. It immediately loads numbered blank pages, then starts rendering the current page, which takes about 20 seconds. Previously rendered pages disappear pretty quickly after scrolling off of them. I works pretty snappily on other files and looks like it could turn out to be my PDF reader of choice. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Tom Keays Sent: Monday, October 03, 2011 3:33 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] opening a pdf file [diva] Another idea, if you are looking for an app-based rather than web-based reader is VuDroid, which supports both PDF and DjVu formats. http://code.google.com/p/vudroid/ I suggest it, not because I use it but because, at least in the Open Library version of the book's record, http://openlibrary.org/books/OL7169556M/ DjVu is listed as a streaming format. If I had an Android, I would give it a try. For iOS, there's DjVu reader that seems pretty decent. http://xzonesoftware.com/products/xdjvu I may check it out later tonight. Tom
Re: [CODE4LIB] Availability of data-enabled temporary SIM cards
Based on past experience with T-Mobile I would check this out before buying it. I'm not sure the data will work on a non-T-Mobile phone. And if it does work on your own phone you might only get EDGE speed. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Dhanushka Samarakoon Sent: Thursday, December 08, 2011 10:07 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Availability of data-enabled temporary SIM cards This is the best non-contract data plan I have seen so far. 5GB for $30 on T-mobile http://www.walmart.com/ip/Tmobile-30-Wireless-Airtime-Card/15443357 A SIM card should be around $7 On Thu, Dec 8, 2011 at 4:45 AM, Kåre Fiedler Christiansen k...@statsbiblioteket.dk wrote: Hi all, Sorry for being semi-off-topic, but obviously you're the right bunch of people to know this... We're a bunch of Danes visiting the Code4Lib conference in Seattle. But the prospect of a full week being offline on my trusted Android phone is scary. And the price of international data roaming is simply scary. So I was wondering if any US carriers are selling data-enabled SIM cards, at a price that would be reasonable for a week's usage, and which are also available for visiting tourists? Any input welcome. Thanks. Best, Kåre
Re: [CODE4LIB] Availability of data-enabled temporary SIM cards
I meant phone purchased from T-Mobile. Some devices they don't sell are blocked from using the prepaid data service. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Hogue Melanie Sent: Thursday, December 08, 2011 1:33 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Availability of data-enabled temporary SIM cards My phone is an unlocked Blackberry and it works with the T-Mobile SIM card set up for prepaid service. I do normally use EDGE with wi-fi however - even though my BB can use GSM. I'm not sure how I am connecting when I buy the daily data pass. If he puts a different SIM card in, wouldn't his phone technically be a T-Mobile phone? Melanie Amy Hogue Manager of Online Resources Reports Chattanooga-Hamilton County Bicentennial Library 423-757-5114 From: Code for Libraries on behalf of KREYCHE, MICHAEL Sent: Thu 12/8/2011 11:13 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Availability of data-enabled temporary SIM cards Based on past experience with T-Mobile I would check this out before buying it. I'm not sure the data will work on a non-T-Mobile phone. And if it does work on your own phone you might only get EDGE speed. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Dhanushka Samarakoon Sent: Thursday, December 08, 2011 10:07 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Availability of data-enabled temporary SIM cards This is the best non-contract data plan I have seen so far. 5GB for $30 on T-mobile http://www.walmart.com/ip/Tmobile-30-Wireless-Airtime-Card/15443357 A SIM card should be around $7 On Thu, Dec 8, 2011 at 4:45 AM, Kåre Fiedler Christiansen k...@statsbiblioteket.dk wrote: Hi all, Sorry for being semi-off-topic, but obviously you're the right bunch of people to know this... We're a bunch of Danes visiting the Code4Lib conference in Seattle. But the prospect of a full week being offline on my trusted Android phone is scary. And the price of international data roaming is simply scary. So I was wondering if any US carriers are selling data-enabled SIM cards, at a price that would be reasonable for a week's usage, and which are also available for visiting tourists? Any input welcome. Thanks. Best, Kåre
Re: [CODE4LIB] Availability of data-enabled temporary SIM cards
Nope, I really meant that some unlocked devices will work fine on T-Mobile's voice network but T-Mobile is blocking the data service on them. I have one such device, the Huawei S7, a 7 Android phone/tablet. When it first came out a little over a year ago people were using it on T-Mobile's data network, then one day a few months later it just quit working. For a time T-Mobile was also blocking data on jailbroken/unlocked iPhones (I have one of those, too), but then thought better of it and reversed that policy. I think the same may hold true for ATT, but it's prices are outrageous anyway. I'm not up to date on this topic, I just wanted to warn international visitors that swapping out SIM cards may not work as smoothly here as it does, say, in Europe where I've had really good experiences. I've pretty much given up on ATT and T-Mobile for prepaid data in the US. I was able to get a good deal on a Virgin Mobile MiFi hotspot and that's what I use when I'm travelling for more than a couple of days and wifi is not readily available. But that's probably not a cost-effective solution for short-term international visitors here. Mike -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Cary Gordon Sent: Saturday, December 10, 2011 9:07 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Availability of data-enabled temporary SIM cards I think that Some devices they don't sell are blocked from using the prepaid data service. would mean that those phones are locked by definition. Cary On Fri, Dec 9, 2011 at 6:31 PM, Kyle Banerjee baner...@uoregon.edu wrote: On Thu, Dec 8, 2011 at 1:50 PM, KREYCHE, MICHAEL mkrey...@kent.edu wrote: I meant phone purchased from T-Mobile. Some devices they don't sell are blocked from using the prepaid data service. Meaning an unlocked phone can be used for calls but not data? Weird. You should be able to use data on a properly unlocked phone. If you couldn't do that, you'd think that the people who root their phones and drop in a new ROM wouldn't be able to use service. I love TMO, but I wouldn't just go for the cheapest service. Check the frequencies that your phone handles and of the carrier you plan to use. Edge speeds really suck, particularly if you're tethering, and it's worth dropping a bit more coin for something that actually works. kyle -- Cary Gordon The Cherry Hill Company http://chillco.com