Re: [greenstone-users] TOC and document tagging

From Stephen DeGabrielle
DateTue, 17 May 2005 09:42:08 +0930
Subject Re: [greenstone-users] TOC and document tagging
In-Reply-To (624680750505161648627fa06c-mail-gmail-com)
Greenstone will use frames when you specify
format DocumentUseHTML true
in your collect.cfg
(see page 43 Developers Guide)

I suggest;
- turning off DocumentUseHTML and just looking at the default
behaviour for debugging purposes.
- check your document in a browser to see if it gives any errors.
(a better option is to use HTMLTidy, an online html validator, or
dreamweaver to check the document)

I hope this helps,

Stephen


On 5/17/05, alen <allenbuenaflor@gmail.com> wrote:
> yup, i have a doc.xml file...
>
> a snippet:
> <Section>
> <Description>
> <Metadata name="Title">Cover</Metadata>
> </Description>
> <Content>
> &lt;img src=&quot;/gsdl/collect/gsarch/index/assoc//cover.jpg&quot;&gt;&lt;a
> name=&quot;cover.jpg&quot;&gt;&lt;br&gt;
> </Content>
> </Section>
> <Section>
> <Description>
> <Metadata name="Title">Nilalaman</Metadata>
> </Description>
> <Content>
> &lt;img src=&quot;/gsdl/collect/gsarch/index/assoc//2toc.jpg&quot;&gt;&lt;a
> name=&quot;2toc.jpg&quot;&gt;&lt;br&gt;
> </Content>
> </Section>
>
> there's something else,, the page won't display... it's like it's cut
> off from the top or something.. all i can see now are some javalinks,
> and then the page source says something about frames..?
>
> <html><head></head>
> <frameset rows="68,*" noresize border=0>
> <frame scrolling=no frameborder=0
> src="/gsdl/cgi-bin/library?e=d-000-00---0sisteman--00-0-0--0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-00&a=p&p=nav">
> <frame name="documenttop" frameborder=0
> src="/gsdl/cgi-bin/library?e=d-000-00---0sisteman--00-0-0--0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-00&a=d&d=HASH01fbe8ecada98581ec6dcf41"><noframes>
> <p>You must have a frame enabled browser to view this.</p>
> </noframes>
> </frameset>
> </html>
>
> On 5/16/05, Stephen DeGabrielle <spdegabrielle@gmail.com> wrote:
> > Great Idea,
> > Looks OK to me,
> >
> > I am not an expert, but I'm pretty sure that Title is the only
> > metadata used in the sections. Maybe the cause of the difficulties?
> > Note - I think paged documents are achieved by the section titles
> > being numbered.(and flat structure)
> >
> > <Metadata name="Title">1</Metadata>
> > ...
> > <Metadata name="Title">2</Metadata>
> > and so on
> >
> > Does HTMLPlug just reject your document? Do you get doc.xml files in
> > your archives directory?
> >
> > s.
> >
> >
> > On 5/16/05, alen <allenbuenaflor@gmail.com> wrote:
> > > hello,
> > >
> > > I'm having quite a difficulty with displaying a TOC. See, what i
> > > have are images, but I would like to display them in a more organized
> > > way. So, I thought I could display it like with those little Table of
> > > Contents things at the top. I read the documentation on tagging HTML
> > > files, but I can't seem to make it appear the way I want it to... I'm
> > > so not sure if what I'm doing is right... @_@
> > >
> > > Here's the code of my tagged HTML:
> > > (btw, I'm not sure about the "Page" metadata thing, just
> > > experimented..., oh, and if ever, i just put in the pre tags just in
> > > case the email disregards the comments)
> > > <pre>
> > > <html>
> > > <head><title>Sistema ng Pagsusuri sa Panganib at Kritikal na Bahagi ng
> > > Proseso at and mga Alituntunin ng Aplikasyon Nito</title></head>
> > > <body>
> > > <!--
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Sistema ng Pagsusuri sa Panganib at Kritikal
> > > na Bahagi ng Proseso at ang mga Alituntunin ng Aplikasyon
> > > Nito</Metadata>
> > > </Description>
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Cover</Metadata>
> > > </Description>
> > > -->
> > > <img src="cover.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Nilalaman</Metadata>
> > > </Description>
> > > -->
> > > <img src="2toc.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Panimula</Metadata>
> > > </Description>
> > > -->
> > > <img src="3preface.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Kahulugan ng Mga Termino</Metadata>
> > > </Description>
> > > -->
> > > <img src="4terms1.jpg"><img src="5terms2.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Mga Prinsipyo ng Sistemang HACCP</Metadata>
> > > </Description>
> > > -->
> > > <img src="6HACCP1.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Mga Alituntunin sa Aplikasyon ng Sistemang
> > > HACCP</Metadata>
> > > </Description>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">Page 1</Metadata>
> > > </Description>
> > > -->
> > > <img src="7HACCP2.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">Page 2</Metadata>
> > > </Description>
> > > -->
> > > <img src="7HACCP2.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">Page 3</Metadata>
> > > </Description>
> > > -->
> > > <img src="8HACCP3.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">Page 4</Metadata>
> > > </Description>
> > > -->
> > > <img src="9HACCP4.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">Page 5</Metadata>
> > > </Description>
> > > -->
> > > <img src="10HACCP5.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">Page 6</Metadata>
> > > </Description>
> > > -->
> > > <img src="11HACCP6.jpg"><br>
> > > <!--
> > > </Section>
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Diagrams</Metadata>
> > > </Description>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">1</Metadata>
> > > </Description>
> > > -->
> > > <img src="12diagram1.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">2</Metadata>
> > > </Description>
> > > -->
> > > <img src="13diagram2.jpg"><br>
> > > <!--
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Page">3</Metadata>
> > > </Description>
> > > -->
> > > <img src="14diagram3.jpg"><br>
> > > <!--
> > > </Section>
> > > </Section>
> > > <Section>
> > > <Description>
> > > <Metadata name="Title">Talasalitaan</Metadata>
> > > </Description>
> > > -->
> > > <img src="15talasalitaan.jpg">
> > > <!--
> > > </Section>
> > > -->
> > > </body>
> > > </html>
> > > </pre>
> > > --
> > > Contact is crisis.
> > >
> > > _______________________________________________
> > > greenstone-users mailing list
> > > greenstone-users@list.scms.waikato.ac.nz
> > > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> > >
> >
> > --
> >
> > --
> >
> > Stephen De Gabrielle
> >
>
> --
> Contact is crisis.
>


--

--

Stephen De Gabrielle