<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<br><br>> Date: Tue, 22 Apr 2008 19:57:01 -0400<br>> From: oleonard@myacpl.org<br>> To: koha@lists.katipo.co.nz<br>> Subject: Re: [Koha] OPAC missing files<br>> <br>> > But: Why doesn't /intranet-tmpl/prog/en/lib/yui/ do the job? What's the<br>> > reason for using an online resource?<br>> <br>> You can use the locally hosted YUI files if you prefer. It's entirely<br>> up to you.<br><br>Actually, I have the same problem as the original poster. Since performance really seems to be better if I host the YUI files locally, I have YUIPATH set to the default of "'/intranet-tmpl/prog/en/lib/yui" . This works fine for the Intranet... but any OPAC page that needs the YUI stuff will generate code like this:<br><pre id="line20"> <<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span>=<span class="attribute-value">"/intranet-tmpl/prog/en/lib/yui/utilities/utilities.js"</span>></<span class="end-tag">script</span>> </pre>which will fail because there is no "intranet-tmpl" directory in the OPAC tree.<br><br>Maybe Koha needs some sort of shared directory that contains web files needed by both the Intranet and OPAC side? A directory that can then be mapped into the docroot of both the Intranet and OPAC sites within koha-httpd.conf ?<br><br>Maybe something like this? (code not tested...)<br><br>1) put this in the OPAC and Intranet sections of koha-httpd.conf:<br><br>Alias /koha-share/ "/usr/share/koha/webshare/"<br><Directory "/usr/share/koha/webshare/"><br> Options None<br> AllowOverride None<br> Order allow,deny<br> Allow from all<br></Directory><br><br>2) Make sure /usr/share/koha/webshare/prog/en/lib/yui/ exists, has the YUI files in it, etc.<br><br>3) Set the YUIPATH system preference to "/koha-share/prog/en/lib/yui"<br><br><br /><hr />Express yourself wherever you are. <a href='http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=en-US?ocid=TAG_APRIL' target='_new'>Mobilize!</a></body>
</html>