Re: [greenstone-devel] Subject classifier will only display first line

From Katherine Don
DateMon, 03 May 2004 10:12:21 +1200
Subject Re: [greenstone-devel] Subject classifier will only display first line
In-Reply-To (000801c4307a$e8748430$59b68081-Xylem)
Hi Loralee

Here are a few comments about your config file. (Apologies if these are
things you already know)

1. the -removeprefix option removes the specified prefix from the
metadata values for sorting. For example, using -removeprefix "The" will
ignore any The's when sorting. So 'The apple' would be sorted before
'Bananas'. In the Title AZList below, the list will be built on dc.Title
metadata, not Title metadata, and if any metadata values start with dc.,
that would be ignored for sorting.

2. The -sort option for Hierarchy file should specify a metadata element
to be used for sorting. In the case below, it will look for the
element called "Metadata element specified with -metadata" and will not
find it, so the sort key for all entries will be "".
If you want to sort by the metadata specified with -metadata, leave this
option out, otherwise put it in with a different metadata item.

3. The -hfile name should match the file name - you have said that you
have a subject.txt file but have specified -hfile dc.subject.txt. Case
is also important. Subject.txt will not match subject.txt.

4. In a hierarchy classifier, only the entries that have documents with
that metadata will be shown. So if you only have documents with
dc.Subject metadata of 'Agriculture Implementation Agreement' then only
that first classification will be shown.

I suggest that you fix up any errors in your config file, make sure that
the hfile names match, and that you have assigned the correct
dc.Subject metadata to your documents, and then rebuild your collection.

Hopefully that will fix your problem. If not, please mail the list again.

Katherine Don

Michael Lines wrote:
> Hi there
> For a test case with a flat subject hierarchy, and the default searches,
> my config. file looks like this (pretty much copied straight from the
> Greenstone demos):
> classify AZList -metadata Source
> classify AZList -metadata dc.Title -removeprefix dc. -buttonname Title
> classify Hierarchy -metadata dc.Subject -sort "Metadata element
> specified with -metadata." -buttonname Subject -hfile dc.subject.txt
> format DateList
> "<td>[link][icon][/link]</td><td>[highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight]</td><td>[Date]</td>"
> format HList
> "[link][highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight][/link]"
> format VList "<td valign=top>[link][icon][/link]</td><td
> valign=top>[srclink]{Or}{[thumbicon],[srcicon]}[/srclink]</td><td
> valign=top>[highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight]{If}{[Source],<br><i>([Source])</i>}</td>"
> I have a subject.txt file in etc. and another in metadata (dc), also
> called subject.txt. Snippets of each look like this:
> etc.: "Agriculture Implementation Agreement" 1 "Agriculture
> Implementation Agreement" "Alberta Climate Change Plan" 2 "Alberta
> Climate Change Plan" "Alberta Energy Research" 3 "Alberta Energy
> Research" "CASA EPT Committee" 4 "CASA EPT Committee"
> metatdata: (Can't get at the example just now, but you likely know the
> one, automatically generated with <subject> </subject> tags.)
> Is it possible for you to see right away what my neophyte problem is?
> Everything else finally works, except that the subject page only
> displays the first member of the list. (I am operating Windows 2000,
> and trying to use the GLI.)
> Many, many thanks.
> Lorelee
> ------------------------------------------------------------------------
> _______________________________________________
> greenstone-devel mailing list