Project

General

Profile

« Previous | Next » 

Revision c7a160ba

Added by Katja Luther almost 8 years ago

add publication year to zoological simple details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java
88 88
		createInfragenerericEpithetControls(this, nonViralName, style);
89 89
		createSpecificEpithetControls(this, nonViralName, style);
90 90
		createInfraSpecificEpithetControls(this, nonViralName, style);
91
		createSpecificNameParts(this, nonViralName, style);
91 92
		if (isAdvancedView){
92
		    createSpecificNameParts(this, nonViralName, style);
93
		    //createSpecificNameParts(this, nonViralName, style);
93 94
			text_appendedPhrase = formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
94 95
		}
95 96
	}
......
132 133
			switch(nonViralName.getNomenclaturalCode()){
133 134
			case ICNAFP :
134 135
				// TODO RL
135
				if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL))
136
				if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL) && isAdvancedView)
136 137
				{
137 138
					createBotanicalNameParts(formElement, nonViralName, style);
138 139
				}
......
163 164

  
164 165
	private void createZoologicalNameParts(ICdmFormElement formElement, NonViralName nonViralName, int style){
165 166
		ZoologicalName zoologicalName = (ZoologicalName) nonViralName;
166
		text_breed = formFactory.createTextWithLabelElement(formElement, "Breed", zoologicalName.getBreed(), style);
167 167
		text_publicationYear = formFactory.createNumberTextWithLabelElement(formElement, "Publication Year", zoologicalName.getPublicationYear(), style);
168
		text_originalPublicationYear = formFactory.createNumberTextWithLabelElement(formElement, "Orig. Publication Year", zoologicalName.getOriginalPublicationYear(), style);
168
		if (isAdvancedView){
169
		    text_breed = formFactory.createTextWithLabelElement(formElement, "Breed", zoologicalName.getBreed(), style);
170
			text_originalPublicationYear = formFactory.createNumberTextWithLabelElement(formElement, "Orig. Publication Year", zoologicalName.getOriginalPublicationYear(), style);
171
		}
169 172
	}
170 173

  
171 174
	private void createGenusOrUninomialControls(ICdmFormElement element, NonViralName nonViralName, int style){

Also available in: Unified diff