-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identifiers for ECDE page content #16
Comments
I think the problem here is that we need to be clearer about which json files contain the content for the indicator pages on the ECDE because the consolidated json files already have an "indicator" field that links each batch of content to a specific indicator. Currently the json files with content for the ECDE are:
|
@sharppaul |
OK so I understand this now. |
Hi @charliepascoe , You understood correctly, yes. Paul |
Like discussed in the meeting today, here are my two examples. The bottom one is the original in it's current state. [
// Consolidated.json (identifier: C3S_434_<number>)
// Identifier won't have to change ever, numbers can be decided on order of release, etc.
{
"C3S_434_12345": {
"PageTitle": "Climatic suitability for the tiger mosquito - season length",
"Indicator": "Climatic suitability for the tiger mosquito - season length",
"Units": "(days)",
"ConsolidatedText_Main": "**Context**\n ... ",
"ConsolidatedText_Explore": "**Context**\n ... "
}
},
// Consolidated.json (identifier: pagetitle with spaces replaced with dashes (matches c3s.maris.nl indicator URL (without -detail)))
// Titles may change but this identifier may not.
{
"climatic-suitability-of-tiger-mosquito--season-length": {
"PageTitle": "Climatic suitability for the tiger mosquito - season length",
"Indicator": "Climatic suitability for the tiger mosquito - season length",
"Units": "(days)",
"ConsolidatedText_Main": "**Context**\n ... ",
"ConsolidatedText_Explore": "**Context**\n ... "
}
},
// Consolidated.json (old) (not recommended, order based)
[
{
"PageTitle": "Climatic suitability for the tiger mosquito - season length",
"Indicator": "Climatic suitability for the tiger mosquito - season length",
"Units": "(days)",
"ConsolidatedText_Main": "**Context**\n ... ",
"ConsolidatedText_Explore": "**Context**\n ... "
}
]
] |
Thanks @sharppaul, I prefer the numeric option for identifiers. |
@sharppaul The identifiers have been added to the json files |
Thanks for the update @charliepascoe |
The ECDE team would ideally like to use json files to integrate the page content we build here into the ECDE.
However, right now they're using the markdown text because it is clear which markdown data file is for which variable.
They've presented this as an identifier issue and have asked that we add identifiers for each indicator to the json info.
The text was updated successfully, but these errors were encountered: