Re: [greenstone-users] macros help needed

From Katherine Don
DateTue, 05 Oct 2004 11:24:32 +1300
Subject Re: [greenstone-users] macros help needed
In-Reply-To (66047347-20041004154414-rsl-ru)
Hi Dmitry

Try adding this option to your HTMLPlug:

-assoc_files (?i).(gif|jpe?g|jpe|png|css|js)$

(If you are using the GLI, you will need to be in Expert mode)
This should make js files handled in the same way as images or css files
- they will be copied over and linked to from the document.
Are all your links like "img/lib.js@123"? For files with eg @123 after
the file name, you will need to modify the regular expression, for example

(I haven't tried this myself so you may need to fiddle with the
expression a bit.)

I hope this works,

Dmitry Vereschaka wrote:
> Hello, Katherine.
> on 04.10.2004, 1:33:06 you wrote:
> KD> First, please check that you are using Greenstone version 2.51.
> Thank you very much, this helped!
> Also I've got another problem: my html pages contain link to javascript files:
> <script language="javascript" src="img/lib.js@123">
> After building my collection this link didn't changed to internal one
> (i.e. <a href="gsdl?e=d-0-00-test--00-0-0--0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-00&a=extlink&rl=1&">)
> This makes imported pages inoperable (I guess that links to css files also being ignored while
> building collection)