>Richard Bingle

>I've been unsuccessful in using restrict with a path like string
>(i.e. something with a slash in it).  Is there a way to do something
>like <input type="hidden" name="restrict" value="this/sub/directory">?
>Basically, I'd like to set up htsearch to only return hits in a
>portion of a larger (single domainname) database (based on
>subdirectories) without having to have separate databases.
>

this works fine for me.

I have one database and restrict the search part
according to a field selected. (either staff pages or
cti centre pages or dept pages only or all of them)

look at to see what I mean.

http://www.york.ac.uk/depts/psych/www/search/advsearch.html

(it says ....

<input type=hidden name=config value="psyadv">
<input type=hidden name=exclude value="">
<select name=restrict>
<option value="">all Psychology related pages
<option value="www.york.ac.uk/depts/psych/">Depatrmental Psychology  only
<option value="www.york.ac.uk/inst/ctipsych/">CTI Centre for Psychology only
<option value="www.york.ac.uk/~">Psychology Staff and Postgrads only
</select>


....)


BTW
the way the restrict varibles and other things works seems
a bit strange to me. Ive looked through the soure very briefly to try
and figure  out how the default and config and query varibles are related
and its a bit muddled in my mind at the moment.

Id like them to be able to put the restrict in the config file
and have it use - which does not and does  work! it
doesnt work for the initial search but does on subsequent pages where it
has been put into $RESTRICT env varible by  htsearch.



-- Rob.

....................................................................
   Rob Stone, Dept Psychology, University of York, York, YO10 5DD
 [EMAIL PROTECTED] http://www.york.ac.uk/~rfs1/  Tel +44 1904 433161
how many peeps at EJC98? -> http://chocfest.york.ac.uk/ejccomp.shtml
....................................................................


----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to