[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Mon, 24 Jun 2002 20:25:44 -0000
matthew Mon Jun 24 16:25:44 2002 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Changes to support (not-yet-implemented) limited metadata searches.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.243 loncom/lonnet/perl/lonnet.pm:1.244
--- loncom/lonnet/perl/lonnet.pm:1.243 Mon Jun 24 15:41:41 2002
+++ loncom/lonnet/perl/lonnet.pm Mon Jun 24 16:25:44 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.243 2002/06/24 19:41:41 albertel Exp $
+# $Id: lonnet.pm,v 1.244 2002/06/24 20:25:44 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1812,9 +1812,11 @@
# ---------------- Make a metadata query against the network of library servers
sub metadata_query {
- my ($query,$custom,$customshow)=@_;
+ my ($query,$custom,$customshow,$server_array)=@_;
my %rhash;
- for my $server (keys %libserv) {
+ my @server_list = (defined($server_array) ? @$server_array
+ : keys(%libserv) );
+ for my $server (@server_list) {
unless ($custom or $customshow) {
my $reply=&reply("querysend:".&escape($query),$server);
$rhash{$server}=$reply;