use Koha;
use Koha::DateUtils qw(dt_from_string output_pref);
use Koha::Acquisition::Currencies;
+use Koha::BackgroundJob;
use Koha::BiblioFrameworks;
+use Koha::Email;
use Koha::Patron::Categories;
use Koha::Patrons;
use Koha::Caches;
my $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist = ( not $anonymous_patron and Koha::Patrons->search({ privacy => 2 })->count );
+my $warnPrefKohaAdminEmailAddress = not Email::Valid->address(C4::Context->preference('KohaAdminEmailAddress'));
+
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
my $warnIsRootUser = (! $loggedinuser);
$template->param( warnHiddenBiblionumbers => \@hidden_biblionumbers );
}
+{
+ # BackgroundJob - test connection to message broker
+ eval {
+ Koha::BackgroundJob->connect;
+ };
+ if ( $@ ) {
+ warn $@;
+ $template->param( warnConnectBroker => $@ );
+ }
+}
+
my %versions = C4::Context::get_versions();
$template->param(
warnPrefAnonymousPatronAnonSuggestions => $warnPrefAnonymousPatronAnonSuggestions,
warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist => $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist,
warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist => $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist,
+ warnPrefKohaAdminEmailAddress => $warnPrefKohaAdminEmailAddress,
errZebraConnection => $errZebraConnection,
warnIsRootUser => $warnIsRootUser,
warnNoActiveCurrency => $warnNoActiveCurrency,