From 5d84e434c346fe074aa6857824871122a22ea9d1 Mon Sep 17 00:00:00 2001
From: Lucas Gass <lucas@bywatersolutions.com>
Date: Tue, 29 Aug 2023 15:45:39 +0000
Subject: [PATCH] Bug 34641: Fix Novelist display when NovelistSelectView is
 set to below

To test:
1. Have Novelist credentials:  NovelistSelectProfile,  NovelistSelectPassword.
2. Enable  NovelistSelectEnabled
3. Set  NovelistSelectView to 'below holdings table'.
4. Find a record on the OPAC that would have Novelist content. It does not display.
5. Set  NovelistSelectView to any except 'below holdings table'. Notice it displays the content.
6. APPLY PATCH
7. Try steps 1 -5 again, this time when NovelistSelectView is set to 'below' the content should properly display.
---
 koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
index e28327a98d..6b6198b3fb 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
@@ -958,10 +958,11 @@
                         [% END %]
 
                         [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
-                            [% WRAPPER tab_panel tabname="NovelistSelect" %]
-                                <h2>Novelist Select</h2>
-                                <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
-                            [% END # /tab_panel#NovelistSelect %]
+                            <span class="results_summary NovelistSelect" style="display:none;">
+                            <span class="label">Novelist Select: </span>
+                            <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
+
+                            </span>
                         [% END %]
                     [% END # /WRAPPER tab_panels %]
                 [% END # /WRAPPER tabs#bibliodescriptions %]
-- 
2.30.2