Bug 23797: (follow-up) Enable OpacLoginInstructions in header
authorOwen Leonard <oleonard@myacpl.org>
Tue, 7 Jul 2020 18:36:32 +0000 (18:36 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 23 Jul 2020 09:33:34 +0000 (11:33 +0200)
The OpacLoginInstructions information should be available in the login
modal which is displayed when the login link in the header menu is
clicked.

Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc

index c178445..dca9a0a 100644 (file)
@@ -7,6 +7,7 @@
 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
 [% SET OpacHeader = KohaNews.get( location => "opacheader", lang => lang, library => branchcode, blocktitle => 0 ) %]
 [% SET OpacCustomSearch = KohaNews.get( location => "OpacCustomSearch", lang => lang, library => branchcode, blocktitle => 0 ) %]
+[% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
 
 <div id="wrap">
     <div id="header-region" class="noprint">
                 <fieldset class="brief">
                     <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
                     <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
-                    [% IF Koha.Preference( 'OpacLoginInstructions' ) %]
+                    [% IF ( OpacLoginInstructions ) %]
                         <div id="nologininstructions-modal" class="nologininstructions">
-                            [% Koha.Preference( 'OpacLoginInstructions' ) | $raw %]
+                            [% PROCESS koha_news_block news => OpacLoginInstructions %]
                         </div>
                     [% END %]
                     [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]