Ignore:
Timestamp:
29/07/09 15:49:51 (10 years ago)
Author:
sdonegan
Message:

Updated to allow inclusion of end date ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/Utilities.py

    r5524 r5537  
    269269            self.datasetEndDateNom = helper.getText(et,'Temporal_Coverage/Stop_Date') 
    270270             
     271            #TODO amend this - just a fudge to ingest records from crappy badc/neodc whilst pipeline down;.. 
     272            if self.datasetEndDateNom == '': 
     273             self.datasetEndDateNom = helper.getText(et,'Temporal_Coverage/End_Date')                        
     274             
    271275        elif self._datacentre_format == 'MDIP': 
    272276            #return helper.getText(self.tree,'DatasetIdentifier') 
     
    279283        else: 
    280284            raise TypeError,'idget does not support datatype [%s]'%dataType 
     285            
     286        #if no values for start or end dates need to set these to NULL! 
     287        if self.datasetStartDateNom == "": 
     288            self.datasetStartDateNom = 'NULL' 
     289                 
     290        if self.datasetEndDateNom == "": 
     291            self.datasetEndDateNom = 'NULL' 
    281292 
    282293import unittest 
Note: See TracChangeset for help on using the changeset viewer.