Changeset 1989
- Timestamp:
- Oct 6, 2004, 1:27:27 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
astronomy/psMetadata.c (modified) (2 diffs)
-
collections/psMetadata.c (modified) (2 diffs)
-
types/psMetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psMetadata.c
r1970 r1989 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10-06 01:06:20$14 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-06 23:27:27 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 335 335 } 336 336 337 // Add all items to metadata collection's list, even if they have the same metadata item names 338 if(!psListAdd( mdList, location, metadataItem )) { 339 psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s", 340 metadataItem->name ); 341 return false; 337 // Add items to metadata collection's list, even if they have the same metadata item names. Folder nodes 338 // (PS_META_ITEM_SET metadata items) are not added, since the metadata list is flat. 339 if(metadataItem->type != PS_META_ITEM_SET) { 340 if(!psListAdd(mdList, location, metadataItem)) { 341 psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s", 342 metadataItem->name ); 343 return false; 344 } 342 345 } 343 346 -
trunk/psLib/src/collections/psMetadata.c
r1970 r1989 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10-06 01:06:20$14 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-06 23:27:27 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 335 335 } 336 336 337 // Add all items to metadata collection's list, even if they have the same metadata item names 338 if(!psListAdd( mdList, location, metadataItem )) { 339 psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s", 340 metadataItem->name ); 341 return false; 337 // Add items to metadata collection's list, even if they have the same metadata item names. Folder nodes 338 // (PS_META_ITEM_SET metadata items) are not added, since the metadata list is flat. 339 if(metadataItem->type != PS_META_ITEM_SET) { 340 if(!psListAdd(mdList, location, metadataItem)) { 341 psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s", 342 metadataItem->name ); 343 return false; 344 } 342 345 } 343 346 -
trunk/psLib/src/types/psMetadata.c
r1970 r1989 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10-06 01:06:20$14 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-06 23:27:27 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 335 335 } 336 336 337 // Add all items to metadata collection's list, even if they have the same metadata item names 338 if(!psListAdd( mdList, location, metadataItem )) { 339 psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s", 340 metadataItem->name ); 341 return false; 337 // Add items to metadata collection's list, even if they have the same metadata item names. Folder nodes 338 // (PS_META_ITEM_SET metadata items) are not added, since the metadata list is flat. 339 if(metadataItem->type != PS_META_ITEM_SET) { 340 if(!psListAdd(mdList, location, metadataItem)) { 341 psError( __func__, "Couldn't add metadata item to metadata collection list. Name: %s", 342 metadataItem->name ); 343 return false; 344 } 342 345 } 343 346
Note:
See TracChangeset
for help on using the changeset viewer.
