IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2004, 1:27:27 PM (22 years ago)
Author:
harman
Message:

Changed to no longer allow Folder nodes to be placed in the metadata list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psMetadata.c

    r1970 r1989  
    1212*  @author Ross Harman, MHPCC
    1313*
    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 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    335335    }
    336336
    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        }
    342345    }
    343346
Note: See TracChangeset for help on using the changeset viewer.