Manage different level of confidence in the submission

This commit is contained in:
Giuseppe Digilio
2018-12-06 22:39:18 +01:00
parent fcd997dba3
commit 2d20d524de
20 changed files with 475 additions and 190 deletions

View File

@@ -49,33 +49,60 @@ module.exports = {
// NOTE: every how many minutes submission is saved automatically
timer: 5
},
metadata: {
// NOTE: allow to set icons used to represent metadata belonging to a relation group
icons: [
icons: {
metadata: [
/**
* NOTE: example of configuration
* {
* // NOTE: metadata name
* name: 'dc.author',
* config: {
* // NOTE: used when metadata value has an authority
* withAuthority: {
* // NOTE: fontawesome (v4.x) icon classes and bootstrap color utility classes can be used
* style: 'fa-user'
* },
* // NOTE: used when metadata value has not an authority
* withoutAuthority: {
* style: 'fa-user text-muted'
* }
* }
* // NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
* style: 'fa-user'
* }
*/
{
// NOTE: metadata name
name: 'dc.author',
// NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
style: 'fa-user'
},
// default configuration
{
name: 'default',
config: {}
style: ''
}
]
],
authority: {
confidence: [
/**
* NOTE: example of configuration
* {
* // NOTE: confidence value
* value: 'dc.author',
* // NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
* style: 'fa-user'
* }
*/
{
value: 600,
style: 'text-success'
},
{
value: 500,
style: 'text-info'
},
{
value: 400,
style: 'text-warning'
},
// default configuration
{
value: 'default',
style: 'text-muted'
},
]
}
}
},
// Angular Universal settings