Project

General

Profile

« Previous | Next » 

Revision 55538

avoid to interpret NO as boolean

View differences:

modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/dsm/dao/DatasourceSpecs.java
116 116
	private static Object getValue(final Entry<FilterName, Object> e) {
117 117
		if (e.getValue() instanceof String) {
118 118
			final String s = ((String) e.getValue());
119
			Boolean b = BooleanUtils.toBooleanObject(s);
120
			if (b != null) {
121
				return b;
119

  
120
			if (!e.getKey().equals(FilterName.country)) {
121
				Boolean b = BooleanUtils.toBooleanObject(s);
122
				if (b != null) {
123
					return b;
124
				}
122 125
			}
123 126
			return e.getKey().equals(FilterName.id) ? s : StringUtils.lowerCase(s);
124 127
		}

Also available in: Unified diff