majax - LibX

Download Report

Transcript majax - LibX

Millennium AJAX
Annette Bailey
University Libraries Virginia Tech
LibX
User
reviews
Faceted
browsing
Tagging
Blogs
Library 2.0
RSS feeds
Wikis
Mashups
May 16, 2007
MAJAX - Annette Bailey
2
Mashups
• Are hybrid web applications
that combine information
drawn from various web
sources
• Simple example:
• A library web page that
includes a news feed
May 16, 2007
MAJAX - Annette Bailey
3
Mashup Example
Library Homepage
Latest
Library
News
Items
May 16, 2007
MAJAX - Annette Bailey
4
Mashup Sources
• RSS Feeds
• Webservices, e.g. Google API,
Amazon API
• How can the III Millennium system
become an information source for
mashups?
• That’s where MAJAX comes in
May 16, 2007
MAJAX - Annette Bailey
5
MAJAX Overview
• Millennium AJAX is software
that allows mixing catalog
data into web pages
•
•
•
•
Freely available from VT
Simple to install & use
No III support required
No plug-in for users to install
May 16, 2007
MAJAX - Annette Bailey
6
New Books List
• Library publishes a list of
newly acquired books every
month
• We would like to include
up-to-the-minute holdings
information in this list
May 16, 2007
MAJAX - Annette Bailey
7
New Books List Demo
New Books List
May 16, 2007
MAJAX - Annette Bailey
9
MAJAX
• Millennium AJAX
• Asynchronous
• Query the catalog without the user having to
wait
• JavaScript
• Run in client’s browser to construct page
content
• And
• XML
• (Really HTML) – comes from a web service:
here, Millennium’s MARC display
May 16, 2007
MAJAX - Annette Bailey
10
Screen Scraping MARC
May 16, 2007
MAJAX - Annette Bailey
11
Course Page Demo
A professor wants to offer a list of
books on his course page, along
with full bibliographic and up-tothe-minute holdings information
about each book
Course Page Demo
• Screen Shot
May 16, 2007
MAJAX - Annette Bailey
13
Installing & Using MAJAX
• To install MAJAX at your
institution, upload two files to your
catalog’s /screens directory:
• majax.js
• majax.html
• To use MAJAX in web pages
• include <script> tag once
• include <span> tags wherever library
catalog information should be
inserted
May 16, 2007
MAJAX - Annette Bailey
14
Course Page HTML
<script type="text/javascript"
src="http://addison.vt.edu/screens/majax.js">
</script>
<span title="i0596002556"
class="majax-harvard-reference majax-newline majax-ebook">
</span>
<span title="i0596002556"
class="majax-showholdings majax-linktocatalog">
</span>
May 16, 2007
MAJAX - Annette Bailey
15
MAJAX Identifiers
• <span title=“IDENTIFIER”
class=“MAJAX-CLASSES”>
</span>
• IDENTIFIER can refer to ISBN,
Bibrecord #, or Book Title
ISBN ‘i’
Bibrecord ‘.b’
Title ‘t’
May 16, 2007
i006073132X
.b2275560
tfreakonomics
MAJAX - Annette Bailey
16
MAJAX
Classes
Holdings Related
majax-showholdings
majax-showholdings-brief
majax-showholdings-div
majax-ebook
Bibliographic
Information
majax-marc-???
majax-marc-???-?
majax-harvard-reference
majax-endnote
majax-endnote-switch
majax-endnote-import
May 16, 2007
Miscellaneous
majax-syndetics-*
majax-linktocatalog
majax-reportfailure
majax-newline
majax-space
MAJAX - Annette Bailey
17
MAJAX Examples (1)
MAJAX class
MAJAX output
majax-harvard-reference
Levitt, Steven D., Dubner, Stephen J.,
2005, Freakonomics : a rogue
economist explores the hidden side of
everything / 1st ed., New York,
William Morrow, xii, 242 p. ;
majax-showholdings-div
Copy 1: available
Copy 2: due 05-10-07
Copy 3: due 07-22-07
majax-marc-050
HB74.P8 L479 2005
May 16, 2007
MAJAX - Annette Bailey
18
MAJAX Examples (2)
MAJAX class
MAJAX output
majax-ebook
[Electronic Book]
majax-marc-050
majax-linktocatalog
HB74.P8 L479 2005
majax-syndetics-vtech
May 16, 2007
MAJAX - Annette Bailey
19
WebBridge Demo
WebBridge Example (1)
majax
resource 1
majax
resource 2
majax
resource 3
May 16, 2007
MAJAX - Annette Bailey
21
WebBridge Example (2)
majax
resource 1
majax
resource 2
majax
resource 3
May 16, 2007
MAJAX - Annette Bailey
22
Install & Use MAJAX
• Add <script> tag to resserv_panel.html
• WebBridge Management interface
• Create 1 or more resources
• Associate hasISBN or hasTitle data
tests
• Embed <span> tags in Link Display
field
May 16, 2007
MAJAX - Annette Bailey
23
Performance
• MAJAX imposes additional load
on your server
• Currently self-limiting to 20 requests
per second per page, which can be
changed.
• To turn MAJAX capabilities off,
simply remove majax.html &
majax.js from the /screens
directory.
May 16, 2007
MAJAX - Annette Bailey
24
Limitations
• MAJAX works only on web pages from
within the same domain as your
Millennium system
• If Millennium runs on addison.vt.edu,
MAJAX can be used on all pages in
*.vt.edu
• www.lib.vt.edu Ok 
• courses.cs.vt.edu Ok 
• livejournal.com Not Ok 
• MAJAX only works on Internet Explorer 6.x
and up and Firefox browsers
• Will fail silently on other browsers
May 16, 2007
MAJAX - Annette Bailey
25
Summary
• MAJAX provides the ability to
include live catalog information in
any webpage on your domain
• Without special server access or
support
• Without requiring end users to install
any plug-ins
• It is easy to use, requiring only
HTML skills
• Free!
May 16, 2007
MAJAX - Annette Bailey
26
Acknowledgements
• Dr. Godmar Back
• Assistant Professor, Computer
Science
May 16, 2007
MAJAX - Annette Bailey
27
Thank you!
http://libx.org/majax/
Questions?