diff --git a/app/preprints/detail/route.ts b/app/preprints/detail/route.ts index c2d43906eba..65d3731ea7b 100644 --- a/app/preprints/detail/route.ts +++ b/app/preprints/detail/route.ts @@ -67,8 +67,6 @@ export default class PreprintsDetail extends Route { const license = await preprint?.get('license'); - const node = await preprint?.get('node'); - const subjects = await preprint?.queryHasMany('subjects'); return { @@ -79,7 +77,6 @@ export default class PreprintsDetail extends Route { primaryFile, license, subjects, - node, }; } catch (error) { diff --git a/app/preprints/detail/template.hbs b/app/preprints/detail/template.hbs index bbfb7b4e112..6e72e26ceaa 100644 --- a/app/preprints/detail/template.hbs +++ b/app/preprints/detail/template.hbs @@ -69,7 +69,7 @@
{{t this.dateLabel}}: {{moment-format this.model.dateCreated 'MMMM DD, YYYY'}}
{{#unless this.isMobile}} -
|
+
|
{{/unless}} {{#if this.isWithdrawn}}
{{t 'preprints.detail.header.withdrawn_on'}}: {{moment-format this.model.preprint.dateWithdrawn 'MMMM DD, YYYY'}}
@@ -87,7 +87,7 @@ @type='default' > {{if this.fullScreenMFR (t 'preprints.detail.collapse') (t 'preprints.detail.expand')}} - +
{{/unless}} @@ -111,7 +111,7 @@ data-test-download-button data-analytics-name='downloads' local-class='btn btn-primary' - @href={{ this.fileDownloadUrl }} + @href={{ this.fileDownloadUrl }} > {{t 'preprints.detail.share.download' documentType=this.model.provider.documentType.singular}} @@ -153,15 +153,15 @@ - {{#if this.model.node}} + {{#if this.model.preprint.node}}

{{t 'preprints.detail.supplemental_materials'}}

- {{this.model.node.links.html}} + {{this.model.preprint.node.links.html}}
@@ -173,7 +173,7 @@ {{this.model.preprint.articleDoiUrl}}