Bugzilla – Attachment 73370 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), 3.02 KB, created by
Katrin Fischer
on 2018-03-28 06:10:16 UTC
(
hide
)
Description:
Bug 20291: Add a StaffLoginInstructions preference for adding text to staff client login
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-03-28 06:10:16 UTC
Size:
3.02 KB
patch
obsolete
>From 0a026f4d3fd8c8f06fb95d10bc8705ac21dfdb90 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> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../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 0000000000..1c7bea532b >--- /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 9514b1f124..1822c7ab24 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 8d5158666e..d4a2b4e840 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >@@ -18,6 +18,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.14.1
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