You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<buttonclass="button button--small margin-left:1" onclick="navigator.clipboard.writeText('{{current_url}}'); this.innerHTML = 'Copied!';">Copy Link to Clipboard</button>
247
+
</p>
248
+
<p>{% trans "If your data is not suitable for sharing publicly, then you should treat this url with care. Only share it with people who have permission to access the data." %}</p>
249
+
<p>{% trans "After 7 days, the link will expire and the data will be deleted from our servers - so the results will no longer be available. You can revisit these results until then." %}</p>
<p>{% trans "This application converts data in Excel and CSV format into JSON format, allowing you download the converted version." %}</p>
252
+
<p>{% trans "If your file is originally in JSON format select ‘Convert to Spreadsheet’ in the summary section to create an Excel version of the file." %}</p>
253
+
{% if not conversion_error and conversion != 'flattenable' %}
254
+
<p>{% trans "We provide the following formats to download:" %}</p>
255
+
<ulclass="left-space">
256
+
{% if conversion == 'unflatten' %}
257
+
<li>
258
+
<ahref="{{converted_url}}">{{JSON}} ({% trans converted %})</a> {{converted_file_size|filesizeformat}}
259
+
</li>
260
+
{% elif conversion == 'flatten' %}
261
+
<li>
262
+
<ahref="{{converted_url}}-titles.xlsx">{{xlsx}} ({% trans converted %})</a> {{converted_file_size_titles|filesizeformat}}
263
+
</li>
264
+
<liclass="list-unstyled">
265
+
<sub>{% trans "You can also download an" %}<ahref="{{converted_url}}.xlsx"> {% trans "Excel Spreadsheet (.xlsx) with JSON field names" %}</a> {% trans "instead of titles as column headers" %} ({{converted_file_size|filesizeformat}})</sub>
266
+
</li>
267
+
{% endif %}
268
+
</ul>
269
+
{% else %}
270
+
<p>(No downloads available as the conversion hasn't happened, or has errored).</p>
271
+
{% endif %}
272
+
{% if user.is_authenticated %}
273
+
<h3class="box__heading">Original file download for admin users</h2>
274
+
<p>Warning, this is the original file uploaded. Do not download if you don't trust whoever sent you a link to this page, it could contain a virus. Note that this box and this download link are only visible to admin users, not others you share this page with.</p>
275
+
<ulclass="left-space">
276
+
<li>
277
+
<ahref="{{original_file.url}}">{% trans "Original file" %} ({{file_type}})</a> {{original_file.size|filesizeformat}}
'There are 2 grants to 1 recipient organisation and 0 to recipient individuals',
81
81
'The grants were awarded in GBP with a total value of £331,495',
82
82
# check that there's no errors after the heading
83
83
'Data conversion successful\nBefore checking',
84
-
'data does not use the 360Giving Data Standard correctly (7 Errors)',
84
+
'data does not use the 360Giving Data Standard correctly',
85
+
'7 Errors',
85
86
'description is missing but required',
86
87
'Sheet: grants Row: 2',
87
-
'Check your data 2 Grants',
88
88
'Unique funder organisation identifiers: 1',
89
89
'Unique recipient organisation identifiers: 1',
90
90
'360G-fundingproviders-000002/X/00/X'], True),
91
91
# Test conversion warnings are shown
92
92
('tenders_releases_2_releases.xlsx', ['Data conversion unsuccessful - 5 Errors have been found',
93
-
'data does not use the 360Giving Data Standard correctly (76 Errors)',
93
+
'data does not use the 360Giving Data Standard correctly',
94
+
'76 Errors',
94
95
'You may have a duplicate Identifier: We couldn\'t merge these rows with the id "1": field "ocid" in sheet "items": one cell has the value: "PW-14-00627094", the other cell has the value: "PW-14-00629344"'
95
96
], True),
96
97
# Test that titles that aren't in the rollup are converted correctly
0 commit comments