[Koha-patches] [PATCH] fix for bug 2447: yuipath variable not getting passed to help pages

Jesse Weaver jesse.weaver at liblime.com
Fri Aug 22 17:54:30 CEST 2008


This updates help.pl to pass the yuipath variable correctly. It also adds some script references to help-top.inc to avoid other js errors.
---
 help.pl                                            |    2 +-
 .../intranet-tmpl/prog/en/includes/help-top.inc    |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/help.pl b/help.pl
index 402e7d5..ff02bd9 100755
--- a/help.pl
+++ b/help.pl
@@ -54,7 +54,7 @@ sub gethelptemplate {
           C4::Context->preference("intranetcolorstylesheet"),
         intranetstylesheet => C4::Context->preference("intranetstylesheet"),
         IntranetNav        => C4::Context->preference("IntranetNav"),
-        yuipath        => C4::Context->preference("yuipath"),
+		yuipath => (C4::Context->preference("yuipath") eq "local"?"/intranet-tmpl/$theme/$lang/lib/yui":C4::Context->preference("yuipath")),
         referer            => $refer,
     );
     return $template;
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc
index 34a9113..174d4be 100755
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc
@@ -9,6 +9,8 @@
 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/staff-global.css" />
 <!-- /TMPL_IF -->
 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/jquery.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/ui.tabs.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.hotkeys.js"></script>
 <!-- local colors -->
 <!-- TMPL_IF name="intranetcolorstylesheet" -->
 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/<!-- TMPL_VAR NAME="intranetcolorstylesheet" -->" />
@@ -24,4 +26,4 @@
 
 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/help.css" />
 </head>
-<body id="help">
\ No newline at end of file
+<body id="help">
-- 
1.5.5.GIT




More information about the Koha-patches mailing list