Revision 5465eca0
Added by Andreas Kohlbecker about 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/presenter/phycobank/RegistrationDTO.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
private String summary = ""; |
21 | 21 |
|
22 |
private String citation = ""; |
|
23 |
|
|
22 | 24 |
private RegistrationType registrationType; |
23 | 25 |
|
24 | 26 |
private Registration reg; |
... | ... | |
36 | 38 |
registrationType = RegistrationType.from(reg); |
37 | 39 |
if(registrationType.isName()){ |
38 | 40 |
summary = reg.getName().getTitleCache(); |
41 |
if(reg.getName().getNomenclaturalReference() != null){ |
|
42 |
citation = reg.getName().getNomenclaturalReference().generateTitle(); |
|
43 |
} |
|
39 | 44 |
} else if(registrationType.isTypification()){ |
40 | 45 |
summary = new TypeDesignationConverter(reg.getTypeDesignations(), typifiedName) |
41 | 46 |
.buildString().print(); |
47 |
if(!reg.getTypeDesignations().isEmpty()){ |
|
48 |
if(reg.getTypeDesignations().iterator().next().getCitation() != null) { |
|
49 |
citation = reg.getTypeDesignations().iterator().next().getCitation().generateTitle(); |
|
50 |
} |
|
51 |
} |
|
42 | 52 |
} else { |
43 | 53 |
summary = "- INVALID REGISTRATION -"; |
44 | 54 |
} |
... | ... | |
77 | 87 |
|
78 | 88 |
|
79 | 89 |
/** |
80 |
* @return the internalRegId
|
|
90 |
* @return the specificIdentifier
|
|
81 | 91 |
*/ |
82 |
public String getInternalRegId() {
|
|
92 |
public String getSpecificIdentifier() {
|
|
83 | 93 |
return reg.getSpecificIdentifier(); |
84 | 94 |
} |
85 | 95 |
|
... | ... | |
97 | 107 |
return reg.getCreated(); |
98 | 108 |
} |
99 | 109 |
|
110 |
public String getCitation() { |
|
111 |
return citation; |
|
112 |
} |
|
113 |
|
|
100 | 114 |
} |
Also available in: Unified diff
ref #6169 showing citation in list and eums items in UPPERCASE