# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 CERN.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Thesis specific custom fields.

Implements the following fields:

- thesis.university
"""
from invenio_i18n import lazy_gettext as _
from invenio_records_resources.services.custom_fields import TextCF

THESIS_NAMESPACE = {
    # Thesis
    "thesis": "",
}

THESIS_CUSTOM_FIELDS = [
    TextCF(name="thesis:university"),
]

THESIS_CUSTOM_FIELDS_UI = {
    "section": _("Thesis"),
    "fields": [
        {
            "field": "thesis:university",
            "ui_widget": "Thesis",
            "props": {
                "label": _("Thesis"),
                "icon": "university",
                "university": {
                    "label": _("Awarding university"),
                    "placeholder": "",
                    "description": "",
                },
            },
        }
    ],
}

6a5165a7c9b3f0f913d1f76bf06b1ced28372101
<mask token>

<mask token>
THESIS_NAMESPACE = {'thesis': ''}
THESIS_CUSTOM_FIELDS = [TextCF(name='thesis:university')]
THESIS_CUSTOM_FIELDS_UI = {'section': _('Thesis'), 'fields': [{'field':
    'thesis:university', 'ui_widget': 'Thesis', 'props': {'label': _(
    'Thesis'), 'icon': 'university', 'university': {'label': _(
    'Awarding university'), 'placeholder': '', 'description': ''}}}]}

<mask token>
from invenio_i18n import lazy_gettext as _
from invenio_records_resources.services.custom_fields import TextCF
THESIS_NAMESPACE = {'thesis': ''}
THESIS_CUSTOM_FIELDS = [TextCF(name='thesis:university')]
THESIS_CUSTOM_FIELDS_UI = {'section': _('Thesis'), 'fields': [{'field':
    'thesis:university', 'ui_widget': 'Thesis', 'props': {'label': _(
    'Thesis'), 'icon': 'university', 'university': {'label': _(
    'Awarding university'), 'placeholder': '', 'description': ''}}}]}

# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 CERN.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Thesis specific custom fields.

Implements the following fields:

- thesis.university
"""
from invenio_i18n import lazy_gettext as _
from invenio_records_resources.services.custom_fields import TextCF

THESIS_NAMESPACE = {
    # Thesis
    "thesis": "",
}

THESIS_CUSTOM_FIELDS = [
    TextCF(name="thesis:university"),
]

THESIS_CUSTOM_FIELDS_UI = {
    "section": _("Thesis"),
    "fields": [
        {
            "field": "thesis:university",
            "ui_widget": "Thesis",
            "props": {
                "label": _("Thesis"),
                "icon": "university",
                "university": {
                    "label": _("Awarding university"),
                    "placeholder": "",
                    "description": "",
                },
            },
        }
    ],
}
