[LON-CAPA-cvs] cvs: nsdl /nsdlloncapaorg harvester.pl

www lon-capa-cvs@mail.lon-capa.org
Tue, 21 Oct 2003 15:58:26 -0000


www		Tue Oct 21 11:58:26 2003 EDT

  Modified files:              
    /nsdl/nsdlloncapaorg	harvester.pl 
  Log:
  Invent a description if we do not have one.
  
  
Index: nsdl/nsdlloncapaorg/harvester.pl
diff -u nsdl/nsdlloncapaorg/harvester.pl:1.6 nsdl/nsdlloncapaorg/harvester.pl:1.7
--- nsdl/nsdlloncapaorg/harvester.pl:1.6	Tue Oct 21 11:28:13 2003
+++ nsdl/nsdlloncapaorg/harvester.pl	Tue Oct 21 11:58:26 2003
@@ -117,7 +117,9 @@
 	my $version = $tkline[5];
 	my $notes = $tkline[6];
 	my $abstract = $tkline[7];
-	next if ($abstract eq '');
+	unless ($abstract) { $abstract=$subject; }
+	unless ($abstract) { $abstract=$title; }
+	unless ($abstract) { $abstract=$keywords; }
 	my $type = $tkline[8];
 	my $learning_resource_type;
 	if ( $type eq 'problem' ) {