|Date||Wed, 05 May 2004 15:13:08 +1200|
|Subject||Re: [greenstone-users] -nolinks|
What does the source of one of your raw HTML files (ie. as viewed from a web-browser) look like?
Does it have links to images like:
Or thumbnail type links like:
If you've got the first case then you should be fine, provided that when you save the HTML file the relative links are converted to absolute links (ie. <a href="http://.../image.jpg">).
If you've got the second case, it turns out there is a bug in HTMLPlug
which causes the links to the images to be invalid. With the "-nolinks"
option on, instead of getting
The anchor <a name="image.jpg"> causes the HTML to be invalid
and you won't get a link in the web browser. You can easily hack a fix
by editing gsdlperllibpluginsHTMLPlug.pm. At the end of the replace_images
function (approx line 350) it says
Change this to
and re-import and re-build your collection.
I'm not entirely sure that this will solve your problem (your description doesn't quite fit), but this was what stopped me from doing what I think you're describing. Please get back to me if you still have problems.
Phu Nguyen wrote:
Hi. I'd like to include webpages with links to images that reside on the web. I searched through the archives and found that I would have to set -nolinks for the htmlplug in order to do this. Instead of a link to the image, the build process produced this: <img src="/collect/d/index/assoc/HASHecfd.dir/photo2.jpg" width="448" height="336"> Any help would be apprecciated.