75 |
75 |
// Service
|
76 |
76 |
StatisticsTypeEnum.SYNONYMS,
|
77 |
77 |
StatisticsTypeEnum.TAXON_NAMES,
|
78 |
|
StatisticsTypeEnum.NOMECLATURAL_REFERENCES,
|
|
78 |
StatisticsTypeEnum.NOMENCLATURAL_REFERENCES,
|
79 |
79 |
StatisticsTypeEnum.DESCRIPTIVE_SOURCE_REFERENCES });
|
80 |
80 |
|
81 |
81 |
// private static final String[] TYPES = { "CLASSIFICATION",
|
... | ... | |
122 |
122 |
// private static final int NO_OF_ALL_REFERENCES = NO_OF_ACCEPTED_TAXA + 0;
|
123 |
123 |
|
124 |
124 |
// must not be more than NO_OF_ACCEPTED_TAXA+NO_OF_SYNONYMS
|
125 |
|
private static final int NO_OF_NOMECLATURAL_REFERENCES = NO_OF_ACCEPTED_TAXA
|
|
125 |
private static final int NO_OF_NOMENCLATURAL_REFERENCES = NO_OF_ACCEPTED_TAXA
|
126 |
126 |
+ NO_OF_SYNONYMS - 4;
|
127 |
127 |
|
128 |
128 |
// --------------------variables for all ------------------
|
... | ... | |
169 |
169 |
no_of_descriptive_source_references_c);
|
170 |
170 |
put(StatisticsTypeEnum.ALL_REFERENCES.getLabel(),
|
171 |
171 |
no_of_all_references_c);
|
172 |
|
put(StatisticsTypeEnum.NOMECLATURAL_REFERENCES.getLabel(),
|
|
172 |
put(StatisticsTypeEnum.NOMENCLATURAL_REFERENCES.getLabel(),
|
173 |
173 |
no_of_nomenclatural_references_c);
|
174 |
174 |
}
|
175 |
175 |
};
|
... | ... | |
285 |
285 |
name.setNameCache(randomName, true);
|
286 |
286 |
|
287 |
287 |
// create nomenclatural reference for taxon name (if left)
|
288 |
|
if (nomRefCounter < NO_OF_NOMECLATURAL_REFERENCES) {
|
|
288 |
if (nomRefCounter < NO_OF_NOMENCLATURAL_REFERENCES) {
|
289 |
289 |
// we remember this taxon has a nomenclatural reference:
|
290 |
290 |
tNomRefFlag = true;
|
291 |
291 |
Reference nomRef = ReferenceFactory.newBook();
|
... | ... | |
393 |
393 |
name.setNameCache(randomName, true);
|
394 |
394 |
|
395 |
395 |
// create nomenclatural reference for synonym name (if left)
|
396 |
|
if (nomRefCounter < NO_OF_NOMECLATURAL_REFERENCES) {
|
|
396 |
if (nomRefCounter < NO_OF_NOMENCLATURAL_REFERENCES) {
|
397 |
397 |
sNomRefFlag = true;
|
398 |
398 |
Reference nomRef = ReferenceFactory.newBook();
|
399 |
399 |
name.setNomenclaturalReference(nomRef);
|
... | ... | |
737 |
737 |
// Long.valueOf(NO_OF_ALL_REFERENCES));
|
738 |
738 |
put(StatisticsTypeEnum.ALL_REFERENCES.getLabel(),
|
739 |
739 |
no_of_all_references);
|
740 |
|
put(StatisticsTypeEnum.NOMECLATURAL_REFERENCES.getLabel(),
|
741 |
|
Long.valueOf(NO_OF_NOMECLATURAL_REFERENCES));
|
|
740 |
put(StatisticsTypeEnum.NOMENCLATURAL_REFERENCES.getLabel(),
|
|
741 |
Long.valueOf(NO_OF_NOMENCLATURAL_REFERENCES));
|
742 |
742 |
}
|
743 |
743 |
};
|
744 |
744 |
}
|
... | ... | |
836 |
836 |
public String toString() {
|
837 |
837 |
return "{Taxon_names=" + taxonNames + ", Synonyms=" + synonyms
|
838 |
838 |
+ ", Accepted_taxa=" + aceptedTaxa
|
839 |
|
+ ", Nomeclatural_references=" + nomenclRef
|
|
839 |
+ ", Nomenclatural_references=" + nomenclRef
|
840 |
840 |
+ ", Classifications=" + classifications
|
841 |
841 |
+ ", Descriptive_source_references=" + descrSourceRef
|
842 |
842 |
+ ", References=" + allReferences + ", All_taxa=" + allTaxa
|
typos