rest_oai_pmh-8.x-1.0-beta1/templates/oai-default.html.twig
templates/oai-default.html.twig
{#
/**
* @file
* Default theme implementation for printing field values as XML for OAI-PMH.
*
* Available variables:
* - metadata_prefix: Which metadata schema the OAI-PMH endpoint is requesting
* - elements: array of field values, keyed by the element name (e.g. dc:title) and the values are either a string if only a single value, or an array if multiple values for the field,
*
* @ingroup themeable
*/
#}
{% for element, values in elements %}
{% if values is iterable %}
{% for value in values %}
<{{ element }}>{{ value }}</{{ element }}>
{% endfor %}
{% else %}
<{{ element }}>{{ values }}</{{ element }}>
{% endif %}
{% endfor %}
