Page History
...
All deployments of the i2b2 web client will require modification of the Hive Connection configuration file. This configuration file is located at /i2b2_config_data.js. An example file is as follows:
{ |
The first configuration attribute urlProxy must be changed for every deployment. It should be set to point to your web proxy cell. In all cases it must be the same base URL (hostname and port) as the website that serves the default.htm file. For more information on the web Proxy communication with the hive please see the document called Web Client Architecture Guide.
Name | Null | Type | Description |
urlProxy | N | String | The full path URL for the i2b2 web services proxy server. |
urlFramework | N | String | The full path URL to the root js-i2b2 directory. |
lstDomains | N | Array | An array containing 1 or more domain definition data objects. |
The domain definition data object contains the following attributes for each data object:
Name | Null | Type | Description |
domain | N | String | A short code used by the proxy server for the domain/group ID. |
name | N | String | A human-readable string containing the domain's name. |
urlCellPM | N | String | The full path URL that should be used by the back-end PM Cell. |
project | Y | String | Login to a specific project without prompting the user to select one from a list. |
isSHRINE | Y | Boolean | Should this domain use SHRINE processing functions? |
debug | Y | Boolean | Are debugging messages logged? (uses additional memory). |
...
// THESE ARE ALL THE CELLSTJAT THAT ARE INSTALLED ONTO THE SERVER |
This JSON structure is used to register a list of cells / plug-ins that are able to be loaded if the user has been authorized to use them (via the data returned from the Project Management cell during successful login). The above code listing has information for registering the following cells / modules (in order):
...
For the framework to be able to properly load a plug-in module, information which defines the new module must be provided. This is accomplished by creating a JSON-based configuration file within the plug-in's root directory. An example would be located at:
/js-i2b2/cells/plugins/examples/ExampHello/cell_config_data.js
This file would have the following structure:
// This file contains a list of all files that need to be loaded dynamically |
The configuration file has three main parts to it:
...