Project

General

Profile

« Previous | Next » 

Revision 2d481abb

Added by Katja Luther almost 10 years ago

changes in Fauna Europeae Import and Index Fungorum Import and PESI Export

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTaxonExport.java
777 777
			// Increment pageNumber
778 778
			pageNumber++;
779 779
		}
780
		
780
		taxonList = null;
781 781
		while ((taxonList  = getTaxonService().listTaxaByName(Taxon.class, "*", "*", "*", "*", Rank.SUBSPECIES(), pageSize, pageNumber)).size() > 0) {
782 782
			HashMap<Integer, TaxonNameBase<?,?>> inferredSynonymsDataToBeSaved = new HashMap<Integer, TaxonNameBase<?,?>>();
783 783

  
......
866 866
						// Classification could not be determined directly from this TaxonNode
867 867
						// The stored classification from another TaxonNode is used. It's a simple, but not a failsafe fallback solution.
868 868
						if (taxonNodes.size() == 0) {
869
							logger.error("Classification could not be determined directly from this Taxon: " + acceptedTaxon.getUuid() + " is misapplication? "+acceptedTaxon.isMisapplication()+ "). The classification of the last taxon is used");
869
							//logger.error("Classification could not be determined directly from this Taxon: " + acceptedTaxon.getUuid() + " is misapplication? "+acceptedTaxon.isMisapplication()+ "). The classification of the last taxon is used");
870 870
						
871 871
						}
872 872
					}
......
940 940
				logger.error("This TaxonBase is not a Taxon even though it should be: " + taxonBase.getUuid() + " (" + taxonBase.getTitleCache() + ")");
941 941
			}
942 942
		}
943
		taxonList = null;
943 944
		return inferredSynonymsDataToBeSaved;
944 945
	}
945 946
	
......
2524 2525
	private PesiExportMapping getMapping() {
2525 2526
		PesiExportMapping mapping = new PesiExportMapping(dbTableName);
2526 2527
		
2527
		mapping.addMapper(IdMapper.NewInstance("TaxonId"));
2528
		//mapping.addMapper(IdMapper.NewInstance("TaxonId"));
2528 2529
		mapping.addMapper(DbObjectMapper.NewInstance("sec", "sourceFk")); //OLD:mapping.addMapper(MethodMapper.NewInstance("SourceFK", this.getClass(), "getSourceFk", standardMethodParameter, PesiExportState.class));
2529 2530
		mapping.addMapper(MethodMapper.NewInstance("TaxonStatusFk", this.getClass(), "getTaxonStatusFk", standardMethodParameter, PesiExportState.class));
2530 2531
		mapping.addMapper(MethodMapper.NewInstance("TaxonStatusCache", this.getClass(), "getTaxonStatusCache", standardMethodParameter, PesiExportState.class));

Also available in: Unified diff