Changeset 863 for TI01-discovery/trunk


Ignore:
Timestamp:
28/04/06 14:51:03 (14 years ago)
Author:
selatham
Message:

bug fix to oai_ingest and updated pml and bodc config files

Location:
TI01-discovery/trunk/ingestAutomation/OAIBatch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/bodc_config.properties

    r823 r863  
     1#Note - don't have any blank lines in this config file 
    12# Define host_OAI as the string that OAI adds to the filenames after harvesting 
    2  
    33# BODC = oai%3Agrid.bodc.nerc.ac.uk%3A 
    44# SOC = oai%3Aoai.noc.soton.ac.uk%3A 
     
    77# TPAC = oai%3Atpac.org.au%3A 
    88# 
    9 host_OAI=oai%3Agrid.bodc.nerc.ac.uk%3A 
     9host_OAI = oai%3Agrid.bodc.nerc.ac.uk%3A 
    1010# 
    1111#Define host_path as the full directory name where this data centre's records will be harvested into. 
    12 host_path         /home/tomcat/oai/WEB-INF/harvested_records/grid.bodc.nerc.ac.uk/8080/oai/provider/ndg_bodc/dif 
     12host_path /home/tomcat/oai/WEB-INF/harvested_records/grid.bodc.nerc.ac.uk/8080/oai/provider/ndg_bodc/dif 
    1313 
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r741 r863  
    4444for line in datacentre_config_file.readlines(): 
    4545    words  = string.split(line) 
     46    if len(words) == 0: 
     47        continue 
    4648    if words[0] == 'host_path': 
    4749        harvest_home = string.rstrip(words[1]) 
     
    5254datacentre_config_file.close() 
    5355 
    54 if not os.path.isfile(harvest_home + "/*"): 
     56if len( os.listdir(harvest_home)) == 0: 
    5557    print "Nothing to harvest this time from %s" %datacentre 
    5658    sys.exit() 
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/pml_config.properties

    r721 r863  
     1#Note - don't have any blank lines in this config file 
    12# Define host_OAI as the string that OAI adds to the filenames after harvesting 
    23# BODC = oai%3Agrid.bodc.nerc.ac.uk%3A 
    34# SOC = oai%3Aoai.noc.soton.ac.uk%3A 
    45# NCAR = oai%3Aucar.ncar.scd.cdp%3A 
    5 # PML = oai%3Apml.nerc.ac.uk%3A 
     6# PML = oai%3Anpm.ac.uk%3A 
    67# TPAC = oai%3Atpac.org.au%3A 
    78# 
    8 host_OAI = oai%3Apml.nerc.ac.uk%3A 
     9host_OAI = oai%3Anpm.ac.uk%3A 
    910# 
    1011#Define host_path as the full directory name where this data centre's records will be harvested into. 
Note: See TracChangeset for help on using the changeset viewer.