]> git.evergreen-ils.org Git - Evergreen.git/commit
TPAC: Make Google Books Preview depend on Dojo
authorDan Scott <dscott@laurentian.ca>
Wed, 20 Feb 2013 16:37:08 +0000 (11:37 -0500)
committerBen Shum <bshum@biblio.org>
Thu, 21 Feb 2013 22:46:40 +0000 (17:46 -0500)
commitdde1d0e14ef7d13eb66797208ff34917df926d44
tree219461f0d006607abb4ad033e220e797c8b7cacb
parent6c4c15cf710cae0bb7af2ff79fb768bb4347a54c
TPAC: Make Google Books Preview depend on Dojo

It would be possible, but painful, to do all of this in raw JavaScript,
so make the preview functionality depend on Dojo. Also, split out the
relevant JavaScript into its own file. Also, don't search for a preview
if no ISBNs have been gathered; I'm sure Google is never going to return
a result for ISBN:undefined.

You can test this functionality in the sample record set using ISBN
4431287752.

Thanks to Ben Shum for the review comments!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/ac_google_books.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/acjs.tt2
Open-ILS/src/templates/opac/parts/header.tt2
Open-ILS/src/templates/opac/parts/js.tt2