bugfix(*): fix record creators name access

access name via creator.person_or_org.name.
This commit is contained in:
David Eckhard
2021-02-10 10:01:39 +01:00
parent 28403053d2
commit 07e205f04c
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ const Creator = ({creator}) => {
return ( return (
<div className="creator"> <div className="creator">
<Identifiers creator={creator}/> <Identifiers creator={creator}/>
<span className="text-muted">{creator.name}</span> <span className="text-muted">{creator.person_or_org.name}</span>
</div> </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> <a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
{%- endif %} {%- 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 %} {% if not loop.last %}; {% endif %}
{%- endfor %} {%- endfor %}