From f6ad2e38c3c9ffc0aa921d572409abd50e47f6c0 Mon Sep 17 00:00:00 2001 From: Kolea Plesco Date: Fri, 25 Mar 2022 17:50:24 +0200 Subject: [PATCH] Updated Notice Package templates --- .../templates/mets2action_mets_xml.jinja2 | 23 +++----- .../templates/mets_xml_dmd_rdf.jinja2 | 54 ++++++------------- .../resources/templates/tmd_rdf.jinja2 | 11 ++-- 3 files changed, 25 insertions(+), 63 deletions(-) diff --git a/ted_sws/notice_packager/resources/templates/mets2action_mets_xml.jinja2 b/ted_sws/notice_packager/resources/templates/mets2action_mets_xml.jinja2 index 7ac1427e1..604e9ba95 100644 --- a/ted_sws/notice_packager/resources/templates/mets2action_mets_xml.jinja2 +++ b/ted_sws/notice_packager/resources/templates/mets2action_mets_xml.jinja2 @@ -9,41 +9,32 @@ {{ notice.id }}_mets2{{ notice.action.type }} - + - + - +
-
-
- +
+
+
- + diff --git a/ted_sws/notice_packager/resources/templates/mets_xml_dmd_rdf.jinja2 b/ted_sws/notice_packager/resources/templates/mets_xml_dmd_rdf.jinja2 index ff6e8a586..5741fad98 100644 --- a/ted_sws/notice_packager/resources/templates/mets_xml_dmd_rdf.jinja2 +++ b/ted_sws/notice_packager/resources/templates/mets_xml_dmd_rdf.jinja2 @@ -10,62 +10,38 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> - - {{ work.do_not_index }} - - - {{ work.date_document }} - + {{ work.do_not_index }} + {{ work.date_document }} - - - {{ work.datetime_transmission }} - + + {{ work.datetime_transmission }} - {% for lang in notice.languages %} - {{ work.title[lang] }} + {{ work.title[lang] }} {% endfor %} - - - {{ work.date_creation }} - + {{ work.date_creation }} {{ work.uri }} {{ work.dataset_version }} - - + {% for dataset_keyword in work.dataset_keyword %} - {{ dataset_keyword }} + {{ dataset_keyword }} {% endfor %} - - + - {% for lang in notice.languages %} - {{ expression.title[lang] }} + {{ expression.title[lang] }} {% endfor %} - - + - - {{ manifestation.type }} - - - {{ manifestation.date_publication }} - - - + {{ manifestation.type }} + {{ manifestation.date_publication }} + + diff --git a/ted_sws/notice_packager/resources/templates/tmd_rdf.jinja2 b/ted_sws/notice_packager/resources/templates/tmd_rdf.jinja2 index af638d72c..896c78fe3 100644 --- a/ted_sws/notice_packager/resources/templates/tmd_rdf.jinja2 +++ b/ted_sws/notice_packager/resources/templates/tmd_rdf.jinja2 @@ -4,24 +4,19 @@ "/home/metaconv/metaconv_components/components/common/data/cellar_uris.ent"> %cellarEntities; ]> - + {{ notice.id }}.rdf - - {{ manifestation.type }} - + {{ manifestation.type }} - - {{ work.title[notice.languages[0]] }} - + {{ work.title[notice.languages[0]] }} 1