Project

General

Profile

Revision 89ee9ecd

ID89ee9ecd4c949e02b038a1d1cfe6d665a6d9b910
Parent 07d5561c
Child d014205f

Added by Andreas Müller over 2 years ago

return Annotation in notes import

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/DbImportBase.java
141 141
	 * @param annotatableEntity
142 142
	 * @param notes
143 143
	 */
144
	protected void doNotes(AnnotatableEntity annotatableEntity, String notes) {
145
		if (StringUtils.isNotBlank(notes) && annotatableEntity != null ){
144
	protected Annotation doNotes(AnnotatableEntity annotatableEntity, String notes) {
145
		if (isNotBlank(notes) && annotatableEntity != null ){
146 146
			String notesString = String.valueOf(notes);
147 147
			if (notesString.length() > 65530 ){
148 148
				notesString = notesString.substring(0, 65530) + "...";
......
152 152
			//notesAnnotation.setAnnotationType(AnnotationType.EDITORIAL());
153 153
			//notes.setCommentator(bmiConfig.getCommentator());
154 154
			annotatableEntity.addAnnotation(notesAnnotation);
155
			return notesAnnotation;
155 156
		}
157
		return null;
156 158
	}
157 159

  
158 160

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)