Re: [greenstone-users] URL links in GSDL

From Michael Dewsnip
DateThu, 29 Apr 2004 14:55:44 +1200
Subject Re: [greenstone-users] URL links in GSDL
In-Reply-To (5-0-2-1-2-20040428163224-00a08220-slstic-nsf-ac-lk)
Hi,

Here is a brief description of how href links are dealt with in HTML files.

Absolute links (even if they specify files in your collection) are converted
into external links. At run-time, when you click on the link you'll see the
"External link" page, which has a link to the original URL. Clicking on this
will leave Greenstone. (This link may be broken, but that hasn't got anything
to do with Greenstone).

Relative links are converted into internal links. Clicking on one of these
links will take you to another Greenstone page, provided that the file linked
to has been processed by Greenstone (ie. the file was in the collection's
import folder, and was processed or associated by a Greenstone plugin). Any
other relative links will also be converted into internal links, but these
will be broken (you'll get the "Internal Link not Found" page). The exception
to this is images, which are associated automatically. For other files, there
is an assoc_files option to HTMLPlug that you can use to associate them (and
then internal links will work for these files).

So, the upshot of this is that if you're building collections on groups of
interlinked HTML files, you

- want the links to be relative. If you're using software like wget to mirror
a website, there is usually an option (--convert-links for wget) to convert
absolute links into internal links).
- want any files that are linked to in the HTML be associated by Greenstone
(or processed by a plugin). You can use the assoc_files option to HTMLPlug
for any that aren't associated automatically. Use pluginfo.pl on HTMLPlug to
see a description of this option and its default value.

Hope this helps you to solve your problem.

Regards,

Michael

"J.S.K. Weerawardane" wrote:

> Dear All
>
> I have built a collection using some html files, and there are few
> links(URLs) inside those files, and those links inside html files are not
> working.
>
> How can I sort out this problem?
>
> Thanks
>
> Jagath
>
> ------------------------------------------------------------------------
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/04
>
> ------------------------------------------------------------------------
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users