Print

Print


That was one of those "last things" I was going to try, extracting with Javascript/jQuery. Thanks for the code! Good 'Ol regular expressions. I'm sure I can modify it to our needs. 

And thanks everyone else for the tips, recommendations and info on IUG. I did try searching through their list archives a bit. We're going to be switching over to a shared ILS in January of 2013, which is powered by Ex Libris, so if I join IUG it will be a "temporary stay". ;) 


- Gavin 


>>> "Klish, Heather J" <[log in to unmask]> 10/9/2012 12:13 PM >>>
Hi Gavin,

Here's some javascript that grabs the call number.  This code is part of a script that someone wrote (I can't remember who at the moment) to send text messages from the catalog.  You may have to change some of the id names based upon what's being used in your catalog.  Also, there may be another way if you ask on the IUG listserv.

<!cript>
  var f = document.getElementById('bibDetails');
try {
var itms = document.getElementById('bibItems');
var tr = itms.getElementsByTagName('TR');
  for(i = 1; i < tr.length; i++) {
    var x=tr[i].getElementsByTagName('TD');
    if (x.length == 3) {
      var loc = x[0].innerHTML.replace(/(<([^>]+)>|&nbsp;)/ig,"");
      var call = x[1].innerHTML.replace(/(<([^>]+)>|&nbsp;)/ig,"");
      var status = x[2].innerHTML.replace(/(<([^>]+)>|&nbsp;)/ig,"");
    }
}

} catch (e) {
document.getElementById('smsfeatures').style.visibility='hidden';
}

</script>


Heather

- - - - - - - - - - - - - - - - -
Heather Klish
Systems Librarian
University Library Technology
[log in to unmask]
617.627.5853


-----Original Message-----
From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of Gavin Spomer
Sent: Tuesday, October 09, 2012 2:29 PM
To: [log in to unmask]
Subject: [CODE4LIB] Getting The Call Number In bib_display.html On III System

Hello folks,

I'm trying to figure out the III web dev interface in the Millenium java client. What a clunky, rinky-dink interface, IMHO! :)

I want to be able to display an item's call number in bib_display.html so I can feed it to a php script on another web server. It was suggested to me that the token for that was:

   <!--{itemcallno}-->

I tried that on our staging site, but it does not display anything. Specifically, I put in:

   <a href="http://testingserver.cwu.edu/myapp.php?callnum=<!--{itemcallno}-->">TEST-LINK</a>

The link with text "TEST-LINK" displayed, but the callnum parameter wasn't added.

Can anyone point this guy in the right direction?
Gavin Spomer
Systems Programmer
Brooks Library
Central Washington University