From 73ae4aa8ebddad61592b9a9e1edd26ed65c8639b Mon Sep 17 00:00:00 2001 From: NRayya <82588017+NRayya@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:40:05 +0200 Subject: [PATCH] fix: add citation banner to public samples wherever missing fixes #1156 --- app/Http/Resources/StudyResource.php | 1 + resources/js/Pages/Public/Project/Study.vue | 18 ++++++++++++++++++ resources/js/Pages/Public/Sample/Show.vue | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/app/Http/Resources/StudyResource.php b/app/Http/Resources/StudyResource.php index edc00973..73bafc69 100644 --- a/app/Http/Resources/StudyResource.php +++ b/app/Http/Resources/StudyResource.php @@ -40,6 +40,7 @@ public function toArray($request) 'identifier' => $this->identifier, 'doi' => $this->doi, 'created_at' => $this->created_at, + 'release_date' => $this->release_date, 'is_public' => $this->is_public, 'public_url' => $this->public_url ? $this->public_url : null, 'updated_at' => $this->updated_at, diff --git a/resources/js/Pages/Public/Project/Study.vue b/resources/js/Pages/Public/Project/Study.vue index 558a05fc..27bf3389 100644 --- a/resources/js/Pages/Public/Project/Study.vue +++ b/resources/js/Pages/Public/Project/Study.vue @@ -5,6 +5,20 @@
+
+ + +

{{ study.data.name }} @@ -446,6 +460,8 @@ import SpectraViewer from "@/Shared/SpectraViewer.vue"; import Depictor2D from "@/Shared/Depictor2D.vue"; import DOIBadge from "@/Shared/DOIBadge.vue"; import { Head } from "@inertiajs/vue3"; +import Citation from "@/Shared/Citation.vue"; +import ShowProjectDates from "@/Shared/ShowProjectDates.vue"; export default { components: { @@ -460,6 +476,8 @@ export default { Depictor2D, DOIBadge, Head, + Citation, + ShowProjectDates, }, props: ["project", "tab", "study"], data() { diff --git a/resources/js/Pages/Public/Sample/Show.vue b/resources/js/Pages/Public/Sample/Show.vue index 0575eb75..9aa5409e 100644 --- a/resources/js/Pages/Public/Sample/Show.vue +++ b/resources/js/Pages/Public/Sample/Show.vue @@ -5,6 +5,21 @@
+
+ + +
+
@@ -498,6 +513,8 @@ import SpectraViewer from "@/Shared/SpectraViewer.vue"; import Depictor2D from "@/Shared/Depictor2D.vue"; import DOIBadge from "@/Shared/DOIBadge.vue"; import { Head } from "@inertiajs/vue3"; +import Citation from "@/Shared/Citation.vue"; +import ShowProjectDates from "@/Shared/ShowProjectDates.vue"; export default { components: { @@ -512,6 +529,8 @@ export default { Depictor2D, DOIBadge, Head, + Citation, + ShowProjectDates, }, props: ["project", "tab", "study"], data() {