{% assign pub = include.pub %}{% assign authors = include.authors %}{% assign sources = site.data.sources %}{% assign journals = site.data.journals %}
<li value="{{pub.id}}">
    <p class="left">
        {% for a in pub.authors -%}
            {% assign ca = authors[a] -%}
            {% if ca.home -%}
                <a href="{{ca.home)}}">{{ca.name}}</a>
            {% else -%}
                {{ca.name}}
            {% endif -%}
            {% if forloop.last -%}{% else -%}, {% endif -%}
        {% endfor -%}
        <br>
        <strong>{{pub.title}}</strong>
    </p>
    <span class="right">
    </span>
    <p class="clear">
    {% if pub.journal %}
      {% if journals[pub.journal] %}
        {% assign j = journals[pub.journal] %}
        <a href="{{ j.url }}" title="{{ j.long }}"><em>{{ j.short }}</em></a>
      {% else %}
        <em>{{pub.journal}}</em>
      {% endif %}
      {% if pub.issue %} | {{pub.issue.year}}{% if pub.issue.volume %} Vol. {{pub.issue.volume}} {% endif %}{% if pub.issue.number %}({{pub.issue.number}}){% endif %} : {{ pub.issue.pages}}
      {% else %} | {% if page.lang == "en" %}in press{% else %}à paraître{% endif %}
      {% endif %}
    {% else %}
        {% if page.lang == "en" %}submitted{% else %}soumis{% endif %}
    {% endif %}
    <span class="right">
    {% if pub.cc %}CC-{{pub.cc | upcase }}
        {% if pub.links or pub.doi -%}&middot;{% endif -%}
    {% endif %}
    {% if pub.doi %}<a href="{{ sources.doi.baseurl}}{{ pub.doi }}">🌐</a>
        {% if pub.links -%}&middot;{% endif -%}
    {% endif %}
    {% for link in pub.links %}
    {% assign k = link[0] %}
    <span class="paper_link"><a title="{{ sources[k].baseurl}}{{link[1]}}" href="{{ sources[k].baseurl}}{{link[1]}}">{{ sources[k].name }}</a></span>
    {% if forloop.last -%}{% else -%}&middot;{% endif -%}
    {% endfor %}
    </span>
    </p>
    <p class="clear"></p>
</li>
