Project

General

Profile

« Previous | Next » 

Revision 9eca8b4a

Added by Andreas Müller over 5 years ago

ref #7420 define WorksheetName as config parameter (needed for Phycobank import)

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/greece/FloraHellenicaTaxonImport.java
80 80
    private NonViralNameParserImpl parser = NonViralNameParserImpl.NewInstance();
81 81

  
82 82
    @Override
83
    protected String getWorksheetName() {
83
    protected String getWorksheetName(CONFIG config) {
84 84
        return "valid taxa names";
85 85
    }
86 86

  
......
400 400
        name = replaceNameAuthorsAndReferences(state, name);
401 401

  
402 402
        Taxon taxon = Taxon.NewInstance(name, getSecReference(state));
403
        taxon.addImportSource(noStr, getWorksheetName(), getSourceCitation(state), null);
403
        taxon.addImportSource(noStr, getWorksheetName(state.getConfig()), getSourceCitation(state), null);
404 404
        if (isSensuStrictu){
405 405
            taxon.setAppendedPhrase("s.str.");
406 406
        }
......
595 595
                return;
596 596
            }
597 597
            desc.addElement(dist);
598
            dist.addImportSource(id, getWorksheetName(), getSourceCitation(state), line);
598
            dist.addImportSource(id, getWorksheetName(state.getConfig()), getSourceCitation(state), line);
599 599
        }else {
600 600
            logger.warn(line + "Unrecognized distribution status '" + value + "' for " + key);
601 601
        }
......
648 648
        }
649 649

  
650 650
        desc.addElement(descEl);
651
        descEl.addImportSource(id, getWorksheetName(), getSourceCitation(state), line);
651
        descEl.addImportSource(id, getWorksheetName(state.getConfig()), getSourceCitation(state), line);
652 652
    }
653 653

  
654 654
    private void handleSingleStatus(SimpleExcelTaxonImportState<CONFIG> state, CategoricalData catData,

Also available in: Unified diff