Bugzilla – Attachment 112342 Details for
Bug 26810
OpacCustomSearch is no longer a system preference, we must use the template variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26810: Restore OpacCustomSearch news display
Bug-26810-Restore-OpacCustomSearch-news-display.patch (text/plain), 2.26 KB, created by
Owen Leonard
on 2020-10-24 00:40:28 UTC
(
hide
)
Description:
Bug 26810: Restore OpacCustomSearch news display
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-10-24 00:40:28 UTC
Size:
2.26 KB
patch
obsolete
>From f2eb44fa14f58da7e083f834870e0a3a381d3421 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Sat, 24 Oct 2020 00:33:32 +0000 >Subject: [PATCH] Bug 26810: Restore OpacCustomSearch news display > >To test: >1 - Define a new opac news entry for OpacCustomSearch >2 - Browse opac, notice the standard search bar is displayed >3 - Apply patch >4 - Note new search bar displays on refresh > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index bcba20c4b1..e3895a1e76 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -156,7 +156,9 @@ > <div class="row"> > <div class="col"> > <div id="opac-main-search"> >- [% IF Koha.Preference('OpacCustomSearch') == '' %] >+ [% IF ( OpacCustomSearch ) %] >+ [% PROCESS koha_news_block news => OpacCustomSearch %] >+ [% ELSE %] > <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform"> > <div class="form-row align-items-center"> > <div class="col-sm-auto order-1 order-sm-1"> >@@ -282,9 +284,7 @@ > </div> <!-- /.form-row --> > <input type="hidden" name="weight_search" value="1"> > </form> >- [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %] >- [% Koha.Preference('OpacCustomSearch') | $raw %] >- [% END # / Koha.Preference('OpacCustomSearch') == '' %] >+ [% END # / ( OpacCustomSearch ) %] > </div><!-- /#opac-main-search --> > </div> <!-- /.col --> > </div> <!-- /.row --> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26810
:
112340
|
112341
|
112342
|
112426