[LON-CAPA-cvs] cvs: loncom /metadata_database searchcat.pl
raeburn
lon-capa-cvs@mail.lon-capa.org
Tue, 02 Jan 2007 09:12:51 -0000
raeburn Tue Jan 2 04:12:51 2007 EDT
Modified files:
/loncom/metadata_database searchcat.pl
Log:
If no metadata file exists, only include courserestricted in record in portfolio_metadata MySQL table if this is a real group.
Index: loncom/metadata_database/searchcat.pl
diff -u loncom/metadata_database/searchcat.pl:1.73 loncom/metadata_database/searchcat.pl:1.74
--- loncom/metadata_database/searchcat.pl:1.73 Tue Jan 2 02:26:11 2007
+++ loncom/metadata_database/searchcat.pl Tue Jan 2 04:12:51 2007
@@ -2,7 +2,7 @@
# The LearningOnline Network
# searchcat.pl "Search Catalog" batch script
#
-# $Id: searchcat.pl,v 1.73 2007/01/02 07:26:11 raeburn Exp $
+# $Id: searchcat.pl,v 1.74 2007/01/02 09:12:51 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -613,7 +613,7 @@
$metacache{'owner'} = $uname.':'.$dom;
$metacache{'domain'} = $dom;
$metacache{'mime'} = $mime;
- if (defined($group)) {
+ if ($group ne '') {
$metacache{'keys'} .= ',courserestricted';
$metacache{'courserestricted'} = 'course.'.$dom.'_'.$uname;
}