summaryrefslogtreecommitdiff
path: root/src/local/domain/cri.rhizi.net/domain_types.js
blob: 3d7c3492d7e483fbb59df1395766b0b23b14a84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
    This file is part of rhizi, a collaborative knowledge graph editor.
    Copyright (C) 2014-2015  Rhizi

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

define({
    type_attributes: [
        ['internship', {
            'title': 'Internship',
            'attributes':
                ['status', 'startdate', 'enddate', 'description', 'url',
                 'internship-type',
                 'facility',
                 'facility-affiliation',
                 'cnrs-inserm-unit-code',
                 'street-address',
                 'city',
                 'country',
                ],
        }],
        ['skill', {
            'title': 'Skill',
            'attributes': ['description', 'url'],
        }],
        ['interest', {
            'title': 'Interesst',
            'attributes': ['description', 'url'],
        }],
        ['person', {
            'title': 'Student',
            'attributes': ['description', 'url', 'email', 'image-url'],
        }],
        ['resource', {
            'title': 'Mentor',
            'attributes': ['description', 'url', 'organisation', 'image-url'],
        }],
        ['club', {
            'title': 'Club',
            'attributes': ['description', 'url'],
        }]
    ],
    attribute_titles: {
        'name': 'Name',
        'type': 'Type',
        'description': 'Description',
        'url': 'URL',
        'status': 'Status',
        'startdate': 'Start Date',
        'enddate': 'End Date',
        'internship-type': 'Internship Type',
        'facility': 'Lab/Company',
        'facility-affiliation': 'Lab affiliation',
        'cnrs-inserm-unit-code': 'CNRS / INSERM unit code',
        'street-address': 'Street address',
        'city': 'City',
        'email': 'Email',
        'image-url':'Image URL',
        'country': 'Country',
    }, 
    attribute_ui:{
        'name': 'input',
        'type': 'type',
        'description': 'textarea',
        'url': 'url',
        'status': 'input',
        'startdate': 'Start Date',
        'enddate': 'End Date',
        'internship-type': 'input',
        'facility': 'input',
        'facility-affiliation': 'input',
        'cnrs-inserm-unit-code': 'input',
        'street-address': 'input',
        'city': 'input',
        'email': 'email',
        'image-url':'image',
        'country': 'input',
    },
});