Re: [greenstone-devel] Image reference in html file

From Michael Dewsnip
DateThu, 11 Aug 2005 14:56:22 +1200
Subject Re: [greenstone-devel] Image reference in html file
In-Reply-To (20050810140648-GA4571-mercycorps-org)
Hi Doug,

>I've got a strange problem that I do not understand. This is the first
>time I've tried this, so I'm sure it's something that I don't have
>configured correctly.
>
>I'm importing/building an html document that contains a image link to
>the local web server:
>
>---
>
><html>
><body>
>
>This is a new image that I would like to include:<br>
>
><img src="/newimages/Foo.jpg" border=0>
>
></body>
></html>
>
>---
>
>After building, the html source has been changed to:
>
>---
>
>This is a new image that I would like to include:<br>
>
><a name="Foo.jpg"><img src="/gsdl/collect/test/index/assoc/HASHde67.dir/Foo.jpg" border=0>
>
>---
>
>I've tried some different switches to HTMLPlug, none of them seem to help.
>Any ideas on how to do configure this? Workarounds?
>
>
I'm not quite sure I understand your problem. Is it that "<a
name="Foo.jpg">" has been added, or that the image source has been
changed from "/newimages/Foo.jpg" to
"/gsdl/collect/test/index/assoc/HASHde67.dir/Foo.jpg"?

Here's a brief description of what Greenstone does in this situation. If
the link is a relative link (eg. "newimages/Foo.jpg") then Greenstone
will associate the file with the document, and the file will end up in
the "index/assoc/<HASHxxxx.dir>" directory. This is necessary so the
collection can be served with the "index" directory only (and "etc" and
"images").

If the link is an absolute link (eg. "http://server/newimages/Foo.jpg")
then Greenstone won't associate the file, but instead replace the src
with a link to Greenstone's extlink action, so the file is still accessible.

Does this help at all?

All the best,

Michael