Re: [greenstone-users] Problem with using Heirarchy classifier

From Michael Dewsnip
DateMon, 10 Jan 2005 11:19:39 +1300
Subject Re: [greenstone-users] Problem with using Heirarchy classifier
In-Reply-To (Pine-LNX-4-44-0501031922140-28249-100000-fornax-it-iitb-ac-in)
Hi,

When you've got classifiers with folder (bookshelf) nodes and leaf
(document) nodes you need to be a bit careful with your format
statements. The label on the bookshelf node is assigned by the
classifier as Title metadata (no namespace), so instead of

{Or}{[dc.Title],Untitled}

you should have

{Or}{[dc.Title],[Title],Untitled}

This is unfortunately a very confusing aspect of Greenstone. You just
need to remember that, no matter which metadata element you are
classifying on, the classifier assigns Title metadata.

Regards,

Michael

Chaitra Rao wrote:

>Hi,
> I have used Heirarchy classifier for one of the collections containing
>pdf,doc files and HTML pages. I have specified a heirarchy in a file
>called type.txt.The problem is that I am unable to see the title I have
>specified in the heirarchy file. I can only see "Untitled" as the title of
>the bookshelf. Please help The contents of the collect.cfg file is as
>follows:
>
>creatorchaitra@it.iitb.ac.in
>maintainerchaitra@it.iitb.ac.in
>publictrue
>
>indexesdocument:text document:Title document:Source
>defaultindexdocument:text
>
>pluginGAPlug
>pluginTEXTPlug
>pluginHTMLPlug
>pluginPDFPlug
>pluginWordPlug -description_tags -convert_to html -assoc_files
>(?i).(gif|jpe?g|jpe|png|css|js)$ -process_exp (?i).(doc|dot)$
>-cover_image
>pluginPPTPlug -convert_to html
>pluginArcPlug
>pluginRecPlug -use_metadata_files
>
>classifyAZCompactList -metadata dc.Title -doclevel top
>
>classifyHierarchy -metadata dc.Type -buttonname Browse -hfile
>dc.type.txt
>classifyDateList -metadata dc.Date -sort dc.Title
>
>format DocumentButtons "Expand Text|Expand Contents|Detach|Highlight"
>
>format SearchVList "<td valign=top>[link][icon][/link]</td>
><td
>valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
><td valign=top>[highlight]
>{Or}{[dls.Title][dc.Title],[ex.Title],Untitled}
>[/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>"
>
>format DocumentText "<h3>[dc.Title]</h3>\n\n<p>[Text]"
>
>format CL1VList "<td valign=top>[link][icon][/link]</td><td
>valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td><td
>valign=top>[highlight]{Or}{[dc.Title],Untitled}[/highlight]<i><small>{If}{[dc.Date],<br>publication date: [dc.Date]}{If}{[NumPages],<br>no. of pages: [NumPages]}{If}{[Source],<br>source ref: [Source]}</small></i></td>"
>
>format HList
>"[link][highlight]{Or}{[dc.Title],Untitled}[/highlight][/link]"
>
>format DateList "<td>[link][icon][/link]</td>
><td>[highlight]{Or}{[dls.Title],[dc.Title],Untitled}[/highlight]([dc.Date])</td>
>"
>
>format CL3HList
>"[link][highlight]{Or}{[dc.Type],Untitled}[/highlight][/link]"
>
>format CL3VList "<td valign=top>[link][icon][/link]</td><td
>valign=top>[highlight]{Or}{[dc.Title],Untitled}[/highlight]<i><small>{If}{[dc.Date],<br>publication date: [dc.Date]}{If}{[NumPages],<br>no. of pages: [NumPages]}{If}{[Source],<br>source ref: [Source]}</small></i></td>"
>
>format VList "<td valign=top>[link][icon][/link]</td><td
>valign=top>[highlight]{Or}{[dc.Title],Untitled}[/highlight]<i><small>{If}{[dc.Date],<br>publication date: [dc.Date]}{If}{[NumPages],<br>no. of pages: [NumPages]}{If}{[Source],<br>source ref: [Source]}</small></i></td>"
>
>format CL2VList "<td valign=top>[link][icon][/link]</td><td
>valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td><td
>valign=top>[parent(All'_'):_][highlight]{Or}{[dc.Title],[dc.Type],Untitled}[/highlight]<i><small>{If}{[dc.Date],<br>publication date: [dc.Date]}{If}{[NumPages],<br>no. of pages: [NumPages]}{If}{[Source],<br>source ref: [Source]}</small></i></td>"
>
>collectionmetacollectionname [l=en] "Trial Collection"
>collectionmetacollectionextra [l=en] "This is a test collection to test
>the features "
>collectionmeta.document:text [l=en] "text"
>collectionmeta.document:Title [l=en] "titles"
>collectionmeta.document:Source [l=en] "filenames"
>
>
>
>The contents of type.txt file is as follows:
>
>"Documents"1"Documents"
>"Documents|HTML"1.1"HTML"
>"Documents|Word Docs"1.2"Word Docs"
>"Documents|PDF Docs"1.3"PDF Docs"
>
>
>Please help!!!
>
>Regards,
>Chaitra
>
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>