{% extends 'affiliates/base.html' %} {% load bootstrap %} {% load guardian_tags %} {% load scipost_extras %} {% block pagetitle %}: Publication: {{ object }}{% endblock %} {% block breadcrumb_items %} Affiliates Journals {{ object.journal }} {{ object }} {% endblock %} {% block content %} {% get_obj_perms request.user for object.journal as "user_perms" %}

Publication: {{ object }}

(in affiliate journal {{ object.journal }})

{% if object.get_pages %} {% endif %}
Title{{ object.get_title }}
Author list{{ object.get_author_list }}
Volume{{ object.get_volume }}{% if object.get_issue %} ({{ object.get_issue}}){% endif %}
Pages{{ object.get_pages }}
Publication date{{ object.publication_date }}
DOI{{ object.doi }}

PubFractions

{% if 'manage_journal_content' in user_perms %}

Add a PubFraction

{% with type_id=object|content_type_id %} Can't find the Organization you need?  {% include 'bi/arrow-right.html' %}create a support ticket {% endwith %}
{% csrf_token %} {{ add_pubfraction_form }}
{% endif %}

PubFractions for this publication

{% for pubfrac in object.pubfractions.all %} {% if 'manage_journal_content' in user_perms %} {% endif %} {% empty %} {% endfor %}
Organization Fraction
{{ pubfrac.organization }} {{ pubfrac.fraction }} {% include 'bi/x-square-fill.html' %}
No PubFractions have been defined.
{% if 'manage_journal_content' in user_perms %} {% with sum_pubfractions=object.get_sum_pubfractions %}

Sum of PubFractions: {{ sum_pubfractions }}.  {% if sum_pubfractions != 1 %} WARNING: the PubFractions do not sum up to 1! {% else %} All good, PubFractions sum up to 1. {% endif %}

{% endwith %} {% endif %}
{% endblock content %} {% block footer_script %} {{ add_pubfraction_form.media }} {% endblock footer_script %}