Re: [greenstone-users] bookmarks in html file

From Michael Dewsnip
DateTue, 05 Apr 2005 15:09:05 +1200
Subject Re: [greenstone-users] bookmarks in html file
In-Reply-To (424C8486-4090500-cs-waikato-ac-nz)
(Re-sending this because of the mailing list problems).

Michael Dewsnip wrote:

> Hi,
>
> Good question. Greenstone is pretty smart about dealing with
> internal/external links but it isn't quite smart enough when sections
> are involved too. As I see it you have three options:
>
> - Put the commentaries in a separate file and change your links to
> reference this file. Greenstone should deal with this fine, but you
> might not like having the commentaries as a separate document.
>
> - Modify HTMLPlug to do the right thing when sections are involved.
> This would be non-trivial: currently each section is processed as it
> is read from the file, but in your case the file needs to be parsed
> initially to work out which sections the links must point to. This is
> already done to determine which images are referenced by the file --
> you could piggy-back this process to do what is required.
>
> - Change your commentary links to help Greenstone by explicitly
> specifying the commentary section number. Instead of having a link like:
>
> <a href="#commentaries">Link to commentaries</a>.
>
> you need something like
>
> <a
> href="/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-Amin+Hedjazi--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&cl=CL1.2.41&d=42520151-3000303-cs-waikato-ac-nz.X#commentaries">Link to
> commentaries</a>.
>
> where 'X' is the section number of the commentaries section, for that
> document (yes, this means you have to manually count the sections in
> each document).
>
> Regards,
>
> Michael
>
>
>
> Tran wrote:
>
>> Hi,
>> My problem is that I would like to include commentaries in my source
>> html file. I've included all commentaries as a section in the end of
>> the file and made links correspondingly.
>>
>> Unfortunately, those links don't work anymore when I open my
>> collection. It's understandable because those links refers to the
>> bookmarks in the source html file when in GSDL, each html page is
>> just a section of the source file.
>>
>> Pls. tell me how to get my commentaries properly work.
>>
>> Regard,
>>
>> --
>> No virus found in this outgoing message.
>> Checked by AVG Anti-Virus.
>> Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 3/23/2005
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> greenstone-users mailing list
>> greenstone-users@list.scms.waikato.ac.nz
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>>
>
>