RE: [greenstone-users] Remove Hierarchy Levels

From Nathan Einwechter
DateFri, 27 May 2005 07:46:02 -0400
Subject RE: [greenstone-users] Remove Hierarchy Levels
In-Reply-To (4296A83C-40404-cs-waikato-ac-nz)
Yeah, I can do the perl side of things. Need to get back into it for
another project anyways. Other than going to Perl, is there no way to
see what's at the next level down within the format statements?

I even tried doing something like:
Value1|Value2|PRESET VALUE

In this case, I would want Value2 to not have an icon beside it. Only
problem is that I don't know I'm one level away from PRESET VALUE until
I'm actually AT "PRESET VALUE", and by then it's too late. The other
issue is that there's not a set amount of levels. I could have up to 4.

I'm assuming I'd have to modify the file?


-- Nathan

-----Original Message-----
[] On Behalf Of
Michael Dewsnip
Sent: Friday, May 27, 2005 12:55 AM
To: Nathan Einwechter
Subject: Re: [greenstone-users] Remove Hierarchy Levels

Hi Nathan,

Hmmm... I can't think of any way of doing this without writing some code
or editing the metadata. Unfortunately format statements don't seem to
be powerful enough in this case, because you can't determine when you're
at the last folder. I guess we've never considered building classifiers
and not showing the documents!

I don't think it would take too much work to add an option to the
classifer to get the effect you're after. You'd need to know a bit of
Perl and have some time to spare though.

The low-tech solution is to split the metadata between two elements:
"Value1|Value2" and "Value3", build the classifier on the first element,
and display the second element's value for the documents (without the
link). Whether this is feasible depends on how much metadata you've got,
and what else you use this metadata value for.

All the best,


Nathan Einwechter wrote:

> I've got a number of hierarchies setup by placing
> Value1|value2|value3
> Into a specific metadata value. My issue is that I don't want the icon
> to display on the final value (thus preventing us from getting down to
> the last level which shows the document.) I can remove the document
> name and icon no problem, but I want to get rid of that last bookshelf
> as well to prevent people from clicking on it just to find an empty
> next level.
> Anyone know how I might be able to do this?
> Thanks!
> -- Nathan
>greenstone-users mailing list

greenstone-users mailing list