From 3d29e055ebabcba5bafaf5f6006f3e1661b08f18 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 20 Dec 2021 07:59:27 -0500 Subject: [PATCH] LP1955403-Bootstrap opac - Google Books preview not rendering. Fixes the Google Books preview in the Bootstrap Opac. To test. 1. Set ctx.google_books_preview=1 in config.tt2. 2. View a bibliographic record that would have an ISBN that would link to a google book preview. In concerto you can change and ISBN on a record to and ISBN that you know would pull data (9788027103782, 9781629795645). 3. Notice there is no preview button link, or preview. 4. Apply the patch and refresh. The google preview button should render. Clicking on the button will display the preview. Signed-off-by: Garry Collum --- Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 index a0007ed16f..76395577d9 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 @@ -56,7 +56,8 @@ ctx.metalinks.push('
-

[% IF attrs.hl.title; attrs.hl.title; ELSE; attrs.title_extended | html; END %]

+
+

[% IF attrs.hl.title; attrs.hl.title; ELSE; attrs.title_extended | html; END %]

[%- FOR link880 IN attrs.graphic_titles; FOR alt IN link880.graphic; @@ -69,6 +70,7 @@ ctx.metalinks.push(' END; -%] [%- INCLUDE "opac/parts/record/authors.tt2" %] +
@@ -77,7 +79,8 @@ ctx.metalinks.push('
    [%- IF attrs.hl.isbn.size; FOR isbn IN attrs.hl.isbn %]
  • - [% l('ISBN:'); %] [% isbn %] + [% l('ISBN:'); %] + [% isbn | html %]
  • [%- END; ELSIF attrs.isbns.0; FOR isbn IN attrs.isbns; -- 2.11.0