|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:
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 Hierarchy.pm file?
[mailto:firstname.lastname@example.org] On Behalf Of
Sent: Friday, May 27, 2005 12:55 AM
To: Nathan Einwechter
Subject: Re: [greenstone-users] Remove Hierarchy Levels
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
> 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?
> -- Nathan
>greenstone-users mailing list
greenstone-users mailing list