forked from ckan/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subfields.yaml
117 lines (101 loc) · 2.43 KB
/
subfields.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
scheming_version: 2
dataset_type: subfields
about: Example dataset schema with simple and repeating subfields
about_url: https://github.com/ckan/ckanext-scheming
dataset_fields:
- field_name: title
label: Title
preset: title
form_placeholder: eg. A descriptive title
required: True
- field_name: name
label: URL
preset: dataset_slug
form_placeholder: eg. my-dataset
- field_name: notes
label: Description
form_snippet: markdown.html
form_placeholder: eg. Some useful notes about the data
required: True
- field_name: owner_org
label: Organization
preset: dataset_organization
- field_name: license_id
label: License
form_snippet: license.html
help_text: License definitions and additional information can be found at http://opendefinition.org/
- field_name: citation
label: Citation
repeating_subfields:
- field_name: originator
label: Originator
preset: multiple_text
form_blanks: 3
required: true
- field_name: publication_date
label: Publication Date
preset: date
- field_name: online_linkage
label: Online Linkage
preset: multiple_text
form_blanks: 2
- field_name: contact_address
label: Contact Address
repeating_subfields:
- field_name: address
label: Address
required: true
- field_name: city
label: City
- field_name: state
label: State
- field_name: postal_code
label: Postal Code
- field_name: country
label: Country
resource_fields:
- field_name: url
label: URL
preset: resource_url_upload
- field_name: name
label: Title
form_placeholder: Descriptive name of the resource.
- field_name: description
label: Description
form_snippet: markdown.html
form_placeholder: Summary explanation of file contents, purpose, origination, methods and usage guidance.
- field_name: schedule
label: Schedule
repeating_subfields:
- field_name: impact
label: Impact
preset: select
choices:
- label: All
value: A
- label: Partial
value: P
- label: Corrections
value: C
required: true
- field_name: frequency
label: Frequency
preset: select
choices:
- label: Daily
value: 1d
- label: Weekly
value: 7d
- label: Monthly
value: 1m
- label: Quarterly
value: 3m
- label: Semiannual
value: 6m
- label: Annual
value: 1y
- label: Decennial
value: 10y
- field_name: format
label: Format
preset: resource_format_autocomplete