Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the discussion in pull request #56, which was prompted by issue #34.
This pull request allows the site administrator to add a schema file to the
_data/schemas/
directory and activate it by modifying theschema
setting in_config.yml
.Dataset display pages have (a) title, (b) organization, and (c) description hard-coded into the layout. These are considered "system fields," which schemas should specify using the
system_field
property.Below that, the Resources are rendered. These need to be configurable too - this pull request isn't quite finished because of this.
Following that, the rest of the fields in the schema file are rendered in the order they are listed in the schema file.
Schema files support bracket notation to access deep values (thanks to a clever/hacky "recursive function" if you can call it that).
Datasets have a
schema
property in them, which allows JKAN to render the display page and form according to the specific dataset (rather than just the site-wide setting).Thoughts @JJediny?
TODO:
datasets.json
should access the data viasystem_field
data-hook
with system fields instead)