From: Aron Roberts Date: Wed, 30 May 2012 02:57:07 +0000 (-0700) Subject: CSPACE-5229: Remove case-sensitivity when adding matching non-preferred terms to... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=3c275e50898d613526ae0c5b10c7c105f50c83f0;p=tmp%2Fjakarta-migration.git CSPACE-5229: Remove case-sensitivity when adding matching non-preferred terms to partial term search results. --- diff --git a/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/nuxeo/AuthorityItemDocumentModelHandler.java b/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/nuxeo/AuthorityItemDocumentModelHandler.java index b9979ecb7..c1b3cdad8 100644 --- a/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/nuxeo/AuthorityItemDocumentModelHandler.java +++ b/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/nuxeo/AuthorityItemDocumentModelHandler.java @@ -527,7 +527,7 @@ public abstract class AuthorityItemDocumentModelHandler List result = new ArrayList(); for (String termDisplayName : termDisplayNameList) { - if (termDisplayName.contains(partialTerm) == true) { + if (termDisplayName.toLowerCase().contains(partialTerm.toLowerCase()) == true) { result.add(termDisplayName); } }