@@ -, +, @@ text to staff client login --- .../bug_20291_add_StaffLoginInstructions_preference.perl | 8 ++++++++ .../prog/en/modules/admin/preferences/staff_client.pref | 5 +++++ koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 1 + 3 files changed, 14 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_20291_add_StaffLoginInstructions_preference.perl --- a/installer/data/mysql/atomicupdate/bug_20291_add_StaffLoginInstructions_preference.perl +++ a/installer/data/mysql/atomicupdate/bug_20291_add_StaffLoginInstructions_preference.perl @@ -0,0 +1,8 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $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')"); + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20291 - Add StaffLoginInstructions system preference)\n"; +} --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref @@ -107,6 +107,11 @@ Staff Client: - pref: IntranetReportsHomeHTML type: htmlarea class: code + - + - "Show the following HTML on the staff client login page" + - pref: StaffLoginInstructions + type: htmlarea + class: code Options: - - pref: viewMARC --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -19,6 +19,7 @@

Koha

+[% IF (Koha.Preference('StaffLoginInstructions')) %]
[% Koha.Preference('StaffLoginInstructions') %]
[% END %] [% IF ( nopermission ) %]
Error: --