Difference between revisions of "Migration from 4.0 to 4.1"

From OpenKM Documentation
Jump to: navigation, search
Line 13: Line 13:
  
 
{| align="center" border="1" cellpadding="5" cellspacing="0"
 
{| align="center" border="1" cellpadding="5" cellspacing="0"
! Id || Code        || XML
+
! Type || XML
 
|-
 
|-
| 1 || INPUT        || <input label="xxx" name="okp:yyy" />
+
| 1   || <input label="xxx" name="okp:yyy" />
 
|-
 
|-
| 2 || TEXT_AREA   || <textarea label="xxx" name="okp:yyy" />
+
| 2    || <textarea label="xxx" name="okp:yyy" />
 
|-
 
|-
| 3 || SELECT      || <select label="xxx" name="okp:yyy" type="simple"><br/>&nbsp;&nbsp;&nbsp;&nbsp;<option label="xxx" value="yyy" /><br/>&nbsp;&nbsp;&nbsp;&nbsp;...<br/></select>
+
| 3   || <select label="xxx" name="okp:yyy" type="simple"><br/>&nbsp;&nbsp;&nbsp;&nbsp;<option label="xxx" value="yyy" /><br/>&nbsp;&nbsp;&nbsp;&nbsp;...<br/></select>
 
|-
 
|-
| 4 || SELECT_MULTI || <select label="xxx" name="okp:yyy" type="multiple"><br/>&nbsp;&nbsp;&nbsp;&nbsp;<option label="xxx" value="yyy" /><br/>&nbsp;&nbsp;&nbsp;&nbsp;...<br/></select>
+
| 4   || <select label="xxx" name="okp:yyy" type="multiple"><br/>&nbsp;&nbsp;&nbsp;&nbsp;<option label="xxx" value="yyy" /><br/>&nbsp;&nbsp;&nbsp;&nbsp;...<br/></select>
 
|}
 
|}
  

Revision as of 09:56, 23 April 2010


Nota advertencia.png This migration process is under revision, don't try until OpenKM 4.1 is released.

  • Stop the JBoss server.
  • Make a backup of your current repository and configuration files... because Murphy's laws :)
  • Rename your my_groups.cnd (perhaps you file has other name, but the extension should be .cnd) to PropertyGroups.cnd
  • Remember that in OpenKM 4.0 the Property Groups definitions was splitted in two files: the metadata description and the translations. Create a file PropertyGroups.xml which contents should be the combination of old PropertyGroupValues.properties

(metadata description) and PropertyGroupsBundle.properties (translations) in the new XML-based format. Refer to [Property Groups] for more info on this format.

  • These are the equivalences:
Type XML
1 <input label="xxx" name="okp:yyy" />
2 <textarea label="xxx" name="okp:yyy" />
3 <select label="xxx" name="okp:yyy" type="simple">
    <option label="xxx" value="yyy" />
    ...
</select>
4 <select label="xxx" name="okp:yyy" type="multiple">
    <option label="xxx" value="yyy" />
    ...
</select>
  • Starts the JBoss server again.

Nota clasica.png You don't have to register your Property Groups again.