Bugzilla – Attachment 72204 Details for
Bug 20291
Add a StaffLoginInstructions system preference to add text to the staff client login box
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20291: Add a StaffLoginInstructions preference for adding text to staff client login
Bug-20291-Add-a-StaffLoginInstructions-preference-.patch (text/plain), 2.95 KB, created by
Owen Leonard
on 2018-02-26 13:46:09 UTC
(
hide
)
Description:
Bug 20291: Add a StaffLoginInstructions preference for adding text to staff client login
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-02-26 13:46:09 UTC
Size:
2.95 KB
patch
obsolete
>From 3c88db75e30939cb7c369ca8a29b716e1fc22ff5 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 21 Feb 2018 04:56:23 +0000 >Subject: [PATCH] Bug 20291: Add a StaffLoginInstructions preference for adding > text to staff client login > >To test: >1 - Apply patches >2 - Upgrade database >3 - Check the staff client login page, should be no change >4 - Add something to the preferene >5 - It should appear on the login page > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../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 > >diff --git a/installer/data/mysql/atomicupdate/bug_20291_add_StaffLoginInstructions_preference.perl b/installer/data/mysql/atomicupdate/bug_20291_add_StaffLoginInstructions_preference.perl >new file mode 100644 >index 0000000..1c7bea5 >--- /dev/null >+++ b/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"; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >index 9514b1f..1822c7a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >+++ b/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 >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >index ef57d4a..f48c08c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >@@ -19,6 +19,7 @@ > > <div id="login"> > <h1><a href="http://koha-community.org">Koha</a></h1> >+[% IF (Koha.Preference('StaffLoginInstructions')) %]<div id="login_instructions">[% Koha.Preference('StaffLoginInstructions') %]</div>[% END %] > [% IF ( nopermission ) %] > <div id="login_error"> > <strong>Error:</strong> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20291
:
72174
|
72204
|
72253
|
73370
|
73371
|
73413
|
73435