Project

General

Profile

« Previous | Next » 

Revision 8964

only index non-empty comment text

View differences:

src/edu/ucsb/nceas/metacat/annotation/AnnotatorService.java
110 110
				Object commentObj = row.get("text");
111 111
				if (commentObj != null) {
112 112
					String value = commentObj.toString();
113
					commentValues.add(value);
113
					if (value != null && value.length() > 0) {
114
						commentValues.add(value);
115
					}
114 116
				}
115 117
				annotations.put(commentKey, commentValues);
116 118

  

Also available in: Unified diff