--- loncom/metadata_database/searchcat.pl 2006/01/27 15:53:49 1.66 +++ loncom/metadata_database/searchcat.pl 2006/04/08 07:07:15 1.68 @@ -2,7 +2,7 @@ # The LearningOnline Network # searchcat.pl "Search Catalog" batch script # -# $Id: searchcat.pl,v 1.66 2006/01/27 15:53:49 albertel Exp $ +# $Id: searchcat.pl,v 1.68 2006/04/08 07:07:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -65,9 +65,6 @@ and correct user experience. =cut use strict; -BEGIN { - eval "use Apache2::compat();"; -}; use DBI; use lib '/home/httpd/lib/perl/'; use LONCAPA::lonmetadata; @@ -265,7 +262,7 @@ sub only_meta_files { foreach my $file (@PossibleFiles) { if ( ($file =~ /\.meta$/ && # Ends in meta $file !~ /\.\d+\.[^\.]+\.meta$/ # is not for a prior version - ) || (-d $file )) { # directories are okay + ) || (-d $File::Find::dir."/".$file )) { # directories are okay # but we do not want /. or /.. push(@ChosenFiles,$file); }