diff --git a/README.md b/README.md index b555520..105e64c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ This document template for DSW is available as open-source via GitHub Repository ## Changelog +### 1.12.1 + +- Fix extra `endif` + ### 1.12.0 - Update for `dsw:root:2.5.0` diff --git a/src/questions/01-data-summary.html.j2 b/src/questions/01-data-summary.html.j2 index acda9b5..6b4ef02 100644 --- a/src/questions/01-data-summary.html.j2 +++ b/src/questions/01-data-summary.html.j2 @@ -142,154 +142,154 @@ {%- set preexistingPath = [uuids.reusingCUuid, uuids.preexistingQUuid]|reply_path -%} {%- set preexistingAUuid = repliesMap[preexistingPath]|reply_str_value -%} {%- if preexistingAUuid == uuids.preexistingYesAUuid -%} - {%- set refDataPath = [preexistingPath, uuids.preexistingYesAUuid, uuids.refDataQUuid]|reply_path -%} - {%- set refDataItems = repliesMap[refDataPath]|reply_items -%} - {%- set nrefDataPath = [preexistingPath, uuids.preexistingYesAUuid, uuids.nrefDataQUuid]|reply_path -%} - {%- set nrefDataItems = repliesMap[nrefDataPath]|reply_items -%} - {%- if (refDataItems|length + nrefDataItems|length) > 0 -%} -
- {% if refDataVersionedWhich -%} - We will use version "{{ refDataVersionedWhich }}" of this dataset. - {%- endif -%} - {%- if refDataVersionedChangeAUuid == uuids.refDataVersionedChangeStayAUuid %} - If a new version becomes available during the project, we will stay with the old version. - {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeNewAUuid %} - If a new version becomes available during the project, new analyses will be done with the new version. - {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeAllAUuid %} - If a new version becomes available during the project, all analyses will be redone with the new version. - {%- endif -%} -
- {%- endif -%} + {%- set refDataPath = [preexistingPath, uuids.preexistingYesAUuid, uuids.refDataQUuid]|reply_path -%} + {%- set refDataItems = repliesMap[refDataPath]|reply_items -%} + {%- set nrefDataPath = [preexistingPath, uuids.preexistingYesAUuid, uuids.nrefDataQUuid]|reply_path -%} + {%- set nrefDataItems = repliesMap[nrefDataPath]|reply_items -%} + {%- if (refDataItems|length + nrefDataItems|length) > 0 -%} ++ {% if refDataVersionedWhich -%} + We will use version "{{ refDataVersionedWhich }}" of this dataset. {%- endif -%} - {%- endif -%} - {# version #} - {%- set refDataVersionedPath = [refDataUsedPrefix, uuids.refDataVersionedQUuid]|reply_path -%} - {%- set refDataVersionedAUuid = repliesMap[refDataVersionedPath]|reply_str_value -%} - {%- if refDataVersionedAUuid == uuids.refDataVersionedYesAUuid -%} - {%- set refDataVersionedWhichPath = [refDataVersionedPath, uuids.refDataVersionedYesAUuid, uuids.refDataVersionedWhichQUuid]|reply_path -%} - {%- set refDataVersionedWhich = repliesMap[refDataVersionedWhichPath]|reply_str_value -%} - {%- set refDataVersionedChangePath = [refDataVersionedPath, uuids.refDataVersionedYesAUuid, uuids.refDataVersionedChangeQUuid]|reply_path -%} - {%- set refDataVersionedChangeAUuid = repliesMap[refDataVersionedChangePath]|reply_str_value -%} - {%- if refDataVersionedWhich or refDataVersionedChangeAUuid %} -
- {% if refDataVersionedWhich -%} - We will use version "{{ refDataVersionedWhich }}" of this dataset. - {%- endif -%} - {%- if refDataVersionedChangeAUuid == uuids.refDataVersionedChangeStayAUuid %} - If a new version becomes available during the project, we will stay with the old version. - {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeNewAUuid %} - If a new version becomes available during the project, new analyses will be done with the new version. - {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeAllAUuid %} - If a new version becomes available during the project, all analyses will be redone with the new version. - {%- endif -%} -
+ {%- if refDataVersionedChangeAUuid == uuids.refDataVersionedChangeStayAUuid %} + If a new version becomes available during the project, we will stay with the old version. + {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeNewAUuid %} + If a new version becomes available during the project, new analyses will be done with the new version. + {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeAllAUuid %} + If a new version becomes available during the project, all analyses will be redone with the new version. {%- endif -%} + {%- endif -%} - {# data use #} - {%- set dataUse = repliesMap[[refDataUsedPrefix, uuids.refDataUsageQUuid]|reply_path]|reply_str_value -%} - {%- if dataUse -%} -We will use the dataset as follows: {{ dataUse|dot }}
- {%- endif -%} -- {% if nrefDataAccessAUuid == uuids.nrefDataAccessHaveCopyAUuid -%} - We already have a copy of this dataset. - {%- elif nrefDataAccessAUuid == uuids.nrefDataAccessWillDownloadAUuid -%} - We will download or get a copy. - {%- elif nrefDataAccessAUuid == uuids.nrefDataAccessWillOnlineAUuid -%} - We will use its online version without downloading it. + {% if refDataVersionedWhich -%} + We will use version "{{ refDataVersionedWhich }}" of this dataset. + {%- endif -%} + {%- if refDataVersionedChangeAUuid == uuids.refDataVersionedChangeStayAUuid %} + If a new version becomes available during the project, we will stay with the old version. + {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeNewAUuid %} + If a new version becomes available during the project, new analyses will be done with the new version. + {%- elif refDataVersionedChangeAUuid == uuids.refDataVersionedChangeAllAUuid %} + If a new version becomes available during the project, all analyses will be redone with the new version. {%- endif -%}
{%- endif -%} - {# data use #} - {%- set dataUse = repliesMap[[nrefDataUsedPrefix, uuids.nrefDataUsageQUuid]|reply_path]|reply_str_value -%} - {%- if dataUse -%} -We will use the dataset as follows: {{ dataUse|dot }}
+ {%- endif -%} + {# data use #} + {%- set dataUse = repliesMap[[refDataUsedPrefix, uuids.refDataUsageQUuid]|reply_path]|reply_str_value -%} + {%- if dataUse -%} +We will use the dataset as follows: {{ dataUse|dot }}
+ {%- endif -%} ++ {% if nrefDataAccessAUuid == uuids.nrefDataAccessHaveCopyAUuid -%} + We already have a copy of this dataset. + {%- elif nrefDataAccessAUuid == uuids.nrefDataAccessWillDownloadAUuid -%} + We will download or get a copy. + {%- elif nrefDataAccessAUuid == uuids.nrefDataAccessWillOnlineAUuid -%} + We will use its online version without downloading it. + {%- endif -%} +
+ {%- endif -%} + {# data use #} + {%- set dataUse = repliesMap[[nrefDataUsedPrefix, uuids.nrefDataUsageQUuid]|reply_path]|reply_str_value -%} + {%- if dataUse -%} +We will use the dataset as follows: {{ dataUse|dot }}
+ {%- endif -%} +