From 1eca2e091ea09af1e665cfab0ac11d678c794202 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Wed, 15 Dec 2021 12:22:27 +0100 Subject: [PATCH] Improve multiple publication.about display (#445) --- gatsby/lobid/src/components/publications.html.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gatsby/lobid/src/components/publications.html.js b/gatsby/lobid/src/components/publications.html.js index bcb8d29..d0883a9 100644 --- a/gatsby/lobid/src/components/publications.html.js +++ b/gatsby/lobid/src/components/publications.html.js @@ -11,16 +11,19 @@ export default class Publications extends React.Component {

{this.props.publications}

- + {this.props.pubs.map(publication => - +
{publication.datePublished} {publication.name.de || publication.name.en || publication.id}{publication.about && publication.about.map(a => -

 {simpleId(a.id)}

- )}
+ {publication.about &&  } + {publication.about && publication.about.map((a,i) => + {simpleId(a.id)}{i < publication.about.length - 1 && ", "} + )} + {publication.type.map(t => t.match(/[A-Z][a-z]+/)[0])} JSON-LD