-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gemma
committed
Jun 20, 2024
1 parent
ec521c4
commit 7a43165
Showing
17 changed files
with
852 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,118 +147,122 @@ function BeaconInfo (props) { | |
<div className='resultsRecord'> | ||
{resp.map(result => { | ||
return ( | ||
<div className='datasetCard'> | ||
<div className='tittle'> | ||
<div className='tittle2'> | ||
{result.response.organization.logoUrl !== '' && | ||
result.response.name !== 'NAGENpediatrics Beacon' && ( | ||
<img | ||
className='logoBeacon' | ||
src={result.response.organization.logoUrl} | ||
alt={result.meta.beaconId} | ||
/> | ||
)} | ||
{result.response.name === 'NAGENpediatrics Beacon' && ( | ||
<img | ||
className='logoBeaconNasertic' | ||
src={result.response.organization.logoUrl} | ||
alt={result.meta.beaconId} | ||
<> | ||
{result.response && ( | ||
<div className='datasetCard'> | ||
<div className='tittle'> | ||
<div className='tittle2'> | ||
{result.response.organization.logoUrl !== '' && | ||
result.response.name !== 'NAGENpediatrics Beacon' && ( | ||
<img | ||
className='logoBeacon' | ||
src={result.response.organization.logoUrl} | ||
alt={result.meta.beaconId} | ||
/> | ||
)} | ||
{result.response.name === 'NAGENpediatrics Beacon' && ( | ||
<img | ||
className='logoBeaconNasertic' | ||
src={result.response.organization.logoUrl} | ||
alt={result.meta.beaconId} | ||
/> | ||
)} | ||
<h1>{result.response.name}</h1> | ||
</div> | ||
<h2>{result.response.organization.name}</h2> | ||
</div> | ||
<hr className='line'></hr> | ||
{!result.response.description.includes('<a href') && ( | ||
<p>{result.response.description}</p> | ||
)} | ||
{result.response.description.includes('<a href') && ( | ||
<p | ||
dangerouslySetInnerHTML={{ | ||
__html: result.response.description | ||
}} | ||
/> | ||
)} | ||
<h1>{result.response.name}</h1> | ||
<div className='linksBeacons'> | ||
{result.meta.beaconId === | ||
'org.ega-archive.ga4gh-approval-beacon-test' && ( | ||
<a | ||
href='https://beacon-apis-demo.ega-archive.org/api' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href='https://beacons.bsc.es/beacon/v2.0.0/' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'org.progenetix' && ( | ||
<a | ||
href='https://beaconplus.progenetix.org/' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId !== 'es.elixir.bsc.beacon' && | ||
result.meta.beaconId !== 'org.progenetix' && | ||
result.meta.beaconId !== | ||
'org.ega-archive.ga4gh-approval-beacon-test' && ( | ||
<a | ||
href={result.response.alternativeUrl} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href='https://www.bsc.es/' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Visit us | ||
</a> | ||
)} | ||
{result.meta.beaconId !== 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href={result.response.organization.welcomeUrl} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Visit us | ||
</a> | ||
)} | ||
{result.meta.beaconId !== 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href={result.response.organization.contactUrl} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Contact us | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href='mailto:[email protected]' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Contact us | ||
</a> | ||
)} | ||
</div> | ||
</div> | ||
<h2>{result.response.organization.name}</h2> | ||
</div> | ||
<hr className='line'></hr> | ||
{!result.response.description.includes('<a href') && ( | ||
<p>{result.response.description}</p> | ||
)} | ||
{result.response.description.includes('<a href') && ( | ||
<p | ||
dangerouslySetInnerHTML={{ | ||
__html: result.response.description | ||
}} | ||
/> | ||
)} | ||
<div className='linksBeacons'> | ||
{result.meta.beaconId === | ||
'org.ega-archive.ga4gh-approval-beacon-test' && ( | ||
<a | ||
href='https://beacon-apis-demo.ega-archive.org/api' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href='https://beacons.bsc.es/beacon/v2.0.0/' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'org.progenetix' && ( | ||
<a | ||
href='https://beaconplus.progenetix.org/' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId !== 'es.elixir.bsc.beacon' && | ||
result.meta.beaconId !== 'org.progenetix' && | ||
result.meta.beaconId !== | ||
'org.ega-archive.ga4gh-approval-beacon-test' && ( | ||
<a | ||
href={result.response.alternativeUrl} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Beacon API | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href='https://www.bsc.es/' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Visit us | ||
</a> | ||
)} | ||
{result.meta.beaconId !== 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href={result.response.organization.welcomeUrl} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Visit us | ||
</a> | ||
)} | ||
{result.meta.beaconId !== 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href={result.response.organization.contactUrl} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Contact us | ||
</a> | ||
)} | ||
{result.meta.beaconId === 'es.elixir.bsc.beacon' && ( | ||
<a | ||
href='mailto:[email protected]' | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Contact us | ||
</a> | ||
)} | ||
</div> | ||
</div> | ||
</> | ||
) | ||
})} | ||
</div> | ||
|
Oops, something went wrong.