Skip to content

Commit

Permalink
Fix constituency names in HAR
Browse files Browse the repository at this point in the history
  • Loading branch information
slowe committed Nov 14, 2024
1 parent f1c24fb commit 422fef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { walkSync } from 'std/fs/mod.ts';
import sitemap from "lume/plugins/sitemap.ts"; // To build a site map

// Importing the OI Lume charts and utilities
import oiViz from "https://deno.land/x/oi_lume_viz@v0.15.12/mod.ts";
import oiViz from "https://deno.land/x/oi_lume_viz@v0.16.3/mod.ts";
import autoDependency from "https://deno.land/x/[email protected]/processors/auto-dependency.ts";
import csvLoader from "https://deno.land/x/[email protected]/loaders/csv-loader.ts";
import jsonLoader from "lume/core/loaders/json.ts";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ layout: template/embed-national-churches-trust.njk
"data": HAR2024,
"columns":[{
"name": "filterLabel",
"template": "{{ Constituency }} ({{ MP }}, {{ Party }})"
"template": "{{ PCON24NM }} ({{ MP }}, {{ Party }})"
},{
"name": "URL",
"template": "https://members.parliament.uk/member/{{ ID }}/contact"
Expand Down Expand Up @@ -61,7 +61,7 @@ layout: template/embed-national-churches-trust.njk
"label": "filterLabel"
}
},
"tooltip": "<strong>{{ Constituency }}</strong><div class=\"info\" style=\"border-color:{{ BG }};\"><a href=\"{{ URL }}\" target=\"_parent\">{{ MP }}</a> ({{ Party }})<br />Places of worship at risk: <strong>{{ Type→Place of worship | toLocaleString() }}</strong><br /><a href=\"https://historicengland.org.uk/advice/heritage-at-risk/search-register/results/?advsearch=1&par={{ Constituency }}&hc=Listed Place of Worship&searchtype=harsearch\" target=\"_parent\">More details</a></div>",
"tooltip": "<strong>{{ PCON24NM }}</strong><div class=\"info\" style=\"border-color:{{ BG }};\"><a href=\"{{ URL }}\" target=\"_parent\">{{ MP }}</a> ({{ Party }})<br />Places of worship at risk: <strong>{{ Type→Place of worship | toLocaleString() }}</strong><br /><a href=\"https://historicengland.org.uk/advice/heritage-at-risk/search-register/results/?advsearch=1&par={{ HAR name }}&hc=Listed Place of Worship&searchtype=harsearch\" target=\"_parent\">More details</a></div>",
"attribution": "Data: <a href=\"https://historicengland.org.uk/images-books/publications/har-2024-registers/\">Heritage at Risk 2024 Register</a> (Historic England)"
},
"download": {"text": "Heritage at risk by constituency", "type": "CSV"}
Expand All @@ -83,7 +83,7 @@ layout: template/embed-national-churches-trust.njk
"data": HAR2024,
"columns":[{
"name": "filterLabel",
"template": "{{ Constituency }} ({{ MP }}, {{ Party }})"
"template": "{{ PCON24NM }} ({{ MP }}, {{ Party }})"
},{
"name": "URL",
"template": "https://members.parliament.uk/member/{{ ID }}/contact"
Expand All @@ -99,7 +99,7 @@ layout: template/embed-national-churches-trust.njk
"scale": "#ffffcc 0%, #f4be49 20%, #e3051f 50%, #291009 100%",
"min": 0,
"max": 20,
"tooltip": "<strong>{{ Constituency }}</strong><div class=\"info\" style=\"border-color:{{ BG }};\"><a href=\"{{ URL }}\" target=\"_parent\">{{ MP }}</a> ({{ Party }})<br />Places of worship at risk: <strong>{{ Type→Place of worship | toLocaleString() }}</strong><br /><a href=\"https://historicengland.org.uk/advice/heritage-at-risk/search-register/results/?advsearch=1&par={{ Constituency }}&hc=Listed Place of Worship&searchtype=harsearch\" target=\"_parent\">More details</a></div>"
"tooltip": "<strong>{{ PCON24NM }}</strong><div class=\"info\" style=\"border-color:{{ BG }};\"><a href=\"{{ URL }}\" target=\"_parent\">{{ MP }}</a> ({{ Party }})<br />Places of worship at risk: <strong>{{ Type→Place of worship | toLocaleString() }}</strong><br /><a href=\"https://historicengland.org.uk/advice/heritage-at-risk/search-register/results/?advsearch=1&par={{ HAR name }}&hc=Listed Place of Worship&searchtype=harsearch\" target=\"_parent\">More details</a></div>"
}],
"legend":{
"position": "top right",
Expand Down

0 comments on commit 422fef9

Please sign in to comment.