Merge pull request #154 from rekt-hard/bugfix_record-name-access

bugfix(*): fix record creators name access
This commit is contained in:
Christoph Ladurner
2021-02-23 09:48:24 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ const Creator = ({creator}) => {
return (
<div className="creator">
<Identifiers creator={creator}/>
<span className="text-muted">{creator.name}</span>
<span className="text-muted">{creator.person_or_org.name}</span>
</div>
);
};

View File

@@ -15,7 +15,7 @@
<a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
{%- endif %}
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-toggle="tooltip" title="{{affiliation.name}}" {%- endfor %} {% endif %}>{{creators.name}}</span>
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-toggle="tooltip" title="{{affiliation.name}}" {%- endfor %} {% endif %}>{{creators.person_or_org.name}}</span>
{% if not loop.last %}; {% endif %}
{%- endfor %}