Project

General

Profile

Revision 21f2593c

ID21f2593c3c73ca1f555edb3a29858342571ba784
Parent 45d128dd
Child 9091311f

Added by Katja Luther almost 2 years ago

minor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/media/MediaSpecimenGeneralDetailElement.java
8 8
 */
9 9
package eu.etaxonomy.taxeditor.ui.section.occurrence.media;
10 10

  
11
import java.time.ZonedDateTime;
12

  
11 13
import org.joda.time.DateTime;
12 14

  
13 15
import eu.etaxonomy.cdm.api.service.IVocabularyService;
......
74 76
            comboKindOfUnit = formFactory.createDefinedTermComboElement(mediaSpecimenVocabulary, formElement, "Kind of Media", entity.getKindOfUnit(), style);
75 77
            textTitleLanguageString = formFactory.createLanguageStringWithLabelElement(formElement, "Motif", media.getTitle(), style);
76 78
            selectionArtist = formFactory.createSelectionElement(AgentBase.class, getConversationHolder(), formElement, "Prepared by", media.getArtist(), EntitySelectionElement.ALL, style);
77
            date = formFactory.createDateElement(formElement, "Preparation Date", DateConverter.convertJoda2ZonedDateTime(entity.getMediaSpecimen().getMediaCreated()), style, true);
79
            ZonedDateTime mediaCreated = null;
80
            if (entity.getMediaSpecimen().getMediaCreated() != null){
81
            	mediaCreated = DateConverter.convertJoda2ZonedDateTime(entity.getMediaSpecimen().getMediaCreated());
82
            }
83
            date = formFactory.createDateElement(formElement, "Preparation Date", mediaCreated, style, true);
78 84
            textMethodLanguageString = formFactory.createLanguageStringWithLabelElement(formElement, "Method", media.getDescription(Language.getDefaultLanguage()), style);
79 85
            selection_collection = formFactory.createSelectionElement(Collection.class, getConversationHolder(), formElement, "Collection", entity.getCollection(), EntitySelectionElement.ALL, style);
80 86
            text_accessionNumber = formFactory.createTextWithLabelElement(formElement, "Accession Number", entity.getAccessionNumber(), style);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)