TPAC: Make Google Books Preview depend on Dojo user/dbs/tpac_google_books
authorDan Scott <dscott@laurentian.ca>
Wed, 20 Feb 2013 16:37:08 +0000 (11:37 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 20 Feb 2013 16:37:08 +0000 (11:37 -0500)
commitc09bb82189d3ed0dee3cb962facd6747bd20235e
tree3610013642da75b9c62be0664c06cce141c74540
parent50585c6cab48c0e7f0e7838393ae05ed375527b5
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>
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