CommonTaxonName commonName = commonNameMap.get(idCombi);
Reference ref = referenceMap.get(String.valueOf(idBibliografia));
- String detail = state.getRefDetailMap().get(idBibliografia);
+// String detail = state.getRefDetailMap().get(idBibliografia);
+ String detail = null;
if (commonName != null) {
DescriptionElementSource source = commonName.addPrimaryTaxonomicSource(ref, detail);
continue;
}
Reference ref = referenceMap.get(String.valueOf(idBibliografia));
- String detail = state.getRefDetailMap().get(idBibliografia);
-
+// String detail = state.getRefDetailMap().get(idBibliografia);
+ String detail = null;
DescriptionElementSource source = distribution.addPrimaryTaxonomicSource(ref, detail);
//TODO nameUsedInSource for distribution
CategoricalData categoricalData, int idBibliografia,
int id) {
Reference ref = referenceMap == null ? null : referenceMap.get(String.valueOf(idBibliografia));
- String detail = state.getRefDetailMap().get(idBibliografia);
+// String detail = state.getRefDetailMap().get(idBibliografia);
+ String detail = null;
if (ref != null) {
if (categoricalData != null) {
private Map<String,NamedArea> areaLabelMap = new HashMap<>();
private Map<Integer,UUID> referenceUuidMap = new HashMap<>();
- private Map<Integer,String> refDetailMap = new HashMap<>();
+// private Map<Integer,String> refDetailMap = new HashMap<>();
private Map<String,UUID> commonNameMap = new HashMap<>();
private Map<String,UUID> distributionMap = new HashMap<>();
public Map<Integer,UUID> getReferenceUuidMap() {
return referenceUuidMap;
}
- public Map<Integer,String> getRefDetailMap() {
- return refDetailMap;
- }
+// public Map<Integer,String> getRefDetailMap() {
+// return refDetailMap;
+// }
public Map<String,UUID> getCommonNameMap() {
return commonNameMap;
}
//concat
- String detail = null;
if (isNotBlank(concat)) {
- //TODO split
String[] split = concat.split(":");
String volume = split[0];
+ ref.setVolume(volume);
if (split.length > 1) {
- //TODO correct handling of detail
- detail = split[1];
+ String pages = split[1];
+ ref.setPages(pages);
}
- ref.setVolume(volume);
}else {
logger.info(refId + ": No volume");
}
}
//register id and make import source
- handleId(state, refId, ref, detail);
+ handleId(state, refId, ref);
partitioner.startDoSave();
refsToSave.add(ref);
}
//register id and make import source
- handleId(state, refId, ref, null);
+ handleId(state, refId, ref);
partitioner.startDoSave();
refsToSave.add(ref);
}
//register id and make import source
- handleId(state, refId, ref, null);
+ handleId(state, refId, ref);
partitioner.startDoSave();
refsToSave.add(ref);
}
//register id and make import source
- handleId(state, refId, ref, null);
+ handleId(state, refId, ref);
partitioner.startDoSave();
refsToSave.add(ref);
}
}
- protected void handleId(MexicoEfloraImportState state, int refId, Reference ref, String detail) {
+ protected void handleId(MexicoEfloraImportState state, int refId, Reference ref) {
state.getReferenceUuidMap().put(refId, ref.getUuid());
- state.getRefDetailMap().put(refId, detail);
+// state.getRefDetailMap().put(refId, detail);
//TODO not needed anymore once "related objects" are adapted everywhere
Reference sourceRef = getSourceReference(state.getConfig().getSourceReference());