Revision cdacf5e4
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationItemEditButtonGroup.java | ||
---|---|---|
111 | 111 |
); |
112 | 112 |
String labelText = typeDesignationWorkingSet.getRepresentation(); |
113 | 113 |
labelText = labelText.replaceAll("^[^:]+:", ""); // remove "Type:", "NameType:" from the beginning |
114 |
if(typeDesignationWorkingSet.getWorkingsetType().equals(TypeDesignationWorkingSetType.NAME_TYPE_DESIGNATION_WORKINGSET)){ |
|
115 |
// remove the citation from the label which looks very redundant in the registration working set editor |
|
116 |
// TODO when use in other contexts. it might be required to make this configurable. |
|
117 |
|
|
118 |
String citationString = regDto.getCitation().getCitation(); |
|
119 |
labelText = labelText.replaceFirst(citationString, ""); |
|
120 |
} |
|
114 | 121 |
Label label = new Label(labelText); |
115 | 122 |
|
116 | 123 |
label.setWidthUndefined(); |
Also available in: Unified diff
stripping citation string from nametypes in registration working sets