fix(route): orcid null journalTitle

fix https://github.com/DIYgod/RSSHub/issues/9170#issuecomment-1137797867
This commit is contained in:
Tony
2022-05-31 12:37:23 +00:00
committed by GitHub
parent b4b477081c
commit 4a7d0f4d43
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = async (ctx) => {
link: work.url,
description: art(path.join(__dirname, 'templates/description.art'), {
title: work.title.value,
journalTitle: work.journalTitle.value,
journalTitle: work.journalTitle?.value,
publicationDate: work.publicationDate,
workType: work.workType.value,
Str,
+2 -2
View File
@@ -1,3 +1,3 @@
<h2>{{ title }}</h2><h3>{{ journalTitle }}</h3>
<h2>{{ title }}</h2>{{ if journalTitle }}<h3>{{ journalTitle }}</h3>{{ /if }}
<span>{{ if publicationDate.year }}{{ publicationDate.year }}{{ /if }}{{ if publicationDate.month }}-{{ publicationDate.month }}{{ /if }}{{ if publicationDate.day }}-{{ publicationDate.day }}{{ /if }} | {{ workType }}</span><br>
<span>{{@ Str }}</span><span>Source: {{ sourceName }}</span>
<span>{{@ Str }}</span><span>Source: {{ sourceName }}</span>