This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
open_data_federal_extras.features.field_instance.inc
562 lines (547 loc) · 19.5 KB
/
open_data_federal_extras.features.field_instance.inc
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
<?php
/**
* @file
* open_data_federal_extras.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function open_data_federal_extras_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-dataset-field_odfe_bureau_code'
$field_instances['node-dataset-field_odfe_bureau_code'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Adds Project Open Data\'s <a href="https://project-open-data.cio.gov/v1.1/schema/#bureauCode">Bureau Code</a>.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 6,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_bureau_code',
'label' => 'Bureau Code',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 1,
),
'type' => 'options_select',
'weight' => 25,
),
);
// Exported field_instance: 'node-dataset-field_odfe_category'
$field_instances['node-dataset-field_odfe_category'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 15,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_category',
'label' => 'Category',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'autocomplete_deluxe',
'settings' => array(
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
'delimiter' => ',',
'limit' => 10,
'min_length' => 0,
'size' => 60,
),
'type' => 'autocomplete_deluxe_taxonomy',
'weight' => 35,
),
);
// Exported field_instance: 'node-dataset-field_odfe_conforms_to'
$field_instances['node-dataset-field_odfe_conforms_to'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This is used to identify a standardized specification the dataset conforms to. If this is a technical specification associated with a particular serialization of a distribution, this should be specified with <a href="#distribution-conformsTo">conformsTo</a> at the distribution level. It’s recommended that this be a URI that serves as a unique identifier for the standard. The URI may or may not also be a URL that provides documentation of the specification. See <a href="https://project-open-data.cio.gov/v1.1/schema/#dataset-conformsTo">Data Standard at Project Open Data</a>.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 10,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_conforms_to',
'label' => 'Data Standard',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => '',
),
'enable_tokens' => 0,
'rel_remove' => 'default',
'title' => 'none',
'title_maxlength' => 255,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 29,
),
);
// Exported field_instance: 'node-dataset-field_odfe_data_dictionary_type'
$field_instances['node-dataset-field_odfe_data_dictionary_type'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This is used to identify the media type (IANA Media Type also known as MIME Type) of the URL used for the dataset’s describedBy field. This should be specified if describedBy is not an HTML webpage.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 17,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_data_dictionary_type',
'label' => 'Data Dictionary Type',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 17,
),
);
// Exported field_instance: 'node-dataset-field_odfe_data_quality'
$field_instances['node-dataset-field_odfe_data_quality'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Indicates whether a dataset conforms to the agency’s information quality guidelines.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 11,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_data_quality',
'label' => 'Data Quality',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 1,
),
'type' => 'options_select',
'weight' => 30,
),
);
// Exported field_instance: 'node-dataset-field_odfe_investment_uii'
$field_instances['node-dataset-field_odfe_investment_uii'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Use to link a given dataset with its related IT Unique Investment Identifier, which can often be found in Exhibit 53 documents.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 14,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_investment_uii',
'label' => 'primary IT Investment UII',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 33,
),
);
// Exported field_instance: 'node-dataset-field_odfe_is_part_of'
$field_instances['node-dataset-field_odfe_is_part_of'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This field allows the grouping of multiple datasets into a “collection”. This field should be employed by the individual datasets that together make up a collection. The value for this field should match the identifier of the parent dataset.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 12,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_is_part_of',
'label' => 'Is Part Of',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 31,
),
);
// Exported field_instance: 'node-dataset-field_odfe_landing_page'
$field_instances['node-dataset-field_odfe_landing_page'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This field is not intended for an agency’s homepage (e.g. www.agency.gov), but rather if a dataset has a human-friendly hub or landing page that users can be directed to for all resources tied to the dataset.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 9,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_landing_page',
'label' => 'Homepage URL',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'rel_remove' => 'default',
'title' => 'none',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 27,
),
);
// Exported field_instance: 'node-dataset-field_odfe_language'
$field_instances['node-dataset-field_odfe_language'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This should adhere to the RFC 5646 standard. This language subtag lookup provides a good tool for checking and verifying language codes. A language tag is comprised of either one or two parts, the language subtag (such as en for English, sp for Spanish, wo for Wolof) and the regional subtag (such as US for United States, GB for Great Britain, MX for Mexico), separated by a hyphen. Regional subtags should only be provided when needed to distinguish a language tag from another one (such as American vs. British English).',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 13,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_language',
'label' => 'Language',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 1,
),
'type' => 'options_select',
'weight' => 32,
),
);
// Exported field_instance: 'node-dataset-field_odfe_program_code'
$field_instances['node-dataset-field_odfe_program_code'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Adds Project Open Data\'s <a href="https://project-open-data.cio.gov/v1.1/schema/#programCode">Program Code</a>.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 7,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_program_code',
'label' => 'Program Code',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 1,
),
'type' => 'options_select',
'weight' => 26,
),
);
// Exported field_instance: 'node-dataset-field_odfe_rights'
$field_instances['node-dataset-field_odfe_rights'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This may include information regarding access or restrictions based on privacy, security, or other policies. This should also serve as an explanation for the selected “accessLevel” including instructions for how to access a restricted file, if applicable, or explanation for why a “non-public” or “restricted public” data asset is not “public,” if applicable. If the dataset can be made available through a website indirectly, use accessURL for the URL that provides such access. See <a href="https://project-open-data.cio.gov/v1.1/schema/#rights">Rights on Project Open Data</a>.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 8,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_rights',
'label' => 'Rights',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 250,
),
'type' => 'text_textfield',
'weight' => 28,
),
);
// Exported field_instance: 'node-dataset-field_odfe_system_of_records'
$field_instances['node-dataset-field_odfe_system_of_records'] = array(
'bundle' => 'dataset',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This field should a URL to the System of Records Notice (SORN) that relates to the dataset, specifically from FederalRegister.gov.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 16,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_odfe_system_of_records',
'label' => 'System of Records',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'rel_remove' => 'default',
'title' => 'none',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 34,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Adds Project Open Data\'s <a href="https://project-open-data.cio.gov/v1.1/schema/#bureauCode">Bureau Code</a>.');
t('Adds Project Open Data\'s <a href="https://project-open-data.cio.gov/v1.1/schema/#programCode">Program Code</a>.');
t('Bureau Code');
t('Category');
t('Data Dictionary Type');
t('Data Quality');
t('Data Standard');
t('Homepage URL');
t('Indicates whether a dataset conforms to the agency’s information quality guidelines.');
t('Is Part Of');
t('Language');
t('Program Code');
t('Rights');
t('System of Records');
t('This field allows the grouping of multiple datasets into a “collection”. This field should be employed by the individual datasets that together make up a collection. The value for this field should match the identifier of the parent dataset.');
t('This field is not intended for an agency’s homepage (e.g. www.agency.gov), but rather if a dataset has a human-friendly hub or landing page that users can be directed to for all resources tied to the dataset.');
t('This field should a URL to the System of Records Notice (SORN) that relates to the dataset, specifically from FederalRegister.gov.');
t('This is used to identify a standardized specification the dataset conforms to. If this is a technical specification associated with a particular serialization of a distribution, this should be specified with <a href="#distribution-conformsTo">conformsTo</a> at the distribution level. It’s recommended that this be a URI that serves as a unique identifier for the standard. The URI may or may not also be a URL that provides documentation of the specification. See <a href="https://project-open-data.cio.gov/v1.1/schema/#dataset-conformsTo">Data Standard at Project Open Data</a>.');
t('This is used to identify the media type (IANA Media Type also known as MIME Type) of the URL used for the dataset’s describedBy field. This should be specified if describedBy is not an HTML webpage.');
t('This may include information regarding access or restrictions based on privacy, security, or other policies. This should also serve as an explanation for the selected “accessLevel” including instructions for how to access a restricted file, if applicable, or explanation for why a “non-public” or “restricted public” data asset is not “public,” if applicable. If the dataset can be made available through a website indirectly, use accessURL for the URL that provides such access. See <a href="https://project-open-data.cio.gov/v1.1/schema/#rights">Rights on Project Open Data</a>.');
t('This should adhere to the RFC 5646 standard. This language subtag lookup provides a good tool for checking and verifying language codes. A language tag is comprised of either one or two parts, the language subtag (such as en for English, sp for Spanish, wo for Wolof) and the regional subtag (such as US for United States, GB for Great Britain, MX for Mexico), separated by a hyphen. Regional subtags should only be provided when needed to distinguish a language tag from another one (such as American vs. British English).');
t('Use to link a given dataset with its related IT Unique Investment Identifier, which can often be found in Exhibit 53 documents.');
t('primary IT Investment UII');
return $field_instances;
}