[greenstone-users] Hierarchy classifier - hfile

From Katherine Don
DateFri Nov 19 06:54:28 2010
Subject [greenstone-users] Hierarchy classifier - hfile
In-Reply-To (4CE531AA-7060900-comune-belluno-it)
Hi william

Try setting the metadata in item file to be like
<Subjects and Keywords>dir3

I don't think the hfile version of Hierarchy understands the | separator.

Cheers,
Katherine


> Hi,
>
> I'm trying to use the hfile argument with the hierarchy classifier to
> get control over the order in which the items are shown. Unfortunately
> there's not much information on how to use it. I've created the text
> file and I can see that the structure is being build correctly; however,
> my documents are never shown: just the structure. So here's what I have:
>
> directory structure
> -------------------------
> dir1
> + dir2
> + dir3
> file1.jpg
> file2.jpg
> file3.jpg
>
> file.item (PagedImagePlugin)
> --------------------------------------
> <Title>Title 1
> <Subjects and Keywords>dir1|dir2|dir3
> 1:file1.jpg
> 2:file2.jpg
> 3:file3.jpg
>
> structure.txt
> ----------------
> dir1 1 "My Test"
> dir2 1.1 "Sub-level 1"
> dir3 1.1.1 "Final sublevel"
>
> classifier phrase
> ----------------------
> classify Hierarchy -hfile structure.txt -metadata "ex.Subject and
> Keywords" -buttonname Sezioni -suppresslastlevel -separator [|]
>
> So when I try to navigate the structure, I get down to 'Final sublevel'
> and that's it: no documents. Do I also have to list my documents
> somehow? And if so, how? I have over 40000+ images that are being shown.
>
> Obviously I'm doing something wrong: does anyone have any ideas as to
> what I'm missing? Thanks for the help!
>
> --
> Rag. William Mann
> Comune di Belluno
> Servizio Sistemi Informativi
> Piazza Castello, 14
> 32100 Belluno
> Tel. 0437-913156
> e-mail: wtmann@comune.belluno.it
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>