Changeset 6942


Ignore:
Timestamp:
07/06/10 14:31:01 (9 years ago)
Author:
sdonegan
Message:

fixed bug when handling oai sets: now creates directory with setname if set specified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-OaiInfoEditor/trunk/v3n_NDG3/OAIInfoEditor/oai_info_editor/lib/harvester.py

    r6426 r6942  
    347347        the repository records to 
    348348        ''' 
    349         logging.debug("Determining local directory for harvest") 
     349        logging.info("Determining local directory for harvest") 
    350350        localHarvestDir = repositoryInfo.url 
    351351        localHarvestDir = localHarvestDir.replace('http://', '') 
     
    354354        localHarvestDir = localHarvestDir.replace(':', '-') 
    355355        localHarvestDir += '-%s' %repositoryInfo.dataFormat 
     356         
     357        if repositoryInfo.splitBySet: 
     358                localHarvestDir += '-%s-%s' %(repositoryInfo.dataFormat,repositoryInfo.setSpec) 
     359        else: 
     360                localHarvestDir += '-%s' %repositoryInfo.dataFormat 
     361                 
     362         
    356363        localHarvestDir = baseDir + os.sep + localHarvestDir 
    357         logging.debug(" - harvesting to '%s'" %localHarvestDir) 
     364        logging.info(" - harvesting to '%s'" %localHarvestDir) 
     365         
    358366        return localHarvestDir 
    359367     
Note: See TracChangeset for help on using the changeset viewer.