--- loncom/interface/lonsearchcat.pm 2001/03/15 13:23:15 1.11 +++ loncom/interface/lonsearchcat.pm 2001/03/15 14:20:13 1.14 @@ -167,6 +167,19 @@ LASTREVISIONDATEEND $scrout.=&selectbox('Limit by copyright/distribution','copyright', $ENV{'form.copyright'},%cprtag); +# ------------------------------------------- Compute customized metadata field + $scrout.=< +LIMIT BY OTHER METADATA FIELDS: + +For author-specific metadata, enter in an expression in the form of +key=value separated by operators such as AND or OR.
+Example: grandmother=75 OR grandfather=85 +
+CUSTOMMETADATA +$scrout.=&simpletextfield('custommetadata',$ENV{'form.custommetadata'}); +$scrout.='initial users of this system do not need to worry about this option'; + # ---------------------------------------------------------------- Print screen $r->print(< @@ -409,7 +422,8 @@ sub basicsearch { my $query=$expression; $query="select * from metadata where concat(title,\" \",author) like '\%$expression\%'"; - my $reply=&Apache::lonnet::reply("querysend:$query",'msul3'); +# my $reply=&Apache::lonnet::reply("querysend:$query",'msul3'); + my $reply=&Apache::lonnet::metadata_query($query); my @results;