mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-08-31 01:01:11 +08:00
fix(route): orcid null journalTitle
fix https://github.com/DIYgod/RSSHub/issues/9170#issuecomment-1137797867
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user