SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 72 | Next

Raymond Yee

"Pro Web 2.0 Mashups: Remixing Data and Web Services"

Invoking the LibraryLookup bookmarklet to look up Foundations of Ajax at the BPL.
(Software copyright Innovative Interfaces, Inc. All rights reserved.)
How Does This Mashup Work?
The LibraryLookup bookmarklet looks for an ISBN (or ISSN) in the URL of the book-related
site to identify the book you want to find. The bookmarklet does the following:
1. It extracts an ISBN from the URL of the library catalog.
2. It repackages the ISBN in a new URL to look up that book in your library catalog.
CHAPTER 1 ?–  LEARNING FROM SPECIFIC MASHUPS 17
How Can This Mashup Be Extended?
This bookmarklet has some limitations. If you want to query multiple libraries in your area,
you might find it tedious to create the bookmarklet for each of these libraries. One approach is
to modify the bookmarklet to send ISBNs to the OCLC Open WorldCat catalog. Here??™s the corresponding
bookmarklet:
javascript:var%20re=/([\/-]|is[bs]n=)(\d{7,9}[\dX])/i;
if(re.test(location.href)==true){var%20isbn=RegExp.$2;
void(win=window.open('http://worldcatlibraries.org/wcpa'+'/isbn/'+isbn,
'LibraryLookup','scrollbars=1,resizable=1,width=575,height=500'))}
There is a deeper limitation of the LibraryLookup bookmarklet, which you can see through
the following example. If you use the BPL bookmarklet to see whether Czesl??
aw Mil??
osz??™s New
and Collected Poems: 1931??“2001 is in the library by first looking it up at Amazon and finding
a paperback version at http://www.


Pages:
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84