Re: [IUG] Google Preview Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
At 11:47 AM 12/21/2010, Cynthia Snell wrote:
Does anyone know of a way to add Google's preview library to the bib display?
I believe the script would look something like this:
<script type="text/javascript"
src="http://books.google.com/books/previewlib.js"></script>
<script type="text/javascript">
if (bib_ISBN.length > 0 && bib_ISBN > 0) {
GBS_insertPreviewButtonPopup (bib_ISBN);
}
. . .
Technically, I believe it should work, but I am having a challenge
as to where to put this code. Any assistance would be appreciated.
There are various ways to add Google Book Search to the bib
display. What you have above won't do you any good unless there's
more to the second script element somewhere (and the script element
gets closed) -- you have to define bib_ISBN. But assuming the rest
of the second script is hanging around somewhere, put the two script
elements in bib_display.html wherever you want to see the
button. (Or you can put the first script element (the one that calls
previewlib.js) in the head element (by using the insertag_inhead
wwwoption), and put the second script where you want the button.)
Bob Duncan
~!~!~!~!~!~!~!~!~!~!~!~!~
Robert E. Duncan
Systems Librarian
Editor of IT Communications
Lafayette College
Easton, PA 18042
duncanr at lafayette dot edu
http://library.lafayette.edu/
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.