Re: Expand full text by default?

From sjboddie
DateMon, 22 Apr 2002 15:30:52 +1200
Subject Re: Expand full text by default?
In-Reply-To (004801c1e7a6$ccc5ff80$d72d9fca-paulslaptop)
Hi Paul,

Nice bugs!

The two problems you pointed out were both things that used to work but
which have been broken by more recent changes (shows how often anyone
uses the "expand text" function).

I've fixed them. Let me know what breed of Greenstone you're using and
I'll get the patched version to you.

regards,
Stefan.


Paul Mundy wrote:
>
> Stefan:
>
> Thanks for the extraordinarily quick response!
>
> I've tried this, and it does expand the text by default. However, it creates
> two new problems:
>
> 1) When I click on a hierarchy button (such as Subject), the first
> document in that hierarchy opens beneath the hierarchy list -- even though I
> haven't yet clicked to open that document.
>
> 2) Clicking on the subsection icons (to the right of the cover photo) now
> has no effect, unless the user also then clicks on the "Contract text"
> button. Is it possible to set it so the text expands by default, but the
> user can click on the subsection icons and jumps directly to that
> subsection?
>
> Sorry to be difficult...
>
> Thanks and best wishes
>
> Paul
>
> Paul Mundy
> development communication specialist
> paul@mamud.com
> www.mamud.com
>
> ----- Original Message -----
> From: "Stefan Boddie" <sjboddie@cs.waikato.ac.nz>
> To: "Paul Mundy" <paul@mamud.com>; <greenstone@tripath.colosys.net>
> Cc: "Rusmini CALREC" <rini_rm@yahoo.com>; "Bambang Sankarto Pustaka"
> <bs_sankarto@yahoo.com>; <amamfa72@yahoo.com>
> Sent: Friday, April 19, 2002 6:01 AM
> Subject: Re: Expand full text by default?
>
> Hi Paul,
>
> To make the text expanded by default you could try adding the following to
> your gsdl/etc/main.cfg file
>
> cgiarg shortname=gt argdefault=2
>
> regards,
> Stefan.
>
> ----- Original Message -----
> From: "Paul Mundy" <paul@mamud.com>
> To: <greenstone@tripath.colosys.net>
> Cc: "Rusmini CALREC" <rini_rm@yahoo.com>; "Bambang Sankarto Pustaka"
> <bs_sankarto@yahoo.com>; <amamfa72@yahoo.com>
> Sent: Friday, April 19, 2002 3:51 AM
> Subject: Expand full text by default?
>
> > Greetings from Indonesia.
> >
> > We are creating a collection of Indonesian agricultural research materials
> > using Greenstone 2.36. The documents are in HTML format with subsections
> > denoted by <<TOC>> tags. We hope to add PDF and other formats later.
> >
> > When the user opens a document, by default the first subsection only is
> > displayed. The user must click on the icons linking to each subsection to
> > open those subsections, or on the "Expand Text" button.
> >
> > Unfortunately we think this will confuse our users -- they may see the
> first
> > section only, and not realize there is more text available in subsequent
> > subsections.
> >
> > Is it possible to have Greenstone expand the text by default, and display
> > the "Contract Text" button if the user wants to browse the sections only?
> >
> > Thanks in advance.
> >
> > Paul
> >
> > Paul Mundy
> > development communication specialist
> > paul@mamud.com
> > www.mamud.com
> >
> > Temporary email in Indonesia (to 7 June 2002): pmundy@indo.net.id
> > mobile 0818-168332
> >
> > DevArt: copyright-free artwork for development
> > http://www.developmentart.com
> > ----- Original Message -----
> > From: "sjboddie" <sjboddie@cs.waikato.ac.nz>
> > To: <greenstone@TRIPATH.colosys.net>
> > Sent: Friday, February 22, 2002 3:30 AM
> > Subject: Re: Documents at INTERNAL levels in hierarchy?
> >
> >
> > Hi,
> >
> > This sounds very much like a bug I just fixed the other day. You can fix
> > it by downloading a new Hierarchy.pm file from
> > http://greenstone.org/tmp/Hierarchy.pm and saving it to your
> > gsdl/perllib/classify directory (replacing the one that's already
> > there).
> >
> > Please let me know if this doesn't fix the problem.
> >
> > regards,
> > Stefan.
> >
> > nlin@nlin.net wrote:
> > >
> > > > Hi,
> > > > It's definitely possible to have documents at higher levels
> > > > as well as deeper levels at the same time, so I'm not quite sure
> > > > what is wrong here. It could possibly be a problem with your
> > > > index file or the just formatting - have you modified the format
> string
> > > > for that classifier? It could also be a bug - which
> > > > version and platform are you using?
> > >
> > > I'm using 2.3.7 on Linux with the IndexPlug (can't get RecPlug with
> > > the -use_metadata_files to work, yet).
> > >
> > > My index.txt file is:
> > >
> > > key: Sec Author Title Summary
> > > test.txt 1.1 "Author1" "Doc1" "This is summary 1"
> > > test2.txt 1.1.1 "nobody aasdf" "Doc2" "This is summary 2"
> > >
> > > etc/hfile.txt (the hierarchy classifier file) is:
> > >
> > > 1 1 "ch1"
> > > 1.1 1.1 "mid"
> > > 1.1.1 1.1.1 "bot"
> > > 2 2 "ch2"
> > >
> > > etc/collect.cfg is:
> > >
> > > creator no@where
> > > maintainer no@where
> > > public true
> > >
> > > indexes document:text document:Title document:Source
> > > defaultindex document:text
> > >
> > > plugin ZIPPlug
> > > plugin GAPlug
> > > plugin TEXTPlug
> > > plugin HTMLPlug
> > > plugin EMAILPlug
> > > plugin PDFPlug
> > > plugin RTFPlug
> > > plugin WordPlug
> > > plugin ArcPlug
> > > plugin IndexPlug
> > >
> > > classify Hierarchy -hfile hfile.txt -metadata Sec
> > >
> > > collectionmeta collectionname "metatest"
> > > collectionmeta iconcollection ""
> > > collectionmeta collectionextra " rigid body dynamics

This collection contains _numdocs_ documents, a total of _numbytes_ of indexed text and metadata.

Click here to view the build summary for this collection. "
> > > collectionmeta .document:text "text"
> > > collectionmeta .document:Source "filenames"
> > >
> > > This behaves exactly as I said: I get
> > >
> > > ch1
> > > mid
> > > Doc1
> > > *** WHERE IS SECTION "BOT" ???? ***
> > >
> > > Ideas?
> > >
> > > -Norman
> >
> >
> >
> >
> >