<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<br><br>&gt; Date: Tue, 22 Apr 2008 19:57:01 -0400<br>&gt; From: oleonard@myacpl.org<br>&gt; To: koha@lists.katipo.co.nz<br>&gt; Subject: Re: [Koha] OPAC missing files<br>&gt; <br>&gt; &gt;  But: Why doesn't /intranet-tmpl/prog/en/lib/yui/ do the job? What's the<br>&gt; &gt;  reason for using an online resource?<br>&gt; <br>&gt; You can use the locally hosted YUI files if you prefer. It's entirely<br>&gt; up to you.<br><br>Actually, I have the same problem as the original poster.&nbsp; 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"&nbsp; .&nbsp; This works fine for the Intranet... but any OPAC page that needs the YUI stuff will generate code like this:<br><pre id="line20">    &lt;<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>&gt;&lt;/<span class="end-tag">script</span>&gt; </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?&nbsp; 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>&lt;Directory "/usr/share/koha/webshare/"&gt;<br>&nbsp;&nbsp;&nbsp; Options None<br>&nbsp;&nbsp;&nbsp; AllowOverride None<br>&nbsp;&nbsp;&nbsp; Order allow,deny<br>&nbsp;&nbsp;&nbsp; Allow from all<br>&lt;/Directory&gt;<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>