The idea is that a dataset bundle can have any number of DataDownload documents
(json.gz) identified by a commit string, with the same identifiers being available
in the dataset's list of 'distributions' ('commit' key) in the front matter params.
The hugo term page template will render the new 'term-distributions' partial if it
finds any distributions in the page params. This uses the new filetree.js functionality
to fetch and decompress the associated DataDownload json-ld document (for the commit
that the user selected) and to then turn that object into a file tree hierarchy which
can more easily be rendered by using javascript to manipulate the expand/collapse
behavior of the underlying details-summary tags that are used for the directory nodes.
In summary, this only shows for a dataset bundle that has distributions in json.gz files
which will be loaded once the user selects them, and the whole file tree can be explored.
|
||
|---|---|---|
| .. | ||
| css | ||
| icons | ||
| img | ||
| js | ||