Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Digital-Grinnell-Profile-MADS-Twig Rev 1
{# Digital_Grinnell_Profiles_MADS.twig Revision 1
THE official copy of this Twig template can be found as a Gist at
This TWIG template for IMI import is intended to serve as a general-purpose
starting point for MADS Profile import into Digital Grinnell.
History --------------------
Rev 1
Creating from scratch. Very simple template strictly for use with data supplied by Liz on 2021-04-20.
{% block content %}
{% autoescape false %}
<?xml version="1.0" encoding="UTF-8"?>
<mads xmlns="" xmlns:xlink="" xmlns:xsi="" xmlns:mads="">
<namePart type="given">{{ data.given_name }}</namePart>
<namePart type="family">{{ data.family_name }}</namePart>
<title>{{ data.display_name }}</title>
<namePart type="given">Elizabeth</namePart>
<namePart type="family">DeLisle</namePart>
<namePart type="given">Liz</namePart>
<namePart type="family">DeLisle Rodrigues</namePart>
<organization>{{ data.department }}</organization>
<email>{{ }}</email>
<fieldOfActivity>Life Writing Studies</fieldOfActivity>
<fieldOfActivity>Digital Humanities</fieldOfActivity>
<identifier type="u1">{{ data.identifier }}</identifier>
<note type="history">
{{ data.biography }}
{{ data.url }}
{% if data.orcid %}
<note type="orcid">
{{ data.orcid }}
{% endif %}
{% endautoescape %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment