@@ -12,7 +12,7 @@ import {
1212} from "@/components/ui/pagination" ;
1313import { Tabs , TabsContent , TabsList , TabsTrigger } from '@/components/ui/tabs' ;
1414import type { Publication } from "@/types/types" ;
15- import { BookOpen , ExternalLink , FileText , Link2 } from 'lucide-react' ;
15+ import { ExternalLink , FileText , Link2 } from 'lucide-react' ;
1616import { useState } from 'react' ;
1717
1818interface PublicationsTabsLoadedProps {
@@ -100,19 +100,19 @@ export default function PublicationsTabsLoaded({ publications, featuredPmids }:
100100 < CardFooter className = "pt-0" >
101101 < div className = "flex flex-wrap gap-4 items-center justify-between w-full" >
102102 < div className = "flex flex-wrap gap-4" >
103- { publication . link && (
103+ { publication . doi && (
104104 < Button variant = "secondary" size = "sm" asChild className = "border" >
105- < a href = { publication . link } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
105+ < a href = { `https://doi.org/ ${ publication . doi } ` } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
106106 < ExternalLink className = "h-4 w-4" />
107107 < span > View Publication</ span >
108108 </ a >
109109 </ Button >
110110 ) }
111- { publication . doi && (
111+ { publication . europePmc && (
112112 < Button variant = "outline" size = "sm" asChild className = "border" >
113- < a href = { `https://doi.org/ ${ publication . doi } ` } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
113+ < a href = { publication . europePmc } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
114114 < Link2 className = "h-4 w-4" />
115- < span > DOI </ span >
115+ < span > EuropePMC </ span >
116116 </ a >
117117 </ Button >
118118 ) }
@@ -124,14 +124,6 @@ export default function PublicationsTabsLoaded({ publications, featuredPmids }:
124124 </ a >
125125 </ Button >
126126 ) }
127- { publication . pmcid && (
128- < Button variant = "outline" size = "sm" asChild className = "border" >
129- < a href = { `https://www.ncbi.nlm.nih.gov/pmc/articles/${ publication . pmcid } ` } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
130- < BookOpen className = "h-4 w-4" />
131- < span > PMC</ span >
132- </ a >
133- </ Button >
134- ) }
135127 </ div >
136128 < div className = "text-sm text-muted-foreground italic" >
137129 { publication . journal !== "Unknown Journal" && (
@@ -187,19 +179,19 @@ export default function PublicationsTabsLoaded({ publications, featuredPmids }:
187179 < CardFooter className = "pt-0" >
188180 < div className = "flex flex-wrap gap-4 items-center justify-between w-full" >
189181 < div className = "flex flex-wrap gap-4" >
190- { publication . link && (
182+ { publication . doi && (
191183 < Button variant = "secondary" size = "sm" asChild className = "border" >
192- < a href = { publication . link } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
184+ < a href = { `https://doi.org/ ${ publication . doi } ` } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
193185 < ExternalLink className = "h-4 w-4" />
194186 < span > View Publication</ span >
195187 </ a >
196188 </ Button >
197189 ) }
198- { publication . doi && (
190+ { publication . europePmc && (
199191 < Button variant = "outline" size = "sm" asChild className = "border" >
200- < a href = { `https://doi.org/ ${ publication . doi } ` } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
192+ < a href = { publication . europePmc } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
201193 < Link2 className = "h-4 w-4" />
202- < span > DOI </ span >
194+ < span > EuropePMC </ span >
203195 </ a >
204196 </ Button >
205197 ) }
@@ -211,14 +203,6 @@ export default function PublicationsTabsLoaded({ publications, featuredPmids }:
211203 </ a >
212204 </ Button >
213205 ) }
214- { publication . pmcid && (
215- < Button variant = "outline" size = "sm" asChild className = "border" >
216- < a href = { `https://www.ncbi.nlm.nih.gov/pmc/articles/${ publication . pmcid } ` } target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
217- < BookOpen className = "h-4 w-4" />
218- < span > PMC</ span >
219- </ a >
220- </ Button >
221- ) }
222206 </ div >
223207 < div className = "text-sm text-muted-foreground italic" >
224208 { publication . journal !== "Unknown Journal" && (
0 commit comments