Skip to content

Commit 0307fb8

Browse files
committed
fix: update citation page
1 parent 7ce5dc1 commit 0307fb8

File tree

4 files changed

+53
-27
lines changed

4 files changed

+53
-27
lines changed

public/data/dataset_citations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"mainCitation": {
3-
"title": "Flagship dataset of type 2 diabetes from the AI-READI project (1.0.0). FAIRhub",
3+
"title": "Flagship dataset of type 2 diabetes from the AI-READI project. FAIRhub",
44
"authors": [
55
{
66
"name": "AI-READI Consortium"
@@ -9,7 +9,7 @@
99
"year": null,
1010
"source": "AI-READI Consortium - 2024",
1111
"link": null,
12-
"citation": "[{'name': 'AI-READI Consortium'}] (None). Flagship dataset of type 2 diabetes from the AI-READI project (1.0. 0). FAIRhub. AI-READI Consortium - 2024."
12+
"citation": "[{'name': 'AI-READI Consortium'}] (None). Flagship dataset of type 2 diabetes from the AI-READI project. FAIRhub. AI-READI Consortium - 2024."
1313
},
1414
"citingPublications": [
1515
{

public/data/marker_paper.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"year": 2024,
1515
"source": "Nature metabolism",
16-
"link": "https://www.nature.com/articles/s42255-024-01165-x",
16+
"link": "https://doi.org/10.1038/s42255-024-01165-x",
1717
"citation": "[{'name': 'Project Managers http://orcid. org/0000-0001-6343 '}] (None). AI-READI: rethinking AI data collection, preparation and sharing in diabetes research and beyond. Project Managers http://orcid. org/0000-0001-6343 … - Nature …, 2024 - nature.com."
1818
},
1919
"citingPublications": [

src/pages/dataset.tsx

Lines changed: 48 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const Dataset: React.FC = () => {
8181
<h3 className='pb-2 text-center text-xl font-bold tracking-tight'>
8282
Marker paper
8383
</h3>
84-
<div className='rounded-lg bg-white p-2 shadow-sm'>
84+
<div className='bg-white p-2 shadow-sm'>
8585
<div className='mt-4 space-y-2 leading-relaxed text-gray-700'>
8686
<p className='text-base text-gray-800'>
8787
AI-READI Consortium. {markerMainCite.year}
@@ -93,7 +93,7 @@ const Dataset: React.FC = () => {
9393
{markerMainCite.source}
9494
{'. '}
9595
<a
96-
href={markerMainCite.source}
96+
href={markerMainCite.link}
9797
target='_blank'
9898
rel='noopener noreferrer'
9999
className='text-sky-600 hover:underline'
@@ -143,27 +143,53 @@ const Dataset: React.FC = () => {
143143
<h3 className='py-2 text-center text-xl font-bold tracking-tight'>
144144
AI-READI dataset
145145
</h3>
146-
<div className='rounded-lg bg-white p-2 shadow-sm'>
147-
<div className='mt-4 space-y-2 leading-relaxed text-gray-700'>
148-
<p className='text-base text-gray-800'>
149-
{datasetMainCite.authors?.[0]?.name}
150-
{'. '}
151-
<span>{datasetMainCite.citation.trim().slice(-5, -1)}</span>
152-
{'. '}
153-
<span className='italic text-gray-900'>
154-
{datasetMainCite.title}
155-
</span>
156-
</p>
157-
<a
158-
href='https://fairhub.io/datasets/3'
159-
target='_blank'
160-
rel='noopener noreferrer'
161-
className='text-sky-600 hover:underline'
162-
>
163-
fairhub.io/datasets/3
164-
</a>
146+
<div className='bg-white p-2 shadow-sm'>
147+
<div className='mt-4 space-y-2 leading-relaxed text-gray-700'>
148+
<p className='text-base text-gray-800'>
149+
{datasetMainCite.authors?.[0]?.name}
150+
{'. '}
151+
<span className='italic text-gray-900'>
152+
{datasetMainCite.title}
153+
</span>
154+
</p>
155+
156+
<ul className='list-disc list-inside space-y-1'>
157+
<li>
158+
v1.0.0 (2024):{' '}
159+
<a
160+
href='https://doi.org/10.60775/fairhub.1'
161+
target='_blank'
162+
rel='noopener noreferrer'
163+
className='text-sky-600 hover:underline'
164+
>
165+
https://doi.org/10.60775/fairhub.1
166+
</a>
167+
</li>
168+
<li>
169+
v2.0.0 (2024):{' '}
170+
<a
171+
href='https://doi.org/10.60775/fairhub.2'
172+
target='_blank'
173+
rel='noopener noreferrer'
174+
className='text-sky-600 hover:underline'
175+
>
176+
https://doi.org/10.60775/fairhub.2
177+
</a>
178+
</li>
179+
<li>
180+
v3.0.0 (2025):{' '}
181+
<a
182+
href='https://doi.org/10.60775/fairhub.3'
183+
target='_blank'
184+
rel='noopener noreferrer'
185+
className='text-sky-600 hover:underline'
186+
>
187+
https://doi.org/10.60775/fairhub.3
188+
</a>
189+
</li>
190+
</ul>
191+
</div>
165192
</div>
166-
</div>
167193

168194
<div className='bg-white pb-4 shadow-sm'>
169195
<details className='group'>

src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const HomePage: React.FC<EventItem> = ({ slug, frontMatter }) => {
7373
<div className='col-span-12'>
7474
<div className='relative flex w-max flex-col space-y-2 sm:flex-row sm:space-x-4 sm:space-y-0'>
7575
<ButtonLink
76-
href='https://fairhub.io/'
76+
href='https://fairhub.io'
7777
variant='primary'
7878
>
7979
Access our data
@@ -301,7 +301,7 @@ const HomePage: React.FC<EventItem> = ({ slug, frontMatter }) => {
301301

302302
<div className='flex items-center space-x-2'>
303303
<ButtonLink
304-
href='https://fairhub.io/'
304+
href='https://fairhub.io'
305305
variant='primary'
306306
>
307307
Access our data

0 commit comments

Comments
 (0)