View | Details | Raw Unified | Return to bug 25826
Collapse All | Expand All

(-)a/about.pl (+28 lines)
Lines 43-48 use C4::Installer::PerlModules; Link Here
43
use Koha;
43
use Koha;
44
use Koha::DateUtils qw(dt_from_string output_pref);
44
use Koha::DateUtils qw(dt_from_string output_pref);
45
use Koha::Acquisition::Currencies;
45
use Koha::Acquisition::Currencies;
46
use Koha::BiblioFrameworks;
46
use Koha::Patron::Categories;
47
use Koha::Patron::Categories;
47
use Koha::Patrons;
48
use Koha::Patrons;
48
use Koha::Caches;
49
use Koha::Caches;
Lines 50-55 use Koha::Config::SysPrefs; Link Here
50
use Koha::Illrequest::Config;
51
use Koha::Illrequest::Config;
51
use Koha::SearchEngine::Elasticsearch;
52
use Koha::SearchEngine::Elasticsearch;
52
use Koha::Logger;
53
use Koha::Logger;
54
use Koha::Filter::MARC::ViewPolicy;
53
55
54
use C4::Members::Statistics;
56
use C4::Members::Statistics;
55
57
Lines 525-530 $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; Link Here
525
      and not C4::Context->config('bcrypt_settings');
527
      and not C4::Context->config('bcrypt_settings');
526
}
528
}
527
529
530
{
531
    my @frameworkcodes = Koha::BiblioFrameworks->search->get_column('frameworkcode');
532
    my @hidden_biblionumbers;
533
    push @frameworkcodes, ""; # it's not in the biblio_frameworks table!
534
    for my $frameworkcode ( @frameworkcodes ) {
535
        my $shouldhidemarc_opac = Koha::Filter::MARC::ViewPolicy->should_hide_marc(
536
            {
537
                frameworkcode => $frameworkcode,
538
                interface     => "opac"
539
            }
540
        );
541
        push @hidden_biblionumbers, { frameworkcode => $frameworkcode, interface => 'opac' }
542
          if $shouldhidemarc_opac->{biblionumber};
543
544
        my $shouldhidemarc_intranet = Koha::Filter::MARC::ViewPolicy->should_hide_marc(
545
            {
546
                frameworkcode => $frameworkcode,
547
                interface     => "intranet"
548
            }
549
        );
550
        push @hidden_biblionumbers, { frameworkcode => $frameworkcode, interface => 'intranet' }
551
          if $shouldhidemarc_intranet->{biblionumber};
552
    }
553
    $template->param( warnHiddenBiblionumbers => \@hidden_biblionumbers );
554
}
555
528
my %versions = C4::Context::get_versions();
556
my %versions = C4::Context::get_versions();
529
557
530
$template->param(
558
$template->param(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-3 / +14 lines)
Lines 184-190 Link Here
184
        </div>
184
        </div>
185
185
186
        <div id="sysinfo">
186
        <div id="sysinfo">
187
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set %]
187
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size %]
188
        [% IF (warnIsRootUser) %]
188
        [% IF (warnIsRootUser) %]
189
            <h2>Warning regarding current user</h2>
189
            <h2>Warning regarding current user</h2>
190
            <p>You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
190
            <p>You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
Lines 259-265 Link Here
259
            [% END %]
259
            [% END %]
260
        [% END %]
260
        [% END %]
261
261
262
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnNoActiveCurrency || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules || config_bcrypt_settings_no_set %]
262
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnNoActiveCurrency || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size %]
263
            <h2>Warnings regarding the system configuration</h2>
263
            <h2>Warnings regarding the system configuration</h2>
264
            <table>
264
            <table>
265
                <caption>Preferences and parameters</caption>
265
                <caption>Preferences and parameters</caption>
Lines 340-345 Link Here
340
                    System preference 'Pseudonymization' is set, but there is not 'bcrypt_settings' entry defined in the $KOHA_CONF file.
340
                    System preference 'Pseudonymization' is set, but there is not 'bcrypt_settings' entry defined in the $KOHA_CONF file.
341
                    </td></tr>
341
                    </td></tr>
342
                [% END %]
342
                [% END %]
343
                [% IF config_bcrypt_settings_no_set %]
344
                    <tr><th scope="row"><b>Warning</b> </th><td>
345
                    System preference 'Pseudonymization' is set, but there is not 'bcrypt_settings' entry defined in the $KOHA_CONF file.
346
                    </td></tr>
347
                [% END %]
348
                [% IF warnHiddenBiblionumbers.size %]
349
                    <tr><th scope="row"><b>Warning</b> </th><td>
350
                    [% FOR w IN warnHiddenBiblionumbers %]
351
                        Biblio framework "[% w.frameworkcode %]" has the biblionumber field hidden at the interface [% w.interface %]<br/>
352
                    [% END %]
353
                    </td></tr>
354
                [% END %]
343
            </table>
355
            </table>
344
        [% END %]
356
        [% END %]
345
357
346
- 

Return to bug 25826