WEB2 developments at the National Széchényi Library
1. WEB2 developments at theWEB2 developments at the
National Széchényi LibraryNational Széchényi Library
ADLUG Users Group MeetingADLUG Users Group Meeting
Venice, 29-31 October, 2008Venice, 29-31 October, 2008
ÁdámÁdám HorváthHorváth
NSZLNSZL
2. 2 WEB2 developments at the National Széchényi
ContentsContents
WEB2WEB2
Integrating other services into LibriVisionIntegrating other services into LibriVision
– Link serviceLink service
– Bookmark serviceBookmark service
– PermalinkPermalink
– Google Cover PageGoogle Cover Page
– Map integrationMap integration
Integrating LibriVision into other servicesIntegrating LibriVision into other services
– Microformat : Zotero – COinSMicroformat : Zotero – COinS
– OpenSearchOpenSearch
– Quick Search formQuick Search form
– WidgetsWidgets
– LibriMonkeyLibriMonkey
4. 4 WEB2 developments at the National Széchényi
What is WEB2?What is WEB2?
WEB2WEB2
– Loose definitionLoose definition
– Linking services existing on the webLinking services existing on the web
7. 7 WEB2 developments at the National Széchényi
The purpose of the link serviceThe purpose of the link service
To show if a given document in the hit listTo show if a given document in the hit list
has an electronic version in thehas an electronic version in the
• Hungarian Electronic Library,Hungarian Electronic Library,
• National Digital ArchiveNational Digital Archive (NDA)(NDA),,
• The European LibraryThe European Library (TEL)(TEL),,
• GoogleBooksGoogleBooks
8. 8 WEB2 developments at the National Széchényi
The purpose of the link serviceThe purpose of the link service
To show if a given document in the hit listTo show if a given document in the hit list
can be bought in an online bookshop or incan be bought in an online bookshop or in
a second-hand bookshopa second-hand bookshop
• Three Hungarian online bookshopsThree Hungarian online bookshops
• One Hungarian online second-hand bookshopOne Hungarian online second-hand bookshop
• AmazonAmazon
9. 9 WEB2 developments at the National Széchényi
The purpose of the link serviceThe purpose of the link service
To show if a given document in the hit listTo show if a given document in the hit list
has a translationhas a translation
• Two Hungarian online serviceTwo Hungarian online servicess
16. 16 WEB2 developments at the National
The technologyThe technology
Two partsTwo parts
– OpenUrl creatorOpenUrl creator
– OpenUrl resolverOpenUrl resolver
17. 17 WEB2 developments at the National
The OpenUrl creatorThe OpenUrl creator
XSLTXSLT
Creates OpenUrl 0.1Creates OpenUrl 0.1
Every OpenUrl document type is handledEvery OpenUrl document type is handled
18. 18 WEB2 developments at the National
OpenUrl resolverOpenUrl resolver
Java servletJava servlet
– XML parameter filesXML parameter files
Open serviceOpen service
– Anyone can use it: the base address is publicAnyone can use it: the base address is public
• http://viola.oszk.hu:8080/sokk/OpenURL_Servlethttp://viola.oszk.hu:8080/sokk/OpenURL_Servlet
19. 19 WEB2 developments at the National
OpenUrl resolverOpenUrl resolver
Targets can beTargets can be
– SRU (TEL, NDA)SRU (TEL, NDA)
– Webservice (Amazon)Webservice (Amazon)
– HTML (Google Books, translation services, HungarianHTML (Google Books, translation services, Hungarian
online bookshops)online bookshops)
New targets can be added in different waysNew targets can be added in different ways
– SRU, WebserviceSRU, Webservice
• Via XML parameter filesVia XML parameter files
– HTML pagesHTML pages
• Needs special development and maintenanceNeeds special development and maintenance
20. 20 WEB2 developments at the National
OpenUrl resolverOpenUrl resolver
PolicyPolicy
– Tries to find the same edition as displayed inTries to find the same edition as displayed in
the LibriVision hit listthe LibriVision hit list
– In case of bookshops it shows the availabilityIn case of bookshops it shows the availability
– In case of online documents it shows theIn case of online documents it shows the
online document immediately (e.g. skips theonline document immediately (e.g. skips the
hit page in TEL, NDA, Google Books)hit page in TEL, NDA, Google Books)
– The icons of the services are links to theThe icons of the services are links to the
search page of the servicessearch page of the services
25. 25 WEB2 developments at the National
Bookmark serviceBookmark service
Based on our LibriUrl serviceBased on our LibriUrl service
SourceSource
– addthis.comaddthis.com
LanguageLanguage
– JavascriptJavascript
Integration into LibriVisionIntegration into LibriVision
– XSLTXSLT
27. 27 WEB2 developments at the National
PurposePurpose
To be able to copy and paste the URL of aTo be able to copy and paste the URL of a
given bibliographic record in LibriVision togiven bibliographic record in LibriVision to
wherever you wantwherever you want
31. 31 WEB2 developments at the National
Permalink further developmentPermalink further development
Using CoolUriUsing CoolUri
CoolUri is a W3C recommendationCoolUri is a W3C recommendation
CoolUri characteristicCoolUri characteristic
– ShortShort
– PermanentPermanent
– Ease to maintainEase to maintain
32. 32 WEB2 developments at the National
Permalink further developmentPermalink further development
CoolUri exampleCoolUri example
– http://nektar.oszk.hu/bib/927799http://nektar.oszk.hu/bib/927799
Instead of this one:Instead of this one:
– http://link.oszk.hu/libriurl.php?http://link.oszk.hu/libriurl.php?
LN=hu&DB=OSZK&SRY=an&SRE=0000009277LN=hu&DB=OSZK&SRY=an&SRE=0000009277
9999
37. 37 WEB2 developments at the National
TechnologyTechnology
Based on the open Google Books CoverBased on the open Google Books Cover
Page servicePage service
– JavascriptJavascript
– One can choose which page of Google BooksOne can choose which page of Google Books
will be shownwill be shown
– The search is based on ISBNThe search is based on ISBN
Implementation at NSZLImplementation at NSZL
– XSLT and JavascriptXSLT and Javascript
– We go to the „About this book” pageWe go to the „About this book” page
39. 39 WEB2 developments at the National
The aimThe aim
Bibliographic records contain manyBibliographic records contain many
geographical informationgeographical information
– City names in the publisher fieldCity names in the publisher field
– Geographical keywordsGeographical keywords
– Library addresses in a union catalogueLibrary addresses in a union catalogue
– Coordinates of mapCoordinates of mapss
It would be nice to show these on a mapIt would be nice to show these on a map
NSZL has already started to develop thisNSZL has already started to develop this
functionality (not in production yet)functionality (not in production yet)
44. 44 WEB2 developments at the National
About ZoteroAbout Zotero
„„Zotero is a free, open source extensionZotero is a free, open source extension
for the Firefox browser, that enables usersfor the Firefox browser, that enables users
to collect, manage, and cite research fromto collect, manage, and cite research from
all types of sources from the browser. It isall types of sources from the browser. It is
partly a piece of reference managementpartly a piece of reference management
software, used to manage bibliographiessoftware, used to manage bibliographies
and references when writing essays andand references when writing essays and
articles.”articles.”
45. 45 WEB2 developments at the National
About ZoteroAbout Zotero
Permalink of the Zotero article in WikiPermalink of the Zotero article in Wiki
http://en.wikipedia.org/w/index.php?http://en.wikipedia.org/w/index.php?
title=Zotero&oldid=242604788title=Zotero&oldid=242604788
46. 46 WEB2 developments at the National
About ZoteroAbout Zotero
On many major research websites such asOn many major research websites such as
Google Scholar, Amazon.com, WikipediaGoogle Scholar, Amazon.com, Wikipedia
and even NSZL’s Digital Library andand even NSZL’s Digital Library and
LibriVision, Zotero detects when a book,LibriVision, Zotero detects when a book,
article, or other resource is being viewedarticle, or other resource is being viewed
and with a mouse click finds and savesand with a mouse click finds and saves
the full reference information to a localthe full reference information to a local
file.file.
47. 47 WEB2 developments at the National
About ZoteroAbout Zotero
Provided that you have alreadyProvided that you have already
implemented the COinS microformat inimplemented the COinS microformat in
youryour HTMLHTML pagespages
48. 48 WEB2 developments at the National
About COinSAbout COinS
OpenURL ContextObjects embedded inOpenURL ContextObjects embedded in
the HTML “span” tagthe HTML “span” tag
It is a microformatIt is a microformat
A kind ofA kind of semantic web manifestationsemantic web manifestation
49. 49 WEB2 developments at the National
COinS at NSZLCOinS at NSZL
<span class="Z3988" title="ctx_ver=Z39.88-2004<span class="Z3988" title="ctx_ver=Z39.88-2004
&rft.source=OSZK&rft.source=OSZK
&rft_val_fmt=info&rft_val_fmt=info::ofiofi//fmtfmt::kevkev::mtxmtx::bookbook
&rft_id=http://link.oszk.hu/libriurl.php?&rft_id=http://link.oszk.hu/libriurl.php?
LN=hu&DB=any&SRY=an&SRE=000000927799LN=hu&DB=any&SRY=an&SRE=000000927799
&rft.genre=book&rft.genre=book
&rft.aufirst=John&rft.aufirst=John
&rft.aulast=Richetti&rft.aulast=Richetti
&rft.isbn=0-415-00950-2&rft.isbn=0-415-00950-2
&rft.title=The English novel in history, 1700-1780&rft.title=The English novel in history, 1700-1780
&rft.date=1999&rft.date=1999
&rft.pages=290&rft.pages=290
&rft.pub=Routledge&rft.pub=Routledge
&rft.place=London&rft.place=London
&bici=aaaa"></span>&bici=aaaa"></span>
50. 50 WEB2 developments at the National
NSZL’s LibriVision in ZoteroNSZL’s LibriVision in Zotero
DemonstrationDemonstration
55. 55 WEB2 developments at the National
About OpenSearchAbout OpenSearch
What is OpenSearchWhat is OpenSearch
– Collection of technologies that allowCollection of technologies that allow
publishing of search results in a formatpublishing of search results in a format
suitable for syndication and aggregation.suitable for syndication and aggregation.
– It is a way for websites and search engines toIt is a way for websites and search engines to
publish search results in a standard andpublish search results in a standard and
accessible format.accessible format.
Website of OpenSearchWebsite of OpenSearch
– http://www.opensearch.org/http://www.opensearch.org/
56. 56 WEB2 developments at the National
About OpenSearchAbout OpenSearch
ComponentsComponents
– Server that publishes the search methodServer that publishes the search method
• Anyone who implements OpenSearchAnyone who implements OpenSearch
– Client that reads the server dataClient that reads the server data
• MS Internet ExplorerMS Internet Explorer
• FirefoxFirefox
57. 57 WEB2 developments at the National
About OpenSearchAbout OpenSearch
Two main featuresTwo main features
– Syndicating the searchSyndicating the search
– Suggesting search termsSuggesting search terms
58. 58 WEB2 developments at the National
About OpenSearchAbout OpenSearch
The server side componentThe server side component
– „„Link rel”Link rel”
in the head of an HTML pagein the head of an HTML page
<link rel="search"<link rel="search"
href="http://lvtest.ad.oszk.hu/opensearch.xml"href="http://lvtest.ad.oszk.hu/opensearch.xml"
type="application/opensearchdescription+xmltype="application/opensearchdescription+xml
" title="NEKTÁR keresés" />" title="NEKTÁR keresés" />
59. 59 WEB2 developments at the National
About OpenSearch at NSZLAbout OpenSearch at NSZL
The server side componentThe server side component
– OpenSearch XMLOpenSearch XML
<?xml version="1.0" encoding="UTF-8" ?><?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription<OpenSearchDescription
xmlns="http://a9.com/-/spec/opensearch/1.1/">xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>NEKTÁR Keresés</ShortName><ShortName>NEKTÁR Keresés</ShortName>
<InputEncoding>UTF-8</InputEncoding><InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" method="get"<Url type="text/html" method="get"
template="template="http://link.oszk.hu/libriurl.php?http://link.oszk.hu/libriurl.php?
LN=hu&DB=any&SRY=bk&SRE={searchTerms}LN=hu&DB=any&SRY=bk&SRE={searchTerms}" />" />
</OpenSearchDescription></OpenSearchDescription>
60. 60 WEB2 developments at the National
About OpenSearch at NSZLAbout OpenSearch at NSZL
Implemented OpenSearch featuresImplemented OpenSearch features
– Syndicating the searchSyndicating the search
FunctionalityFunctionality
– OpenSearch access to both the Hungarian andOpenSearch access to both the Hungarian and
English pages of LibriVisionEnglish pages of LibriVision
68. 68 WEB2 developments at the National
What is a QuickSearch formWhat is a QuickSearch form
Searching in LibriVision from a specificSearching in LibriVision from a specific
HTML page without logging in toHTML page without logging in to
LibriVisionLibriVision
It is based on the LibriUrl serviceIt is based on the LibriUrl service
– http://link.oszk.hu/libriurl.php?http://link.oszk.hu/libriurl.php?
LN=en&DB=oszk&SRY=bk&SRE=englishLN=en&DB=oszk&SRY=bk&SRE=english
novel in historynovel in history
74. 74 WEB2 developments at the National
What is new?What is new?
The design of the formThe design of the form
We made it easily insertable into HTMLWe made it easily insertable into HTML
pagespages
– Libraries’ homepagesLibraries’ homepages
– BlogsBlogs
– Personal homepagesPersonal homepages
79. 79 WEB2 developments at the National
What is a widgetWhat is a widget
Small applications that can be insertedSmall applications that can be inserted
into personalised startpages like Netvibes,into personalised startpages like Netvibes,
iGoogle, My Yahoo!, Microsoft Live, andiGoogle, My Yahoo!, Microsoft Live, and
even into social networking siteeven into social networking sitess likelike
FacebookFacebook
Three „standards”Three „standards”
– UWAUWA
– NetvibesNetvibes
– FacebookFacebook
80. 80 WEB2 developments at the National
LibriVision widgetLibriVision widget
For all three standardsFor all three standards
The search is made via our SRU/Z39.50The search is made via our SRU/Z39.50
gateway (yazproxy)gateway (yazproxy)
The short hit list appears in the widgetThe short hit list appears in the widget
Every line is a link to the LibriVisionEvery line is a link to the LibriVision
extended viewextended view
Can be made available in the startpagesCan be made available in the startpages
from the NSZL websitefrom the NSZL website
88. 88 WEB2 developments at the National
What is LibriMonkeyWhat is LibriMonkey
LibriMonkey is a GreasemonkeyLibriMonkey is a Greasemonkey
Greasemonkey is a Firefox extensionGreasemonkey is a Firefox extension
– Allows you to change the HTML pageAllows you to change the HTML page
displayed in Firefoxdisplayed in Firefox
LibriMonkey changeLibriMonkey changess every ISBN numberevery ISBN number
in a page to a link to the document inin a page to a link to the document in
LibriVision provided that LibriVisionLibriVision provided that LibriVision
contains that documentcontains that document