@@ -39,11 +39,10 @@ Currently, datahub depends on:
Datahub configuration is spread among different files located in <kbd>src/config</kbd>. These files are:
-[icat.js](#icatjs) : configure access to the metadata catalogue.
-[icatPlus.js](#icatplusjs) : configure access to the ICAT+ server
-[techniques.js](#techniquesjs) : configure the known techniques
-[gui.config.js](#guiconfigjs) : configuration file for the logbook (to be moved to config.js)
-[config.js](#configjs) : UI general configuration of the GUI
-`icat.js` - configure access to metadata catalogue
-`icatPlus.js` - configure access to ICAT+ server
-[`techniques.js`](#techniquesjs) - configure known techniques
-[`ui.js`](#uijs) - general UI configuration
Some of the configuration options in these files are stored in [environment variables](#environment-variables).
...
...
@@ -61,7 +60,7 @@ The following portal configuration variables are declared in <kbd>.env</kbd>:
In development, you can override any of these variables by creating a file called `.env.local`. This file is ignored from version control.
## techniques.js
## `techniques.js`
The file [techniques.js](src/config/techniques/techniques.js) complements short named techniques as stored in ICAT metadata catalogue. It maps a short name to a description and display settings.
...
...
@@ -81,23 +80,12 @@ color: "#97E0FE"
},
```
## gui.config.js
Edit the file [gui.config.js](src/config/gui.config.js) with your favorite text editor and set the GUI configuration following the indications below.
<!--START configurationGUI -->
```js
```
<!--END configurationGUI -->
## ui.config.js
## `ui.js`
<!--START config -->
```js
var UI = {
constUI={
status:{
offline:{
enabled:false,
...
...
@@ -105,20 +93,21 @@ var UI = {
},
},
menu:{
applicationTittle: 'Data Portal',
applicationTitle:'Data Portal',
isSearchVisible:true,
isClosedDataVisible:true,
isOpenDataVisible:true,
isMySelectionVisible:true,
},
sampleTracking:{
//** Makes visible or invisible the menus and tabs related to sample tracking */
enabled:true,
},
loginForm:{
header:'',
/** Text displayed on top of the username sigin form. Someone can customize the text as: User office account, ESRF Account, Umbrella account, etc... */
usernameLabel:'Username',
sso: {
title: 'Sign in with SSO',
buttonText: 'ESRF SSO',
},
ssoBtnLabel:'Sign in with ESRF SSO',
},
investigationContainer:{
isDatasetListVisible:true,
...
...
@@ -147,11 +136,14 @@ var UI = {
* When it is set to false, the event list is not refreshed but the amount of new events which arriived is shown.*/
AUTOREFRESH_EVENTLIST:true,
/* Time interval between requests checking whether new events arrived. (in milliseconds) */
AUTOREFRESH_DELAY: 20000,
AUTOREFRESH_DELAY:60000,
},
dangerousGoodsHelp:
'Please ensure you reply correctly to this question after consultation with your lab safety referent and/or the transport company. This question is for ESRF internal use only - you must correctly declare your parcel in the official transport documents',
/** Text displayed on top of the username sigin form. Someone can customize the text as: User office account, ESRF Account, Umbrella account, etc... */