--- loncom/lonnet/perl/lonnet.pm 2001/03/22 16:13:22 1.115 +++ loncom/lonnet/perl/lonnet.pm 2001/04/02 16:56:22 1.120 @@ -91,9 +91,9 @@ # 09/01,10/01,11/01 Gerd Kortemeyer # 02/27/01 Scott Harrison # 3/2 Gerd Kortemeyer -# 3/15 Scott Harrison +# 3/15,3/19 Scott Harrison # 3/19,3/20 Gerd Kortemeyer -# 3/22 Scott Harrison +# 3/22,3/27 Scott Harrison package Apache::lonnet; @@ -1243,19 +1243,23 @@ sub definerole { # ---------------- Make a metadata query against the network of library servers sub metadata_query { - my ($query,$custom)=@_; - # need to put in a loop here and return list - unless ($custom) { - my $reply=&reply("querysend:".&escape($query),'msul3'); - return $reply; - } - else { - my $reply=&reply("querysend:".&escape($query).':'. - &escape($custom),'msul3'); - return $reply; + my ($query,$custom,$customshow)=@_; + # need to put in a library server loop here and return a hash + my %rhash; +# for my $server (keys %libserv) { + for my $server ('msul3') { + unless ($custom or $customshow) { + my $reply=&reply("querysend:".&escape($query),$server); + $rhash{$server}=$reply; + } + else { + my $reply=&reply("querysend:".&escape($query).':'. + &escape($custom).':'.&escape($customshow), + $server); + $rhash{$server}=$reply; + } } - my ($query)=@_; - my $reply=&reply("querysend:".&escape($query),'msul3'); + return \%rhash; } # ------------------------------------------------------------------ Plain Text