From c6a91414135ffd9f16c389ba3d4f96c98878d683 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 11 Dec 2010 23:47:47 +0100 Subject: [PATCH] Bug 3381 - Add an IntranetUserCSS system preference Add an IntranetUserCSS sys pref that works like OPACUserCSS in OPAC only for intranet. --- C4/Auth.pm | 1 + .../data/mysql/de-DE/mandatory/sysprefs.sql | 1 + .../data/mysql/en/mandatory/sysprefs.sql | 1 + .../unimarc_standard_systemprefs.sql | 1 + .../data/mysql/it-IT/necessari/sysprefs.sql | 398 +++++++++--------- .../data/mysql/pl-PL/mandatory/sysprefs.sql | 1 + ...ferences_full_optimal_for_install_only.sql | 1 + ...ferences_full_optimal_for_install_only.sql | 1 + installer/data/mysql/updatedatabase.pl | 5 + .../prog/en/includes/doc-head-close.inc | 1 + .../admin/preferences/staff-client.pref | 7 +- kohaversion.pl | 2 +- 12 files changed, 220 insertions(+), 200 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 7404f96858..2f13b863e9 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -362,6 +362,7 @@ sub get_template_and_user { intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), intranetreadinghistory => C4::Context->preference("intranetreadinghistory"), intranetstylesheet => C4::Context->preference("intranetstylesheet"), + IntranetUserCSS => C4::Context->preference("IntranetUserCSS"), intranetuserjs => C4::Context->preference("intranetuserjs"), intranetbookbag => C4::Context->preference("intranetbookbag"), suggestion => C4::Context->preference("suggestion"), diff --git a/installer/data/mysql/de-DE/mandatory/sysprefs.sql b/installer/data/mysql/de-DE/mandatory/sysprefs.sql index 96ded44e4b..a7927200b2 100644 --- a/installer/data/mysql/de-DE/mandatory/sysprefs.sql +++ b/installer/data/mysql/de-DE/mandatory/sysprefs.sql @@ -40,6 +40,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetNav','','Use HTML tabs to add navigational links to the top-hand navigational bar in the Staff Client','70|10','Textarea'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('intranetreadinghistory',1,'If ON, Reading History is enabled for all patrons','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('intranetstylesheet','','Enter a complete URL to use an alternate layout stylesheet in Intranet','50','free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetUserCSS','','Add CSS to be included in the intranet in an embedded 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 324f8afcab..ab546f1bed 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 @@ -15,6 +15,11 @@ Staff Client: - pref: intranetstylesheet class: url - on all pages in the staff interface, instead of the default. (This should be a complete URL, starting with http://.) + - + - "Include the following CSS on all pages in the staff client:" + - pref: IntranetUserCSS + type: textarea + class: code - - Include the stylesheet /css/ - pref: intranetcolorstylesheet @@ -36,7 +41,7 @@ Staff Client: type: textarea class: code - - - "Include the following JavaScript on all pages in the staff interface:" + - "Include the following JavaScript on all pages in the staff clien:" - pref: intranetuserjs type: textarea class: code diff --git a/kohaversion.pl b/kohaversion.pl index 3b6d24c197..eebfdbf083 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.03.00.007'; + our $VERSION = '3.XX.XX.XXX'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.2