Auto-capitalisation
Submitted by Guest on Thu, 10/06/2010 - 13:09
Since version 1.4, I have been getting frustrated with this function taking capitals out of acronym like FIV (changing it to Fiv) when editing product names or adding few products or fees. Can it be turned off in some areas (it doesn't exist when writing client histories for example).
Glen
Greenvale
- Printer-friendly version
- Login or register to post comments
Auto-capitalisation
You can, but not in a straightforward manner.
Propercasing is turned on by adding:
<assertion name="propercase"/>
to an archetype node. E.g for product.medication ensures that the product name is propercased using:
You can edit the archetype to remove this assertion.
Alternatively, If you have a few acronyms you use all the time, you can edit propercase.properties and add exceptions for each one.
This file is located in <TOMCAT_HOME>/webapps/openvpms/WEB-INF/classes/org/openvpms/web/resource/localisation/propercase.properties
Replace <TOMCAT_HOME> with the root directory of your tomcat installation.
By default it contains:
You need to add more exceptions:
If you change propercase.properties or reload your archetypes, you need to restart tomcat for the changes to be picked up.
In both cases, you will need to re-apply your changes when you move to a new version of OpenVPMS.
-Tim
Auto-capitalisation
Should also point out that this configuration could be moved into the Administration -> Lookups workspace, if there was enough interest.
Lookups are held in the database so don't get lost when upgrading OpenVPMS.
-Tim
Re: Auto-capitalisation
Matt C
On Tue, 15 Jun 2010 01:47:56 +0000 (UTC), tma@netspace.net.au wrote: > Should also point out that this configuration could be moved into the > Administration -> Lookups workspace, if there was enough interest. > Lookups are held in the database so don't get lost when upgrading OpenVPMS. > > -Tim > > _______________________________________________ > OpenVPMS User Mailing List > users@lists.openvpms.org > To unsubscribe or change your subscription visit: > http://lists.openvpms.org/listinfo/users > Posts from this mailing list can be viewed online and replied to in the > OpenVPMS User's forum- http://tinyurl.com/openvfu >_______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/users Posts from this mailing list can be viewed online and replied to in the OpenVPMS User's forum- http://tinyurl.com/openvfu