{% spaceless %}
{# SEE: http://www.chicagomanualofstyle.org/tools_citationguide.html #}
{% load publication_extras %}
{% with publication.authors_escaped|flatten_authors:"limit=0&last=, and" as authors %}
{% if publication.type.pk == 1 %}
{{ authors }},
"{{ publication.title }}" <i>{{ publication.journal }}</i> {{ publication.volume }}{% if publication.number %} n°&nbsp;{{ publication.number }}{% endif %} ({{ publication.year }}){% if publication.doi %}<a href="http://dx.doi.org/{{ publication.doi }}">{{ publication.doi }}</a>{% endif %}
{% elif publication.type.pk == 4 %}
{{ authors }},
<i>{{ publication.title }}</i> ({{ publication.location }}: {{ publication.publisher }}, {{ publication.year }}){% if publication.pages %}, publication.pages{% endif %}.
{% else %}
{{ authors }},
"{{ publication.title }}", {{ publication.year }}.
{% endif %}
{% endwith %}
{% endspaceless %}