According to Stephen L Arnold:
> On 29 Jan 01, at 11:07, Gilles Detillieux wrote:
> > You can have multiple directories listed in the restrict or exclude
> > parameter values, by separating them with a vertical bar (|), e.g.:
> > <input name="restrict" value="/reports/asdf/foo|/memos/fdsa/bar">
>
> That's how I have it now, ie, more or less like this; say I have
> several types of reports, like Memos, Briefs, and Proceeedings,
> each of which are valid for multiple groups, eg, Sales, Marketing,
> and Accounting. I have each type of report in its own directory,
> and each of these under the group dirs:
...
> The second select box (for group name) uses the exclude parameter
> to keep out all but the selected group:
...
> This works fine, although it starts to get hairy as the number of
> report types and groups increases. Now add a third level, say
> region, and put the same structure above under at least two
> regions. At this point, the only thing I could see to do was make
> a separate search form (as above) for each region, although
> everything is still in one database.
>
> I must admit, I haven't been able to spend as much time with htdig
> as I'd like (due to many other things to address) so I'm sure there
> are things I'm missing. Could you please point them out, suggest
> an alternative, or??
>
> > You can also have multiple definitions of these parameters, which get
> > merged into a common pattern, as of version 3.1.0. This allows you to use
> > <select multiple> lists or checkboxes to set the restrict and exclude
> > parameters.
>
> Would you happen to know of any examples I could look at? Or have
> any other suggestions?
OK, now I have a clearer idea of what you're trying to do. I must
admit that it seems you're pushing the restrict and exclude parameters
farther than I've seen them used before. I can't think of any better
examples offhand, and in fact, the only way I can see to do multi-level
restricts of this sort, beyond two levels, would be either to use a
wrapper script to combine multiple input parameters together to build
up a restrict list for htsearch, or to modify htsearch to support a
multi-level restrict scheme.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/htdig-general