OPAC SMS

This is our adaptation of an idea developed by Adam Brin in Perl and JavaScript, and later adapted by Joshua Kielas for PHP. Credit goes to Rich Ackerman for helping debug the JavaScript.

Please follow instructions posted by Joshua Kielas HERE.

Here are our files -- nsu_sms.zip

Some observations, both from us at NSU and from others on the IUG listserv:

  1. The code looks at the HTML of your bib_display output, searches for the table cell values in your bib items table, and strips out the HTML to build a form where each value taken is organized in the SMS window. It does not actually read record fields. It was a problem for us to show the SMS button feature and label the service as "Text this call number to your cellphone", because it was misleading when you were looking at a record that has no call number assigned (such as an e-book or e-resource). After much trial and error, we just let the feature be there regardless of the record type because it is still a useful thing to text yourself, even if the call number data is not a real call number or is just blank.
  2. More useful info from the list:
    1. [IUG thread] Are you using Adam Brin's SMS code in your OPAC?
    2. [IUG thread] Can't get SMS code to send message
  3. If you are using WebBridge, you may run into this problem --after implementing the SMS code, look a the WebBridge resource table showing in your bibliographic display screens (if you have set it up as such). Check every link to make sure it is still working as usual. If not, this may be why: there is a variable defined as "x" in Adam Brin's original JS code. I kept running into JavaScript errors on our test server and the reasons given by the browser's debugger weren't very telling. I finally realized that the only WebBridge resource ("Worldcat Local" icon) we show on our OPAC bib display was breaking because there is also a variable named "x" in Innovative's /scripts/webbridge.js file.
    The solution to that specific issue was to change every instance on the SMS files of variable "x" to "vmx".