From a00dd5e973f81ca4e487281403b6953d58184029 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 --- 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 2adcf45352..8c157ad2b0 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.11.0