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

(-)a/installer/data/mysql/atomicupdate/bug_20291_add_StaffLoginInstructions_preference.perl (+8 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('StaffLoginInstructions','','HTML to go into the login box for the staff client',NULL,'Free')");
4
5
    # Always end with this (adjust the bug info)
6
    SetVersion( $DBversion );
7
    print "Upgrade to $DBversion done (Bug 20291 - Add StaffLoginInstructions system preference)\n";
8
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref (+5 lines)
Lines 107-112 Staff Client: Link Here
107
            - pref: IntranetReportsHomeHTML
107
            - pref: IntranetReportsHomeHTML
108
              type: htmlarea
108
              type: htmlarea
109
              class: code
109
              class: code
110
        -
111
            - "Show the following HTML on the staff client login page"
112
            - pref: StaffLoginInstructions
113
              type: htmlarea
114
              class: code
110
    Options:
115
    Options:
111
        -
116
        -
112
            - pref: viewMARC
117
            - pref: viewMARC
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (-1 / +1 lines)
Lines 19-24 Link Here
19
19
20
<div id="login">
20
<div id="login">
21
<h1><a href="http://koha-community.org">Koha</a></h1>
21
<h1><a href="http://koha-community.org">Koha</a></h1>
22
[% IF (Koha.Preference('StaffLoginInstructions')) %]<div id="login_instructions">[% Koha.Preference('StaffLoginInstructions') %]</div>[% END %]
22
[% IF ( nopermission ) %]
23
[% IF ( nopermission ) %]
23
<div id="login_error">
24
<div id="login_error">
24
    <strong>Error:</strong>
25
    <strong>Error:</strong>
25
- 

Return to bug 20291