we've got some custom content types with the behavior
plone.categorization. If a user adds new keywords to such a content type he/she is able to put a space before or after a keyword. This happens if he/she uses copy and paste. Theses spaces will not be stripped when the content is saved and end up in the catalog as e.g.
" research" instead of
Where can I override that behavior so that all keywords are checked and stripped before saving and indexing them to the context?
Ans as a second question: How can I use
plone.api.content.find(Subject = (...)) to search for content independent of the case of the keyword. So
Subject = 'research' should output the same result as
Subject = 'Research'.