Revision 58374
Added by Sandro La Bruzzo about 4 years ago
modules/dataciteExporter/res/template.jinja | ||
---|---|---|
17 | 17 |
{%if dataset.creators %}<creators>{% for creator in dataset.creators %} |
18 | 18 |
<creator> |
19 | 19 |
<creatorName>{{creator.name|e}}</creatorName>{% if creator.identifier %} |
20 |
<nameIdentifier nameIdentifierScheme="{{creator.identifier.schemename}}">{{creator.identifier.value|e}}</nameIdentifier> {% endif %}{% if creator.affiliation %} |
|
20 |
<nameIdentifier nameIdentifierScheme="{{creator.identifier.schemename|e}}">{{creator.identifier.value|e}}</nameIdentifier> {% endif %}{% if creator.affiliation %}
|
|
21 | 21 |
<affiliation>{{creator.affiliation|e}}</affiliation>{% endif %} |
22 | 22 |
</creator> {%endfor %} |
23 | 23 |
</creators> {% endif %} |
24 | 24 |
{%if dataset.titles %} <titles>{% for title in dataset.titles %} |
25 |
<title {% if title.lang %}xml:lang="{{title.lang}}" {% endif %}>{{title.title|e}}</title>{% endfor %} |
|
25 |
<title {% if title.lang %}xml:lang="{{title.lang|e}}" {% endif %}>{{title.title|e}}</title>{% endfor %}
|
|
26 | 26 |
</titles> {% endif %} |
27 | 27 |
{% if dataset.publisher %}<publisher>{{dataset.publisher|e}}</publisher> {% endif %} |
28 |
{% if dataset.publicationYear %}<publicationYear>{{dataset.publicationYear}}</publicationYear> {% endif %} |
|
28 |
{% if dataset.publicationYear %}<publicationYear>{{dataset.publicationYear|e}}</publicationYear> {% endif %}
|
|
29 | 29 |
{%if dataset.subjects %} |
30 | 30 |
<subjects>{%for subject in dataset.subjects %} |
31 |
<subject {% if subject.lang %}xml:lang="{{subject.lang}}"{% endif %} {% if subject.schemeUri %}schemeURI="{{subject.schemeUri |e}}"{% endif %} {% if subject.subjectScheme %}subjectScheme="{{subjectScheme}}"{% endif %}>{{subject.subject|e}}</subject> {%endfor %}
|
|
31 |
<subject {% if subject.lang %}xml:lang="{{subject.lang|e}}"{% endif %} {% if subject.schemeUri %}schemeURI="{{subject.schemeUri |e}}"{% endif %} {% if subject.subjectScheme %}subjectScheme="{{subjectScheme|e}}"{% endif %}>{{subject.subject|e}}</subject> {%endfor %}
|
|
32 | 32 |
</subjects> {%endif %} |
33 | 33 |
{%if dataset.contributors %}<contributors>{% for contributor in dataset.contributors %} |
34 | 34 |
<contributor {% if contributor.contributorType %}contributorType="{{contributor.contributorType | e}}" {% endif %}> |
... | ... | |
38 | 38 |
</contributor> {% endfor %} |
39 | 39 |
</contributors> {% endif %} |
40 | 40 |
{%if dataset.dates %}<dates>{% for date in dataset.dates %} |
41 |
<date dateType="{{date.dateType}}">{{date.date}}</date> {% endfor %}
|
|
41 |
<date dateType="{{date.dateType|e}}">{{date.date|e}}</date> {% endfor %}
|
|
42 | 42 |
</dates>{% endif %} |
43 | 43 |
<language>{% if dataset.language %}{{dataset.language|e}}{% endif %}</language> |
44 |
{% if dataset.types %}<resourceType {% if dataset.types.resourceTypeGeneral %} resourceTypeGeneral="{{dataset.types.resourceTypeGeneral}}"{% endif %} {% if dataset.types.bibtex %} bibtex="{{dataset.types.bibtex | e}}"{% endif %}>{{dataset.types.resourceType | e}}</resourceType>{% endif %} |
|
44 |
{% if dataset.types %}<resourceType {% if dataset.types.resourceTypeGeneral %} resourceTypeGeneral="{{dataset.types.resourceTypeGeneral|e}}"{% endif %} {% if dataset.types.bibtex %} bibtex="{{dataset.types.bibtex | e}}"{% endif %}>{{dataset.types.resourceType | e}}</resourceType>{% endif %}
|
|
45 | 45 |
{% if dataset.identifiers %}<alternateIdentifiers> {% for identifier in dataset.identifiers %} |
46 |
<alternateIdentifier {% if identifier.identifierType %}alternateIdentifierType="{{identifier.identifierType | e}}"{% endif %}>{{identifier.identifier|e}}</alternateIdentifier> {% endfor %}
|
|
46 |
<alternateIdentifier {% if identifier.identifierType %}alternateIdentifierType="{{identifier.identifierType|e}}"{% endif %}>{{identifier.identifier|e}}</alternateIdentifier> {% endfor %}
|
|
47 | 47 |
</alternateIdentifiers> {% endif %} |
48 | 48 |
{% if dataset.relatedIdentifiers %}<relatedIdentifiers>{% for identifier in dataset.relatedIdentifiers %} |
49 |
<relatedIdentifier {% if identifier.relatedIdentifierType %} relatedIdentifierType="{{identifier.relatedIdentifierType| e}}" {% endif %} {% if identifier.relationType %}relationType="{{identifier.relationType| e}}" {%endif %} {% if identifier.relatedMetadataScheme %} relatedMetadataScheme="{{identifier.relatedMetadataScheme| e}}" {% endif %} {% if identifier.schemeUri %} schemeURI="{{identifier.schemeUri| e}}" {% endif %}>{{identifier.relatedIdentifier|e}}</relatedIdentifier> {% endfor %}
|
|
49 |
<relatedIdentifier {% if identifier.relatedIdentifierType %} relatedIdentifierType="{{identifier.relatedIdentifierType|e}}" {% endif %} {% if identifier.relationType %}relationType="{{identifier.relationType|e}}" {%endif %} {% if identifier.relatedMetadataScheme %} relatedMetadataScheme="{{identifier.relatedMetadataScheme| e}}" {% endif %} {% if identifier.schemeUri %} schemeURI="{{identifier.schemeUri| e}}" {% endif %}>{{identifier.relatedIdentifier|e}}</relatedIdentifier> {% endfor %}
|
|
50 | 50 |
</relatedIdentifiers>{% endif %} |
51 | 51 |
{% if dataset.sizes %}<sizes> {%for size in dataset.sizes %} |
52 | 52 |
<size>{{size|e}}</size> {% endfor %} |
... | ... | |
64 | 64 |
{% if dataset.geoLocations %}<geoLocations> |
65 | 65 |
{%for geo in dataset.geoLocations %}<geoLocation> |
66 | 66 |
{% if geo.geoLocationPoint %} <geoLocationPoint>{{geo.geoLocationPoint.pointLongitude| e}} {{geo.geoLocationPoint.pointLatitude| e}}</geoLocationPoint> {% endif %} |
67 |
{% if geo.geoLocationBox %} <geoLocationBox>{{ geo.geoLocationBox.southBoundLatitude}} {{ geo.geoLocationBox.westBoundLongitude| e}} {{ geo.geoLocationBox.northBoundLatitude| e}} {{ geo.geoLocationBox.eastBoundLongitude| e}}</geoLocationBox>{% endif %} |
|
67 |
{% if geo.geoLocationBox %} <geoLocationBox>{{ geo.geoLocationBox.southBoundLatitude|e}} {{ geo.geoLocationBox.westBoundLongitude| e}} {{ geo.geoLocationBox.northBoundLatitude| e}} {{ geo.geoLocationBox.eastBoundLongitude| e}}</geoLocationBox>{% endif %}
|
|
68 | 68 |
<geoLocationPlace>{{geo.geoLocationPlace|e}}</geoLocationPlace> |
69 | 69 |
</geoLocation>{% endfor %} |
70 | 70 |
</geoLocations>{% endif %} |
Also available in: Unified diff
escaped missing properties