Changeset 6848 for TI01-discovery-Ingest


Ignore:
Timestamp:
27/04/10 15:07:41 (9 years ago)
Author:
sdonegan
Message:

Put in workaround to deal with datacentres that insist on using 'gcmd' as format rather than 'dif' - problem when using oai_info_editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-Ingest/trunk/v3n_NDG3/ingestAutomation-upgrade/OAIBatch/oai_document_ingester.py

    r6377 r6848  
    3737                outMessage = summary of ingest process 
    3838                ''' 
     39 
    3940                 
    4041                self._no_files_ingested = 0 
     
    7980                if harvestDir: 
    8081                        self._harvest_home = harvestDir 
     82                 
    8183                if dataFormat: 
    82                         self._datacentre_format = dataFormat 
     84                        #add fudge to deal with "gcmd" non standard formats used by some dc's - easier to deal with here than faffing with editor code 
     85                        if dataFormat = 'gcmd': 
     86                                self._datacentre_format = 'DIF' 
     87                        else:            
     88                                self._datacentre_format = dataFormat 
    8389 
    8490                 
Note: See TracChangeset for help on using the changeset viewer.