This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.json
188 lines (188 loc) · 6.95 KB
/
metadata.json
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"id": "1",
"name": "Begravelsesprotokoller 1861-1940",
"description": "Brug år og nummer fra det alfabetiske register til at finde begravelsen.",
"url": "http://www.kbharkiv.dk/sog-i-arkivet/kilder-pa-nettet/begravelser",
//This is relevant for configuration of the form
"tasks": [
{
"id": "1",
"name": "Indtastning af begravelsesprotokoller",
"description": "Dette er Stadsarkivets første indtastningsprojekt",
"collection_id": "1",
//Indicates whether or not the user should mark up the area of the post as the first thing
//Note the data concerning the post area of the page is required to be sent before indexed entities
//as this requires a post id
"post_marking_required": "1",
//An entity is a collection of fields that belongs to each other in a logical sense
//Example: The main person of a post, or the addresses of a person
"entities": [
{
"id": "1",
//Is the entity required?
"required": "1",
//How many entries per post of this type? (1= zero (depending on required attribute) or one,
//many = zero (depending on required attribute) to many)
"countPerEntry": "1",
//The title of the entity
"guiName": "Begravet person",
"task_id": "1",
//Child entities are entities related to the specific entity
//Example: The positions of the main person
"child_entities": [
{
"id": "3",
"required": "0",
"countPerEntry": "many",
"guiName": "Hovedpersonens stillinger",
"task_id": "1",
"fields": [
{
"id": "1",
"name": "Stilling",
"formType": "text",
"defaultValue": null,
"placeholder": "Personens stilling",
"helpText": "Indtast én stilling af gangen",
"required": "1",
"field_group_number": "3",
"field_group_name": "Hovedpersonens stillinger"
}
]
}
],
//The fields of the entity. This is single types of data, that can be typed into a field in a form
"fields": [
{
"id": "1",
//The name of the field as presented to the user
"gui_name": "Fornavn",
//The type of field. Possible values: text, date, autocomplete
"formType": "text",
"defaultValue": null,
"placeholder": "Personens fornavn",
"helpText": "Indtast personens første navn her",
//The name of the field. Used to identify data when sent to the server
"fieldName": "firstname",
"required": "1",
//The step in which the field belongs (an entity can be divided in several steps depending on the source)
"field_group_number": "1",
"field_group_name": "Hovedpersonens fornavne"
},
{
"id": "2",
"name": "Efternavn",
"formType": "text",
"defaultValue": null,
"placeholder": "Personens efternavn",
"helpText": "Indtast alle andre navne end fornavnet",
"required": "1",
"field_group_number": "1",
"field_group_name": "Hovedpersonens efternavne"
},
{
"id": "3",
"name": "Fødested",
"formType": "typeahead",
"formSource": "http://www.kbhkilder.dk/api/datasource?type=6",
"defaultValue": null,
"placeholder": "Personens fødested",
"helpText": "Vælg et fødested på listen",
"required": "1",
"field_group_number": "2",
"field_group_name": "Hovedpersonens efternavne"
}
]
},
{
"id": "2",
"required": "0",
"countPerEntry": "many",
"guiName": "Pårørende på bladet",
"task_id": "1",
"fields": [
{
"id": "1",
"name": "Fornavn",
"formType": "text",
"defaultValue": null,
"placeholder": "Personens fornavn",
"helpText": "Indtast personens første navn her",
"required": "1",
"field_group_number": "1",
"field_group_name": "Pårørende"
},
{
"id": "2",
"name": "Efternavn",
"formType": "text",
"defaultValue": null,
"placeholder": "Personens efternavn",
"helpText": "Indtast alle andre navne end fornavnet",
"required": "1",
"field_group_number": "1",
"field_group_name": "Pårørende"
}
]
}
]
}
],
//Irrelevant for indexing
"filters": [
{
"id": "1",
"short_name": "Politiets Mandtal",
"long_name": "Politiets Mandtal for København 1866 - 1923",
"gui_required_fields_text": "Vælg minimum gade og år",
"objects_query": "select MAND_files.id, CONCAT(\\'/collections/mandtal\\',path, fileName) as imageURL, year, month, road_name FROM MAND_files LEFT JOIN MAND_folders ON MAND_folders.id = MAND_files.folder_id WHERE :query AND error_image != 1 ORDER BY year, month, fileName",
"primary_table_name": "MAND_files",
"starbas_field_name": "NULL",
"levels_type": "hierarchy",
"filter_levels": [
{
"id": "1",
"filter_id": "1",
"name": "month",
"gui_name": "Måned",
"gui_hide_name": "1",
"gui_type": "typeahead",
"data_sql": "select distinct month as text, month as id from mand_files where road_name = \"%s\" AND year = \"%s\" order by month",
"data": null,
"searchable": "1",
"required_levels": "road_name;year",
"required": "0",
"order": "3"
},
{
"id": "2",
"filter_id": "1",
"name": "year",
"gui_name": "År",
"gui_hide_name": "1",
"gui_type": "typeahead",
"data_sql": "select distinct year as text, year as id from mand_files WHERE road_name = \"%s\" order by year",
"data": null,
"searchable": "1",
"required_levels": "road_name",
"required": "0",
"order": "2"
},
{
"id": "3",
"filter_id": "1",
"name": "road_name",
"gui_name": "Gadenavn",
"gui_hide_name": "1",
"gui_type": "typeahead",
"data_sql": "select navn as id, navn as text from MAND_streets WHERE mand_is_used = 1",
"data": null,
"searchable": "1",
"required_levels": "NULL",
"required": "1",
"order": "1"
}
]
}
]
}