]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1254816: prevent cases where a Google Book preview is not displayed
authorGalen Charlton <gmc@esilibrary.com>
Mon, 25 Nov 2013 18:05:21 +0000 (10:05 -0800)
committerMike Rylander <mrylander@gmail.com>
Mon, 16 Dec 2013 16:47:20 +0000 (11:47 -0500)
commitd7ef743766389a85111f9061cce17687ba5326a1
tree924a13fbdc29d4231cab5fdd6ec99d8fd7184af5
parentccc9672ab69909cfe9c7dcdd52b9fa84d0784c44
LP#1254816: prevent cases where a Google Book preview is not displayed

Due to quirks in how different parts of the Google Books API
processes ISBN searches, it is possible for a Google Books Preview
badge to get displayed, but when the user tries to display the preview,
the embedded preview does not get displayed.

This patch fixes the problem by grabbing the preview link from
the GB volumes search results, which in turn can be fed into the
Embedded Viewer initialization.

An ISBN that can be used to reproduce the problem is 9781937994198.
Before the patch, the badge is displayed but not the preview; after
the patch, both badge and preview should be displayed.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/ac_google_books.tt2