[greenstone-users] Hierarchy classifier - sorting

From William T. Mann
DateSat Nov 20 09:31:55 2010
Subject [greenstone-users] Hierarchy classifier - sorting
In-Reply-To (2679-125-239-211-134-1290105583-squirrel-webmail-scms-waikato-ac-nz)
Hi Katherine,

Thanks for all the help you've given me. I've started refreshing my Perl
and C++ so I can take a look at the source code and maybe start
contributing to the project.

That said I have one last question (at least for now): where would I
need to intervene to make my hierarchy classifier output it's values in
an order specified by me (keep in mind that I'm using this with the
PagedImage plugin). Let's say I've set up my .item file like this:

<Title>Whatever
<Subject and Keywords>01_test|02_about|03_zesty
1:file.jpg
2:file2.jpg
....

and

<Title>Try Again
<Subject and Keywords>02_about|01_test|02_testy
1:file.jpg
2:file2.jpg
...

Now when I look at the classifier on the site I get this:

01_test
02_about

which is the order that I need. The problem is that this corresponds to
the directory structure and is not very user friendly. However if I put
things the way I need them:

<Title>Whatever
<Subject and Keywords>Test|About|Zesty
1:file.jpg
2:file2.jpg
....

and

<Title>Try Again
<Subject and Keywords>About|Test|Testy
1:file.jpg
2:file2.jpg
...

Now with the classifier I get this:

About
This

which is not the order I want. What I'd like is the same order as before
(like my directory structure) and that is:

This
About

It seems like the hierarchy classifier puts everything in alphabetical
order no matter what I do. Is it possible for me to change some code or
something to keep the order the same as the structure I have on disk?

Thanks again for all the help and have a nice weekend.

--
William