October 3, 2010 Mobile Patrons: Better Services on the Go Vincci Kwong and Gary Browning Indiana University South Bend 13 th Annual LITA National Forum
Mobile Internet Usage
Mobile Data Applications Usage
Statistics for Library Website
First Version of Library Mobile Site
Mobile Library Site Homepage Ask a Librarian WorldCat RefWorks Hours Contact Address IU Mobile Schurz Library Homepage
IU Mobile Initiative
Graphic Icon for Mobile
Schurz Library Mobile Interface
Statistics for Library Mobile Website
Mobile Friendly Authentication Remote access to subscription databases is done through OCLC’s EZproxy Authentication and Access software. EZproxy does not have built-in support for mobile devices.
How to make EZproxy Mobile Friendly Incorporate a mobile device detection library?
EZproxy Ticket Authentication 9f428b33e190a %24c &url= omedb.com/ “Ticket authentication allows remote systems to short-lived URLs that EZproxy will automatically recognize as being authorized to login and permit access to a resource with no need for EZproxy to check back with the program that creates the URL.” – OCLC website
Sample PHP code <?php require("ezproxyticket.php"); $ezproxy = new EZproxyTicket(" y.yourlib.org:2048", "shhhh", "someuser"); ?> url(" m")) ?>">Some Database EZproxy user.txt ::Ticket TimeValid 90 MD5 shhhh Expired; Deny expired.htm /Ticket
Central Authentication System (CAS) Central Authentication Service (CAS) is a login service that allows you to access multiple password-protected web systems after logging in once on a central authentication server; this is often referred to as single sign-on.
CAS vs IU CAS Standard CAS response – XML username PGTIOU a9d... IU CAS response – If validation is successful, CAS sends back a two-line response with 'yes' on the first and 'username' on the second.
Connecting Ezproxy with IU CAS 1.Detect mobile or desktop 2.If mobile, set CASSVC to mobile 3.Check with CAS to see if already authenticated 4.If authenticated, display database; otherwise present a login screen
Sample Code – login.php <?php include('mobile_device_detect.php'); if(mobile_device_detect(true,true,true,true,true,true,false,false)){ header("Location: du/~site/cas/casauth.php"); }else{ header("Location: site/cas/casauth.php"); } ?>
Sample Code – casauth.php <?php session_start(); //start session if( isset($_GET['casticket']) ){ //check to see if a ticket has been passed $ticket = $_GET['casticket']; } else { $ticket = ""; }
Sample Code – casauth.php cont. /* * check CAS ticket authenticity and get the user's uid back * the variable $contents will have the string * "ticket ' ' not recognized" if a bad ticket * has been provided. */ $casXML = fopen(" e= $contents = fread($casXML, 1024); fclose($casXML);
Sample Code – casauth.php cont. list($yesno, $netid) = split("\n", $contents, 2); $authok = trim($yesno); $iuid = trim($netid); if ($authok == "no") { header("Location: } else { $_SESSION['auth'] = $iuid; header("Location: } ?>
A Better Idea – Can IU Mobile do it? IU Mobile is already connected to IU CAS Need ability to Check if authenticated Display alternative information if not Restrict to campus level
Yes, IU Mobile Can do it!
Authenticated vs. Not-Authenticated
Sample restriction to South Bend url(" ?>" title="HW Wilson" />
Computer Availability Mobile Webpage
System Requirements Computer Availability Web Server such as Apache or IIS PHP Database such as MySQL Ability to run login and logout scripts
How it works Script run at login updates database Script run at logout updates database Standard html version available at
For mobile, output data as XML <?php foreach ($regions as $region) { $region_id = $region['region_id']; $region_display_name = $region['display_name']; $region_location = $region['location']; $region_mac_status_counts = get_status_counts_for_region($region_id, 'Mac'); $region_pc_status_counts = get_status_counts_for_region($region_id, 'PC'); $total_idle_mac_computers = $region_mac_status_counts['idle']; $total_busy_mac_computers = $region_mac_status_counts['busy']; $total_idle_pc_computers = $region_pc_status_counts['idle']; $total_busy_pc_computers = $region_pc_status_counts['busy']; $total_idle_computers = $total_idle_mac_computers + $total_idle_pc_computers; $total_online_computers = $total_idle_computers + $total_busy_computers; print "<seat lab=\"$region_building $region_location\" building=\"$region_display_name\" availability=\"$total_idle_computers/$total_online_computers\" campus=\" SB\" /> \n”; } ?>
Texting Reference Service
Planning for Mobile Website 1.Needs assessments 2.Integrate with existing library services 3.Project planning 4.Build the site 5.Testing, marketing, launching 6.Keeping up
Library Resources with Mobile Platforms Ebscohost H.W. Wilson PubMed WorldCat Lexis/Nexis Get Cases and Shepardize Fastcase RefWorks Hoovers Encyclopedia Britannica arXiv Browse Factiva IEEE Xplore Westlaw
Mobile Services Offered by Other Libraries SMS notification services Kansas State University Libraries Mobile collections Duke University Mobile instruction Open University Library LibGuides Library tour Temple Universities Libraries University of Illinois at Urbana-Champaign
Resources Mobile Access ile_Access_2010.pdf ile_Access_2010.pdf Detect Mobile Browsers - OCLC Ezproxy - m m CAS - XML Tutorial - AOL Mobile - M-Libraries Success Wiki -
Questions? Feel free to contact us at Vincci Kwong Phone: Gary Browning Phone: