]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1685840: Dojoless Google Books Preview
authorDan Scott <dan@coffeecode.net>
Mon, 17 Apr 2017 02:27:52 +0000 (22:27 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 4 May 2017 14:31:20 +0000 (10:31 -0400)
commita968d72e91e40adfe42c28462f4c257c3d1688d5
treec8ceb1c4b5691556c9da9073d673d4e225165ec1
parent825f4aaf8e407a42ddd30ce558303696aa7ecd47
LP#1685840: Dojoless Google Books Preview

Avoid polluting the global namespace by wrapping the code in (function() {})().

Add event listeners to the DOM elements rather than the crufty
href=javascript:function approach.

Optimization: do not load the Google Books JSAPI unless there is a matching
embedded ISBN.

Use display style directly, rather than munging class names with hide_me

Supports IE 10/11, which does not handle responseType = 'json', through
the fallback to XHR responseText.

IE9 for now; it seems the new Google Books Loader wipes out the DOM in
IE9 instead of loading nicely in the <head>. Could go back to the old
Google JS loader, which still works, but is deprecated, so could
disappear at any point.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/ac_google_books.tt2
Open-ILS/src/templates/opac/parts/record/extras.tt2