Lines 159-171
my $warnPrefBiblioAddsAuthorities = ( $prefAutoCreateAuthorities && ( !$prefBibl
Link Here
|
159 |
my $prefEasyAnalyticalRecords = C4::Context->preference('EasyAnalyticalRecords'); |
159 |
my $prefEasyAnalyticalRecords = C4::Context->preference('EasyAnalyticalRecords'); |
160 |
my $prefUseControlNumber = C4::Context->preference('UseControlNumber'); |
160 |
my $prefUseControlNumber = C4::Context->preference('UseControlNumber'); |
161 |
my $warnPrefEasyAnalyticalRecords = ( $prefEasyAnalyticalRecords && $prefUseControlNumber ); |
161 |
my $warnPrefEasyAnalyticalRecords = ( $prefEasyAnalyticalRecords && $prefUseControlNumber ); |
162 |
my $warnPrefAnonymousPatron = ( |
162 |
|
|
|
163 |
my $AnonymousPatron = C4::Context->preference('AnonymousPatron'); |
164 |
my $warnPrefAnonymousPatronOPACPrivacy = ( |
163 |
C4::Context->preference('OPACPrivacy') |
165 |
C4::Context->preference('OPACPrivacy') |
164 |
and not C4::Context->preference('AnonymousPatron') |
166 |
and not $AnonymousPatron |
|
|
167 |
); |
168 |
my $warnPrefAnonymousPatronAnonSuggestions = ( |
169 |
C4::Context->preference('AnonSuggestions') |
170 |
and not $AnonymousPatron |
165 |
); |
171 |
); |
166 |
|
172 |
|
167 |
my $anonymous_patron = Koha::Patrons->find( C4::Context->preference('AnonymousPatron') ); |
173 |
my $anonymous_patron = Koha::Patrons->find( $AnonymousPatron ); |
168 |
my $warnPrefAnonymousPatron_PatronDoesNotExist = ( not $anonymous_patron and Koha::Patrons->search({ privacy => 2 })->count ); |
174 |
my $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist = ( $AnonymousPatron && C4::Context->preference('AnonSuggestions') && not $anonymous_patron ); |
|
|
175 |
|
176 |
my $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist = ( not $anonymous_patron and Koha::Patrons->search({ privacy => 2 })->count ); |
169 |
|
177 |
|
170 |
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); |
178 |
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); |
171 |
|
179 |
|
Lines 520-527
$template->param(
Link Here
|
520 |
prefAutoCreateAuthorities => $prefAutoCreateAuthorities, |
528 |
prefAutoCreateAuthorities => $prefAutoCreateAuthorities, |
521 |
warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities, |
529 |
warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities, |
522 |
warnPrefEasyAnalyticalRecords => $warnPrefEasyAnalyticalRecords, |
530 |
warnPrefEasyAnalyticalRecords => $warnPrefEasyAnalyticalRecords, |
523 |
warnPrefAnonymousPatron => $warnPrefAnonymousPatron, |
531 |
warnPrefAnonymousPatronOPACPrivacy => $warnPrefAnonymousPatronOPACPrivacy, |
524 |
warnPrefAnonymousPatron_PatronDoesNotExist => $warnPrefAnonymousPatron_PatronDoesNotExist, |
532 |
warnPrefAnonymousPatronAnonSuggestions => $warnPrefAnonymousPatronAnonSuggestions, |
|
|
533 |
warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist => $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist, |
534 |
warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist => $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist, |
525 |
errZebraConnection => $errZebraConnection, |
535 |
errZebraConnection => $errZebraConnection, |
526 |
warnIsRootUser => $warnIsRootUser, |
536 |
warnIsRootUser => $warnIsRootUser, |
527 |
warnNoActiveCurrency => $warnNoActiveCurrency, |
537 |
warnNoActiveCurrency => $warnNoActiveCurrency, |