Page 1 of 1

Case Sensitivity in List View

PostPosted:Wed Jan 18, 2012 5:37 pm
by aharvey
Hello

The company I work for is currently evaluating OpenKM for use as a records management solution, however one behavior in the program is causing us some concern as we cannot figure our how to correct it.

It is currently separating case in the list view window, meaning when viewing files they are ordered like this:

Alpha
Beta
Charlie
alpha
beta
charlie

We need the software to be able to list files with case insensitivity, meaning my example should be listed like this, with the word cat added of course to better illustrate the needed insensitivity:

cat
Charlie
charlie

Has anyone else modified OpenKM to conform to this type of environment? Or at least can point me in the right direction?

Thank you in advanced for any replys.

Re: Case Sensitivity in List View

PostPosted:Thu Jan 19, 2012 11:15 am
by jllort
Now you should make minimal changes and recompile sourcecode.

Into com.openkm.frontend.client.util package you'll find interesting java classes for doing it changes DocumentComparator, FolderComparator etc... for example if we're talking about folders the change should be:

Original
Code: Select all
return first.getName().compareTo(second.getName());
Changed to
Code: Select all
return first.getName()toLowerCase().compareTo(second.getName().toLowerCase());