From 1d49e15d96db9c355db6d885b266e9ba1a64905b Mon Sep 17 00:00:00 2001 From: Kolea PLESCO Date: Tue, 9 Apr 2024 10:31:43 +0300 Subject: [PATCH] updates xpath validator --- .../templates/xpath_coverage_report.jinja2 | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/ted_sws/notice_validator/resources/templates/xpath_coverage_report.jinja2 b/ted_sws/notice_validator/resources/templates/xpath_coverage_report.jinja2 index 250142bc..d7b5b867 100644 --- a/ted_sws/notice_validator/resources/templates/xpath_coverage_report.jinja2 +++ b/ted_sws/notice_validator/resources/templates/xpath_coverage_report.jinja2 @@ -88,6 +88,16 @@ {% if template_metadata.grouping %}
  • Grouping: {{ template_metadata.grouping }}
  • {% endif %} +
  • +

    +

    Overall coverage

    +

    {{ "%.2f"|format((validation_result.coverage|float * 100)) }}%

    +

    (Number of Conceptual XPATHs found in notices) / (Total number of unique XPATHs in provided notices)

    +

  • +

    Conceptual coverage

    +

    {{ "%.2f"|format((validation_result.conceptual_coverage|float * 100)) }}%

    +

    (Number of Conceptual XPATHs found in notices) / (Total number of unique Conceptual XPATHs)

    +
  • {% set nr_notices = notices|length %}

  • {% if nr_notices > 1 %} @@ -140,7 +150,24 @@ {% endif %} - +{% if validation_result.xpath_covered|length > 0 %} +
    +

    XPATHs covered in the "Rules" of Conceptual Mapping

    + + + + + + + + {% for xpath in validation_result.xpath_covered %} + + + + {% endfor %} + +
    XPATH
    {{ xpath }}
    +{% endif %}