From 4c579207d90cfba4290a42a06156d0556a56a16f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 22 May 2020 12:09:29 +0100 Subject: [PATCH] Bug 23975: (RM follow-up) Comment example configuration As promised, I am commenting out the configuration for git repositories to use for searches by default prior to release. To enable the feature, simply uncomment the relevant github repositories or add your own. Signed-off-by: Martin Renvoize --- debian/templates/koha-conf-site.xml.in | 2 ++ etc/koha-conf.xml | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt | 2 ++ plugins/plugins-home.pl | 1 + 4 files changed, 7 insertions(+) diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 44f557637d..fe71b9ab48 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -410,6 +410,7 @@ __END_SRU_PUBLICSERVER__ 0 0 + diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml index ead08aab73..9e6cb59047 100644 --- a/etc/koha-conf.xml +++ b/etc/koha-conf.xml @@ -234,6 +234,7 @@ __PAZPAR2_TOGGLE_XML_POST__ 0 0 + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt index 1b24428fde..1dff52810d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt @@ -41,6 +41,7 @@ + [% IF can_search %]
@@ -53,6 +54,7 @@
+ [% END %] [% END %]

Plugins

diff --git a/plugins/plugins-home.pl b/plugins/plugins-home.pl index f376e17d08..e3335ab4bd 100755 --- a/plugins/plugins-home.pl +++ b/plugins/plugins-home.pl @@ -60,6 +60,7 @@ if ($plugins_enabled) { $template->param( plugins => \@plugins, ); + $template->param( can_search => C4::Context->config('plugin_repos') ? 1 : 0 ); my @results; if ($plugin_search) { my $repos = C4::Context->config('plugin_repos'); -- 2.39.5