Skip to content

Commit

Permalink
Fall back to name.en for publications
Browse files Browse the repository at this point in the history
See #445
  • Loading branch information
fsteeg committed Mar 4, 2021
1 parent 7b97cfa commit 67fe500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gatsby/lobid/src/components/member.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Member extends React.Component {
{this.props.pubs.map(publication =>
<tr>
<td><small>{publication.datePublished}</small></td>
<td><a href={publication.id}>{publication.name.label || publication.id}</a></td>
<td><a href={publication.id}>{publication.name.de || publication.name.en || publication.id}</a></td>
<td>{publication.about && publication.about.map(a => <p><a href={a.id}>{a.id}</a></p>)}</td>
<td align="right"><small><a href={"https://schema.org/" + publication.type}>{publication.type}</a></small></td>
<td><a title="Beschreibung als JSON-LD anzeigen" href={publication.fields.jsonFile}><img height="20px" src={jsonLdPng} alt="JSON-LD" /></a></td>
Expand Down
6 changes: 2 additions & 4 deletions gatsby/lobid/src/templates/member.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ export const query = graphql`
id
}
name {
label: de
}
description {
label: de
de
en
}
about {
id
Expand Down

0 comments on commit 67fe500

Please sign in to comment.