Ignore:
Timestamp:
26/02/09 11:55:50 (11 years ago)
Author:
sdonegan
Message:

Debug new ingest classes - previous commit had problems with mdip records.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/tags/stable-TI01-ingestAutomation_Proglue_upgradesAndReporting/temp/OAIBatch/MDIP.py

    r5027 r5040  
    2929        #add in extra stuff for new DatasetBasicParameters object 
    3030        self.metadataCreationDate=helper.getText(self.tree,'DateOfUpdateOfMetadata') 
    31         self.datacentreName=helper.getText(self.tree,'Distributor/DistributorName/DistributorNameCode') 
     31        self.datacentreName=helper.getText(self.tree,'Distributor/DistributorName/DistributorNameName') 
    3232         
    3333        if len(helper.getText(self.tree,'Title')) < 1: 
     34            self.datasetTitle=helper.getText(self.tree,'DatasetIdentifier') 
     35        else: 
    3436            self.datasetTitle=helper.getText(self.tree,'Title') 
    35         else: 
    36             self.datasetTitle=helper.getText(self.tree,'DatasetIdentifier') 
    3737         
    38         logging.info('EXTRA INFORMATION for ORDERING= dataset title:  ' + self.datasetTitle + '  dataset creation date: ' + self.metadataCreationDate + '  datacentre name: ' + self.datacentreName) 
     38        #logging.info('EXTRA INFORMATION for ORDERING= dataset title:  ' + self.datasetTitle + '  dataset creation date: ' + self.metadataCreationDate + '  datacentre name: ' + self.datacentreName) 
    3939         
    4040         
     
    4343    import sys 
    4444    f=sys.argv[1] 
    45     print 'file:[%s]'%f 
     45    #print 'file:[%s]'%f 
    4646    ff=file(f) 
    4747    xml=ff.read() 
Note: See TracChangeset for help on using the changeset viewer.