From 1762a17d803a77a88fa3d2d60e80f68036ccca1c 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 Signed-off-by: Eva Cerninakova Signed-off-by: Galen Charlton --- .../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 7311717b13..728901c139 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; @@ -70,6 +71,7 @@ ctx.metalinks.push(' -%] [%- INCLUDE "opac/parts/record/authors.tt2" %] [%- INCLUDE "opac/parts/record/contents-summaryonly.tt2" %] +
@@ -78,7 +80,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.43.2