forked from IATI/IATI-Dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
text.py
105 lines (100 loc) · 6.2 KB
/
text.py
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
import copy
top_titles = {
'index': 'Home',
'headlines': 'Headlines',
'data_quality': 'Data Quality',
'publishing_stats': 'Publishing Statistics',
'exploring_data': 'Exploring Data',
'faq': 'FAQ'
}
page_titles = {
'index': 'Code for IATI Analytics',
'headlines': 'Headlines',
'data_quality': 'Data Quality',
'exploring_data': 'Exploring Data',
'faq': 'Frequently Asked Questions',
'publishers': 'IATI Publishers',
'files': 'IATI Files',
'activities': 'IATI Activities',
'download': 'Download Errors',
'xml': 'XML Errors',
'validation': 'Validation Against the Schema',
'versions': 'Versions',
'rulesets': 'Rulesets',
'licenses': 'Licenses listed on the Registry',
'organisation': 'Organisation XML Files',
'identifiers': 'Duplicate Activity Identifiers',
'registration_agencies': 'Registration Agencies',
'reporting_orgs': 'Reporting Orgs',
'elements': 'Elements',
'codelists': 'Codelists',
'booleans': 'Booleans',
'dates': 'Dates',
'traceability': 'Traceability',
'org_ids': 'Organisation Identifiers',
'publishing_stats': 'Publishing Statistics',
'coverage': 'Coverage',
'timeliness': 'Timeliness',
'forwardlooking': 'Forward Looking',
'comprehensiveness': 'Comprehensiveness',
'summary_stats': 'Summary Statistics',
'humanitarian': 'Humanitarian Reporting'
}
page_leads = {
'index': 'Statistics, charts and metrics on data accessed via the IATI Registry.',
'data_quality': 'What needs fixing in IATI data?',
'exploring_data': 'Which parts of the IATI Standard are being used?',
'headlines': 'What is the size, scope and scale of published IATI data?',
'publishers': 'How many organisations are publishing IATI data?',
'files': 'How many IATI files are published?',
'activities': 'How many IATI activities are published?',
'download': 'How many files failed to download?',
'xml': 'Which files have XML errors?',
'validation': 'Which files fail schema validation?',
'versions': 'Which <a href="https://iatistandard.org/en/iati-standard/upgrades/how-we-manage-the-standard/versions/">versions of the IATI Standard</a> are being used?',
'rulesets': 'How does IATI data test against rulesets?',
'licenses': 'Which licences are used by IATI publishers?',
'organisation': 'Who is publishing IATI Organisation files?',
'identifiers': 'Where are there duplicate IATI identifiers?',
'reporting_orgs': 'Where are reporting organisation identifiers inconsistent with the IATI Registry?',
'elements': 'How are the IATI Standard elements used by publishers?',
'codelists': 'How are codelists used in IATI data?',
'booleans': 'How are booleans used in IATI data?',
'dates': 'What date ranges do publishers publish data for?',
'traceability': 'How much of a publisher’s spending is traceable to other publishers’ activities?',
'org_ids': 'Are organisation identifiers being used correctly?',
}
page_sub_leads = {
'publishers': 'Publishers represent organisation accounts in the IATI Registry.',
'files': 'Files are logged on the IATI Registry by publishers The files contain data on activities and the organisation. A publisher may have multiple files, which can contain multiple activities.',
'activities': 'Activities are the individual projects found in files. A file can contain one or many activities, from a publisher.',
'download': 'Files that failed to download, when accessed via the IATI Registry. Note: This may because no URL is listed on the registry, or when requesting the URL the publisher\'s server returns an error message (e.g. because there is no file at that location). Some files that failed to download when last checked may since have become available.',
'xml': 'This page shows files that are not well-formed XML, accessed via the IATI Registry.',
'validation': 'IATI files are validated against the appropriate <a href="https://iatistandard.org/schema/">IATI Schema</a>. Note: this is based on the version declared in the file and whether it\'s an activity/organisation file.',
'versions': 'Files are reported against a specific version of the IATI Standard, using the <code>version</code> attribute in the <code>iati-activities</code> element.',
'rulesets': 'The IATI Ruleset describe constraints, conditions and logics that are additional to the IATI schema. Note: Currently, on the IATI Standard Ruleset is tested.',
'licenses': 'Licences are applied to files by publishers on the IATI Registry, and explain how data can be used.',
'organisation': 'Checking the IATI Registry for files that have <code>iati-organisations</code> as the root element. IATI Organisation files contain general information about the organisations in the delivery chain.',
'identifiers': 'Checking the <code>iati-identifier</code> element for duplicate values per publisher. A duplicate appears if a publisher creates two activities with the same identifier.',
'reporting_orgs': 'Checking the <code>reporting-org</code> identifiers in IATI data.',
'elements': 'Checking usage of all elements/attributes within the IATI Standard.',
'codelists': 'Checking usage of codelists across IATI data files.',
'booleans': 'Checking usage of booleans across IATI data files. Booleans are values that are either true or false. In XML <code>true</code> or <code>1</code> can be used for true and <code>false</code> or <code>0</code> can be used for false.',
}
short_page_titles = copy.copy(page_titles)
short_page_titles.update({
'publishers': 'Publishers',
'files': 'Files',
'activities': 'Activities',
'validation': 'Validation',
'licenses': 'Licenses',
'organisation': 'Organisation XML',
'identifiers': 'Duplicate Identifiers',
})
top_navigation = ['headlines', 'data_quality', 'publishing_stats', 'exploring_data', 'faq']
navigation = {
'headlines': ['publishers', 'files', 'activities'],
'data_quality': ['download', 'xml', 'validation', 'versions', 'licenses', 'organisation', 'identifiers', 'reporting_orgs'],
'exploring_data': ['elements', 'codelists', 'booleans', 'dates', 'traceability', 'org_ids'],
'publishing_stats': ['timeliness', 'forwardlooking', 'comprehensiveness', 'summary_stats', 'humanitarian']
}