--- loncom/interface/lonsearchcat.pm 2001/03/15 13:40:20 1.12 +++ loncom/interface/lonsearchcat.pm 2001/03/15 14:31:05 1.15 @@ -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(< @@ -410,7 +423,7 @@ 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::metadata_query("querysend:$query",'msul3'); + my $reply=&Apache::lonnet::metadata_query($query); my @results; @@ -451,7 +464,7 @@ onClick="javascript:select_data('$title'
END $compiledresult.=<URL: $url
+URL: $url
Title: $title
Author(s): $author
Subject: $subject