diff --git a/media_ext.xml b/media_ext.xml index 1328bc79803bf8be6327fdcfbd254051f49525fe..c9adccdf4123e4fef74e0fc5afeb920e73f1c8f6 100644 --- a/media_ext.xml +++ b/media_ext.xml @@ -36,7 +36,7 @@ layout: null {% endfor -%} {% endif -%} - {% if video.recording_date and recording_date.event != ''-%} + {% if video.recording_date and video.recording_date != ''-%} {% assign recording_date = video.recording_date -%} {% elsif event -%} {% assign recording_date = event.eventdate -%} @@ -66,7 +66,9 @@ layout: null <description>{{ccontent}} 
{% for conf in video.conferences %}{% for c in site.conferences -%}{% if conf == c.acronym and c.content != '' -%}{{c.content | strip_html | xml_escape }} 
{% endif -%}{% endfor -%}{% endfor %}{% if video.licence and video.licence != '' -%}{{video.licence | strip_html | xml_escape }}{% else -%}This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY NC ND 4.0). https://creativecommons.org/licenses/by-nc-nd/4.0/{% endif -%}</description> {% endif -%} <recDate>{{ recording_date | date: '%Y-%m-%d' }}</recDate> - <pubDate>{{ releasedate | date: '%Y-%m-%d' }}</pubDate> + {% if video.release_date and video.release_date != ''-%} + <pubDate>{{ releasedate | date: '%Y-%m-%d' }}</pubDate> + {% endif -%} <license>{{video.licence}}</license> <persons>{{persons| strip}}</persons> {% if video.language and video.language != '' -%}