Re: [greenstone-users] Items in hierarchical list displayed asUntitled

From Stefan Boddie
DateFri, 14 Nov 2003 09:23:21 +1300
Subject Re: [greenstone-users] Items in hierarchical list displayed asUntitled
In-Reply-To (sfb3a91b-060-apps-niwi-knaw-nl)
Hi Rene,

The first column in your hierarchy file must be unique but does not have to
be the same value as the third column.

So instead of the following:

"bar charts" 125 "bar charts"
"bars" 125.401 "Use: bars"
"bar graphs" 126 "bar graphs"
"bars" 126.401 "Use: bars"
"bars" 129 "bars"

you should use something more like

"unique1" 125 "bar charts"
"unique2" 125.401 "Use: bars"
"unique3" 126 "bar graphs"
"unique4" 126.401 "Use: bars"
"unique5" 129 "bars"

The first column is what your document metadata must match against in order
to be assigned to the correct section of the hierarchy. The third column is
the term that greenstone outputs when displaying the hierarchy.

To assign the same document to more than one hierarchy section you'll need
to set metadata for it for each section. For example, if you were using
"Keyword" metadata for your hierarchy classification, and you wanted a
particular document to appear under both section 125.401 and section 129,
and if your hfile was set up as in the example above, you'd need to have
something like the following in your metadata.xml file:

<Metadata name="Keyword">unique2</Metadata>
<Metadata name="Keyword">unique5</Metadata>

Hope this helps.


----- Original Message -----
From: "Rene Schrama" <>
To: <>
Sent: Friday, November 14, 2003 3:53 AM
Subject: Re: [greenstone-users] Items in hierarchical list displayed

> Update on yesterday's problem...
> I limited the hierarchy file (keyword.txt) to just a few terms and now
> I can reproduce the problem at will. It seems that every term in the
> hierarchy file can only appear once (otherwise it becomes "invisible").
> In the example file, both "bars" and "types of graphs" appear more than
> once. After building the collectioin, both terms appear as "Untitled".
> Two questions:
> 1. Is my assumption correct? (if so, I still don't understand why)
> 2. If so, how can I build a thesaurus, because thesauri are usually
> stuffed with cross-references.
> Rene
> "bar charts" 125 "bar charts"
> "bars" 125.401 "Use: bars"
> "bar graphs" 126 "bar graphs"
> "bars" 126.401 "Use: bars"
> "bars" 129 "bars"
> "types of graphs" 129.101 "Broader: types of graphs"
> "pictograph" 129.501 "Used for: pictograph"
> "bar charts" 129.502 "Used for: bar charts"
> "bar graphs" 129.503 "Used for: bar graphs"
> "types of bars" 129.504 "Used for: types of bars"
> "pictograph" 2011 "pictograph"
> "bars" 2011.401 "Use: bars"
> "types of bars" 3037 "types of bars"
> "bars" 3037.401 "Use: bars"
> "types of graphs" 3045 "types of graphs"
> "histogram" 3045.201 "Narrower: histogram"
> "polygon" 3045.202 "Narrower: polygon"
> "bars" 3045.203 "Narrower: bars"
> "pies" 3045.204 "Narrower: pies"
> "charts" 3045.205 "Narrower: charts"
> "ogive" 3045.206 "Narrower: ogive"
> "sociogram" 3045.301 "See also: sociogram"
> "cluster analysis" 3045.302 "See also: cluster analysis"
> "path diagram" 3045.303 "See also: path diagram"
> "shape of distributions" 3045.304 "See also: shape of distributions"
> "dendrogram" 3045.501 "Used for: dendrogram"
> "diagrams" 3045.502 "Used for: diagrams"
> "graphs of distributions" 3045.503 "Used for: graphs of distributions"
> _______________________________________________
> greenstone-users mailing list