From 83cc57767b24951d1434d2ff64cadfc15a875cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Such=C3=A1nek?= Date: Tue, 4 Jul 2023 11:50:04 +0200 Subject: [PATCH] Release 1.12.1 --- README.md | 4 + src/questions/01-data-summary.html.j2 | 276 +++++++++++++------------- template.json | 2 +- 3 files changed, 143 insertions(+), 139 deletions(-) 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 -%} -
-

Re-used datasets

- {%- if refDataItems|length > 0 -%} -
We have found the following reference datasets that we have considered for re-use: -
    - {%- for refDataItem in refDataItems -%} - {%- set refDataPrefix = [refDataPath, refDataItem]|reply_path -%} - {%- set refDataUsedPrefix = [refDataPrefix, uuids.refDataUseQUuid, uuids.refDataUseYesAUuid]|reply_path -%} - {%- set refDataNameReply = repliesMap[[refDataPrefix, uuids.refDataNameQUuid]|reply_path] -%} - {%- set refDataWhere = repliesMap[[refDataPrefix, uuids.refDataWhereQUuid]|reply_path]|reply_str_value -%} -
  • - {# identification #} - {{ macros.integrationValue(refDataNameReply, uuids.refDataNameQUuid) }} - {%- if refDataWhere -%} - {%- if refDataWhere.startswith("http://") or refDataWhere.startswith("https://") or refDataWhere.startswith("ftp://") %} - ({{ refDataWhere }}) - {%- else %} - ({{ refDataWhere }}) - {%- 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 -%} -

    - {%- 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 -%} +
    +

    Re-used datasets

    + {%- if refDataItems|length > 0 -%} +
    We have found the following reference datasets that we have considered for re-use: +
      + {%- for refDataItem in refDataItems -%} + {%- set refDataPrefix = [refDataPath, refDataItem]|reply_path -%} + {%- set refDataUsedPrefix = [refDataPrefix, uuids.refDataUseQUuid, uuids.refDataUseYesAUuid]|reply_path -%} + {%- set refDataNameReply = repliesMap[[refDataPrefix, uuids.refDataNameQUuid]|reply_path] -%} + {%- set refDataWhere = repliesMap[[refDataPrefix, uuids.refDataWhereQUuid]|reply_path]|reply_str_value -%} +
    • + {# identification #} + {{ macros.integrationValue(refDataNameReply, uuids.refDataNameQUuid) }} + {%- if refDataWhere -%} + {%- if refDataWhere.startswith("http://") or refDataWhere.startswith("https://") or refDataWhere.startswith("ftp://") %} + ({{ refDataWhere }}) + {%- else %} + ({{ refDataWhere }}) {%- endif -%} -
    • - {%- endfor -%} -
    -
    - {%- endif -%} - {%- if nrefDataItems|length > 0 -%} -
    We have found the following non-reference datasets that we have considered for re-use: -
      - {%- for nrefDataItem in nrefDataItems -%} - {%- set nrefDataNamePath = [nrefDataPath, nrefDataItem, uuids.nrefDataNameQUuid]|reply_path -%} - {%- set nrefDataNameReply = repliesMap[nrefDataNamePath] -%} - {%- set nrefDataWhere = repliesMap[[nrefDataPrefix, uuids.nrefDataWhereQUuid]|reply_path]|reply_str_value -%} -
    • - {# identification #} - {{ macros.integrationValue(nrefDataNameReply, uuids.nrefDataNameQUuid) }} - {%- if nrefDataWhere -%} - {%- if nrefDataWhere.startswith("http://") or nrefDataWhere.startswith("https://") or nrefDataWhere.startswith("ftp://") %} - ({{ nrefDataWhere }}) - {%- else %} - ({{ nrefDataWhere }}) + {%- 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 -%} - {%- 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 -%} -
    • - {%- endfor -%} -
    -
    - {%- endif -%} - {%- if usedNRefDataItems|length > 0 -%} -
    We will use the following already existing non-reference datasets: -
      - {%- for nrefDataItem in usedNRefDataItems -%} - {%- set nrefDataPrefix = [nrefDataPath, nrefDataItem]|reply_path -%} - {%- set nrefDataUsedPrefix = [nrefDataPrefix, uuids.nrefDataUseQUuid, uuids.nrefDataUseYesAUuid]|reply_path -%} - {%- set nrefDataNamePath = [nrefDataPrefix, uuids.nrefDataNameQUuid]|reply_path -%} - {%- set nrefDataNameReply = repliesMap[nrefDataNamePath] -%} - {%- set nrefDataWhere = repliesMap[[nrefDataPrefix, uuids.nrefDataWhereQUuid]|reply_path]|reply_str_value -%} -
    • - {# identification #} - {{ macros.integrationValue(nrefDataNameReply, uuids.nrefDataNameQUuid) }} - {%- if nrefDataWhere -%} - {%- if nrefDataWhere.startswith("http://") or nrefDataWhere.startswith("https://") or nrefDataWhere.startswith("ftp://") %} - ({{ nrefDataWhere }}) - {%- else %} - ({{ nrefDataWhere }}) - {%- endif -%} + {%- endif -%} +
    • + {%- endfor -%} +
    +
    + {%- endif -%} + {%- if nrefDataItems|length > 0 -%} +
    We have found the following non-reference datasets that we have considered for re-use: +
      + {%- for nrefDataItem in nrefDataItems -%} + {%- set nrefDataNamePath = [nrefDataPath, nrefDataItem, uuids.nrefDataNameQUuid]|reply_path -%} + {%- set nrefDataNameReply = repliesMap[nrefDataNamePath] -%} + {%- set nrefDataWhere = repliesMap[[nrefDataPrefix, uuids.nrefDataWhereQUuid]|reply_path]|reply_str_value -%} +
    • + {# identification #} + {{ macros.integrationValue(nrefDataNameReply, uuids.nrefDataNameQUuid) }} + {%- if nrefDataWhere -%} + {%- if nrefDataWhere.startswith("http://") or nrefDataWhere.startswith("https://") or nrefDataWhere.startswith("ftp://") %} + ({{ nrefDataWhere }}) + {%- else %} + ({{ nrefDataWhere }}) {%- endif -%} - {# data access #} - {%- set nrefDataAccessPath = [nrefDataUsedPrefix, uuids.nrefDataAccessQUuid]|reply_path -%} - {%- set nrefDataAccessAUuid = repliesMap[nrefDataAccessPath]|reply_str_value -%} - {%- if nrefDataAccessAUuid %} + {%- 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 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 -%} +
    • + {%- endfor -%} +
    +
    + {%- endif -%} + {%- if usedNRefDataItems|length > 0 -%} +
    We will use the following already existing non-reference datasets: +
      + {%- for nrefDataItem in usedNRefDataItems -%} + {%- set nrefDataPrefix = [nrefDataPath, nrefDataItem]|reply_path -%} + {%- set nrefDataUsedPrefix = [nrefDataPrefix, uuids.nrefDataUseQUuid, uuids.nrefDataUseYesAUuid]|reply_path -%} + {%- set nrefDataNamePath = [nrefDataPrefix, uuids.nrefDataNameQUuid]|reply_path -%} + {%- set nrefDataNameReply = repliesMap[nrefDataNamePath] -%} + {%- set nrefDataWhere = repliesMap[[nrefDataPrefix, uuids.nrefDataWhereQUuid]|reply_path]|reply_str_value -%} +
    • + {# identification #} + {{ macros.integrationValue(nrefDataNameReply, uuids.nrefDataNameQUuid) }} + {%- if nrefDataWhere -%} + {%- if nrefDataWhere.startswith("http://") or nrefDataWhere.startswith("https://") or nrefDataWhere.startswith("ftp://") %} + ({{ nrefDataWhere }}) + {%- else %} + ({{ nrefDataWhere }}) {%- endif -%} -
    • - {%- endfor -%} -
    -
    - {%- endif -%} -
    - {%- endif -%} + {%- endif -%} + {# data access #} + {%- set nrefDataAccessPath = [nrefDataUsedPrefix, uuids.nrefDataAccessQUuid]|reply_path -%} + {%- set nrefDataAccessAUuid = repliesMap[nrefDataAccessPath]|reply_str_value -%} + {%- if nrefDataAccessAUuid %} +

    + {% 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 -%} +
  • + {%- endfor -%} +
+
+ {%- endif -%} +
+ {%- endif -%} {%- endif -%} {# Format/Type with volume #} {%- set formatsPath = [uuids.creatingCUuid, uuids.formatsQUuid]|reply_path -%} diff --git a/template.json b/template.json index 64b7f6b..1d9b13a 100644 --- a/template.json +++ b/template.json @@ -1,7 +1,7 @@ { "templateId": "h2020-dmp", "organizationId": "dsw", - "version": "1.12.0", + "version": "1.12.1", "name": "Horizon 2020 DMP", "description": "Data Management Plan according to the H2020 template", "license": "Apache-2.0",