Project

General

Profile

« Previous | Next » 

Revision 56862

fixed escaping problem

View differences:

modules/dataciteExporter/res/template.jinja
46 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}}" {% endif %} {% if identifier.relationType %}relationType="{{identifier.relationType}}" {%endif %} {% if identifier.relatedMetadataScheme %} relatedMetadataScheme="{{identifier.relatedMetadataScheme}}" {% endif %} {% if identifier.schemeUri %} schemeURI="{{identifier.schemeUri}}" {% 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 %}
......
59 59
            <rights {% if right.rightsUri %} rightsURI="{{right.rightsUri|e}}" {% endif %}>{{right.rights|e}}</rights>{% endfor %}         
60 60
        </rightsList>{% endif %}
61 61
        {% if dataset.descriptions %}<descriptions>{% for description in dataset.descriptions %}
62
            <description {% if description.descriptionType %} descriptionType="{{description.descriptionType}}"{% endif %}>{{description.description|e}}</description>{% endfor %}
62
            <description {% if description.descriptionType %} descriptionType="{{description.descriptionType| e}}"{% endif %}>{{description.description|e}}</description>{% endfor %}
63 63
        </descriptions>{% endif %}
64 64
        {% if dataset.geoLocations %}<geoLocations>
65 65
            {%for geo in dataset.geoLocations %}<geoLocation>  
66
                {% if geo.geoLocationPoint %} <geoLocationPoint>{{geo.geoLocationPoint.pointLongitude}} {{geo.geoLocationPoint.pointLatitude}}</geoLocationPoint> {% endif %}
67
                {% if geo.geoLocationBox %} <geoLocationBox>{{ geo.geoLocationBox.southBoundLatitude}} {{ geo.geoLocationBox.westBoundLongitude}} {{ geo.geoLocationBox.northBoundLatitude}} {{ geo.geoLocationBox.eastBoundLongitude}}</geoLocationBox>{% endif %}
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 %}
68 68
                <geoLocationPlace>{{geo.geoLocationPlace|e}}</geoLocationPlace>
69 69
            </geoLocation>{% endfor %}
70 70
        </geoLocations>{% endif %}

Also available in: Unified diff