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

(-)a/about.pl (+5 lines)
Lines 68-73 my $warnPrefBiblioAddsAuthorities = ( $prefAutoCreateAuthorities && ( !$prefBibl Link Here
68
my $prefEasyAnalyticalRecords  = C4::Context->preference('EasyAnalyticalRecords');
68
my $prefEasyAnalyticalRecords  = C4::Context->preference('EasyAnalyticalRecords');
69
my $prefUseControlNumber  = C4::Context->preference('UseControlNumber');
69
my $prefUseControlNumber  = C4::Context->preference('UseControlNumber');
70
my $warnPrefEasyAnalyticalRecords  = ( $prefEasyAnalyticalRecords  && $prefUseControlNumber );
70
my $warnPrefEasyAnalyticalRecords  = ( $prefEasyAnalyticalRecords  && $prefUseControlNumber );
71
my $warnPrefAnonymousPatron = (
72
    C4::Context->preference('OPACPrivacy')
73
        and not C4::Context->preference('AnonymousPatron')
74
);
71
75
72
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
76
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
73
77
Lines 86-91 $template->param( Link Here
86
    prefAutoCreateAuthorities => $prefAutoCreateAuthorities,
90
    prefAutoCreateAuthorities => $prefAutoCreateAuthorities,
87
    warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities,
91
    warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities,
88
    warnPrefEasyAnalyticalRecords  => $warnPrefEasyAnalyticalRecords,
92
    warnPrefEasyAnalyticalRecords  => $warnPrefEasyAnalyticalRecords,
93
    warnPrefAnonymousPatron => $warnPrefAnonymousPatron,
89
    errZebraConnection => $errZebraConnection,
94
    errZebraConnection => $errZebraConnection,
90
    warnIsRootUser => $warnIsRootUser,
95
    warnIsRootUser => $warnIsRootUser,
91
);
96
);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-2 / +4 lines)
Lines 104-110 Link Here
104
            <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
104
            <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
105
        [% END %]
105
        [% END %]
106
            <h2>Warnings regarding the system configuration</h2>
106
            <h2>Warnings regarding the system configuration</h2>
107
        [% IF ( (warnPrefBiblioAddsAuthorities) || warnPrefEasyAnalyticalRecords ) %]
107
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron %]
108
        <table>
108
        <table>
109
            <caption>Preferences</caption>
109
            <caption>Preferences</caption>
110
            [% IF (warnPrefBiblioAddsAuthorities) %]
110
            [% IF (warnPrefBiblioAddsAuthorities) %]
Lines 113-118 Link Here
113
            [% IF (warnPrefEasyAnalyticalRecords) %]
113
            [% IF (warnPrefEasyAnalyticalRecords) %]
114
            <tr><th scope="row"><b>Warning</b> </th><td>System preference 'EasyAnalyticalRecords' set, but UseControlNumber preference is set to 'Use'. Set it to 'Don't use' or else the 'Show analytics' links in the staff client and the OPAC will be broken.</td></tr>
114
            <tr><th scope="row"><b>Warning</b> </th><td>System preference 'EasyAnalyticalRecords' set, but UseControlNumber preference is set to 'Use'. Set it to 'Don't use' or else the 'Show analytics' links in the staff client and the OPAC will be broken.</td></tr>
115
            [% END %]
115
            [% END %]
116
            [% IF warnPrefAnonymousPatron %]
117
                <tr><th scope="row"><b>Warning</b> </th><td>System preference 'OPACPrivacy' set, but AnonymousPatron preference is set to '0'. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
118
            [% END %]
116
        </table>
119
        </table>
117
        [% ELSE %]
120
        [% ELSE %]
118
            <p>No warnings</p>
121
            <p>No warnings</p>
119
- 

Return to bug 6506