• Convert all uppercase keywords to lowercase automatically?

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #27794  by bartekhejnowicz
 
Because of lack of communication between our deparments, for now we have multiple variants of the same keywords. So... I turned on force converting to lowercase and things are getting straight.
But what to do with existing keywords? Is there any possible way to convert all uppercase keywords to lowercase?
Doing it manually could take some time, as we got almost 2000 documens already keyworded...

Appreciate any help! :)
 #27824  by jllort
 
First of all, for futere take in mind use http://wiki.openkm.com/index.php/Applic ... conversion

It's more easy than you thing, but need some time. The idea will be:
- Set force keywords to lower case
- Iterate across all respository documents and if there's some keywords asociated then set it again

For it you must do with scripting feature:
- This script will help you on iterate along all repository:
http://wiki.openkm.com/index.php/Script ... _traversal

- Then you need to know something about openkm api -> here's the actual 6.2.x api http://doxygen.openkm.com/
Document object allow you to get keywords getKeywords () -> http://doxygen.openkm.com/openkm/de/d62 ... ument.html
And OKMProperty allows you to remove and get keywords again ( idea will be remove and set again ) http://doxygen.openkm.com/openkm/da/d9f ... perty.html
Should be something like OKMProperty.getInstance().removeKeyword(null, doc.getPath, keyword); and other to set

I suggest test first in a non production environement or at least, as you see in script to iterate in all repository start on a testing node /okm:root/testing not on /okm:root

Hope this could help you. Is more easy than seems.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.