IPK-BIT / miappe-wizard

Biologist-friendly application for creating MIAPPE-compliant metadata
https://ipk-bit.github.io/miappe-wizard/
MIT License
3 stars 0 forks source link

Allow prefilling of key-values pairs with primitive values on investigation and study level via config #18

Closed patrick-koenig closed 7 months ago

patrick-koenig commented 7 months ago

Examples:

window.config = {

    prefill: [
        {
            type: 'value',
            isaMapping: {
                entity: 'investigation',
                attribute: 'title'
            },
            value: 'Prefilled investigation title ...'
        },
        {
            type: 'value',
            isaMapping: {
                entity: 'study',
                attribute: 'description',
                studyIndex: 0
            },
            value: 'Prefilled study description ...'
        }
    ]
}