Adding ISCO 88 Job Codes to iHRIS Manage: Difference between revisions

From IHRIS Wiki
Line 43: Line 43:
     </path>
     </path>
  </metadata>
  </metadata>
<configurationGroup name='ihris-manage-isco-88'>
 
</configurationGroup>
</I2CEConfiguration>
</I2CEConfiguration>
</source>
</source>


===Creating The Sub-Modules===
===Creating The Sub-Modules===

Revision as of 12:07, 3 June 2009

The ISCO 88 Job Codes can be found here and represent an international standard for classifying jobs. They are broken up hierachically into major, sub-major , minor groups under which the job codes (called unit) are under the minor groups.

We will create a module for each of the major groups, all of which will sit under a meta-module.

Getting The Data

The data file can be found in the launchpad bzr repository for I2CE

Creating The XML Magic(Configuration) Data

Creating The Modules

Since this data is related to Jobs in iHRIS Manage, we will put everything as sub-modules under the ihris-manage-Job. This can be found in the directory:

[BASE INSTALLATION PATH]/ihris-manage/modules/ManageJob

All instructions below assume that you are in this directory.

The first thing we will need to do is to enable sub-modules for ihris-manage-Job (you may wish to read the module structure overview before proceeding). To do this

gedit Job.xml

and make sure the following lines are in the appropriate place in the metadata section: <source lang='xml'> <path name='modules'>

 <value>./modules</value>

</path> </source> Now we add the modules directory

mkdir modules

Creating The Meta-Module

We will create a meta-module to contain general information about the ISCO Codes

cd [BASE INSTALLATION PATH]/ihris-manage/modules/ManageJob/modules
mkdir isco_88
cd isco_88
mkdir modules
gedit ISCO_88.xml

Add the following contents and save: <source lang='xml'> <?xml version="1.0"?> <!DOCTYPE I2CEConfiguration SYSTEM "I2CE_Configuration.dtd"> <I2CEConfiguration name='ihris-manage-isco-88'>

 <metadata>
   <displayName>ISCO 88 Job Codes</displayName>   
   <description>The ISCO 88 Job Codes</description>
   <path name='modules'>
     <value>./modules</value>
   </path>
</metadata>
<configurationGroup name='ihris-manage-isco-88'>
  
</configurationGroup>

</I2CEConfiguration> </source>

Creating The Sub-Modules