From cb32ef4fc18122eb1c6f1d622697504d359d310c Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 3 Jan 2005 10:58:46 +0000 Subject: [PATCH] adding "opacstylesheet" systempreference. if this parameter is defined, the url is used instead of the default one. So, you can have your own stylesheet somewhere, and use it instead of the official Koha one. --- C4/Output.pm | 3 ++- koha-tmpl/opac-tmpl/css/en/includes/opac-top.inc | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/C4/Output.pm b/C4/Output.pm index 8b6ab14780..60d34ffbce 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -73,7 +73,7 @@ if (!$query){ } my ($theme, $lang) = themelanguage($htdocs, $tmplbase, $opac, $query); - + my $opacstylesheet = C4::Context->preference('opacstylesheet'); my $template = HTML::Template->new(filename => "$htdocs/$theme/$lang/$tmplbase", die_on_bad_params => 0, global_vars => 1, @@ -82,6 +82,7 @@ if (!$query){ $template->param(themelang => ($opac ne 'intranet'? '/opac-tmpl': '/intranet-tmpl') . "/$theme/$lang", interface => ($opac ne 'intranet'? '/opac-tmpl': '/intranet-tmpl'), theme => $theme, + opacstylesheet => $opacstylesheet, lang => $lang); diff --git a/koha-tmpl/opac-tmpl/css/en/includes/opac-top.inc b/koha-tmpl/opac-tmpl/css/en/includes/opac-top.inc index 4aec3babe4..ab49a48dae 100644 --- a/koha-tmpl/opac-tmpl/css/en/includes/opac-top.inc +++ b/koha-tmpl/opac-tmpl/css/en/includes/opac-top.inc @@ -3,7 +3,11 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - /includes/opac.css" /> + + " /> + + /includes/opac.css" /> + <!--TMPL_VAR name="LibraryName"--> -- 2.39.5