What’s This? Adding QR Codes to the Library Catalog
Benjamin Rawlins
Kentucky State University
Overview
• What are QR codes?
• Uses Outside of Libraries
• Adding QR codes to the Library Catalog
• Additional Uses at Kentucky State University
Poll
•http://www.polleverywhere.com/multiple_choice_polls/MTYxMDI4MjI3
What are QR codes?
• QR, Quick Response, codes are two dimensional barcodes that can be scanned with a mobile device that has a camera. Once the code is scanned the device is prompted to load a webpage, display text, or other data contained in the code.
• QR codes were first created by Denso-Wave, a Toyota subsidiary, in 1994 as a way to track manufactured parts. Denso-Wave holds the patent rights for QR codes, but instead of exercising them they decided to make the technology freely available.
Why QR Codes are Unique
• Unlike conventional barcodes that can only store information in a horizontal manner, QR codes can store information both horizontally and vertically.
• Conventional barcodes can typically store between 20 to 40 characters.
• QR codes can store up to a maximum of 7,089 characters
Uses Outside of Libraries
Duncan Hines
Grammy Awards
Best Buy
New York City
• 2,200 NYC Department of Sanitation Trucks Will Feature NYC Media Quick Response (QR) Codes Linking to a “How to Recycle” Video
Adding QR Codes to the Library Catalog
What’s This?
The Coding
• To get both features 2 files were edited• displayFacets.xsl
• local_callSearch.xsl• Text me this call number feature
• Renamed local_qrCode.xsl
The Coding
• One file was edited to get this feature• displayFacets.xsl
The Coding
<xsl:variable name="bibId" select="//@bibId"/>
<!-- QR Code --><xsl:variable name="qrCode">http://qrcode.kaywa.com/img.php?s=5&d=http%3A%2F%2Fkysu.kyvl.org%2Fvwebv%2FholdingsInfo%3FbibId%3D<xsl:value-of select="$bibId"/></xsl:variable><!-- End QR Code -->
<!-- QR Code Begin --><div style="float:left;width: 120px; text-align:center; border:3px solid #000;margin: 0 10px 00;padding:10px;" class="googleBooks"><b>QR code:</b><br/><img src="{$qrCode}" width="102" height="102" alt="qrcode" /><br /><a href="http://kysu.kyvl.org/qr.html" target="_new">What's this?</a></div> <!-- QR Code End -->
The Coding
• Two files edited for ‘Get Info in a QR Code’ feature• displayFacets.xsl
• Copied code local_callSearch.xsl• Renamed
local_qrCode.xsl
The Coding for ‘Get Info in a QR Code’
Local_callSearch.xsl<xsl:attribute name="href">http://kysu.kyvl.org/voy2sms.php?locationhttp://kysu.kyvl.org/voy2sms.php?location=<xsl:value-of select="$location"/>&callnum=<xsl:value-of select="$callnum2"/>&titlename=<xsl:value-of select="$titlename2"/></xsl:attribute>>Text me this call numberText me this call number</a>
Local_qrCode.xsl<xsl:attribute name="href">http://qrcode.kaywa.com/img.php?s=5&dhttp://qrcode.kaywa.com/img.php?s=5&d=<xsl:value-of select="$titlename2"/>"/><xsl:text>%0D%0A</xsl:text> <xsl:text>%0D%0A</xsl:text> <xsl:value-of select="$location"/><xsl:text>%0D%0A</xsl:text> <xsl:text>%0D%0A</xsl:text> <xsl:value-of select="$callnum2"/><xsl:text>%0D%0A</xsl:text> <xsl:text>%0D%0A</xsl:text> </xsl:attribute> Get info in a QR CodeGet info in a QR Code</a></a>
dispalyFacets.xsl<xsl:include href="./local_qrCode.xsl"/>
<div id="txtMe"><xsl:call-template name="recordCallQr"/></div>
Why Single Out QR Code Features?
Additional Uses at KSU
Mobile Services Booklet
Mobile Website Flyer
Library Trading Cards
Further Reading
• Hampton, Dantrea, Amanda Peach, and Benjamin Rawlins. "Reaching Mobile Users with QR Codes." Kentucky Libraries 75.2 (2011): 6-10. Print.
Questions?
Thank You