Skip to content

Commit

Permalink
feat(R214): Update NCBI taxonomy browser links to data-hub.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Apr 26, 2023
1 parent a5318e1 commit 5008939
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/genome/GenomeNcbiMetadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
</template>
<template v-else>
<a
:href="`https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=${genomeCard.metadata_ncbi.ncbi_species_taxid}`"
:href="`https://www.ncbi.nlm.nih.gov/data-hub/taxonomy/${genomeCard.metadata_ncbi.ncbi_species_taxid}/`"
target="_blank">
{{ genomeCard.metadata_ncbi.ncbi_species_taxid }}
</a>
Expand Down Expand Up @@ -307,7 +307,7 @@
</template>
<template v-else>
<a
:href="`https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=${genomeCard.metadata_ncbi.ncbi_taxid}`"
:href="`https://www.ncbi.nlm.nih.gov/data-hub/taxonomy/${genomeCard.metadata_ncbi.ncbi_taxid}/`"
target="_blank">
{{ genomeCard.metadata_ncbi.ncbi_taxid }}
</a>
Expand Down
4 changes: 2 additions & 2 deletions components/genome/GenomeTaxonomicInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
>
<template v-if="item.taxonId">
<a
:href="`https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=${item.taxonId}`"
:href="`https://www.ncbi.nlm.nih.gov/data-hub/taxonomy/${item.taxonId}/`"
target="_blank">
{{ item.taxon }}<template v-if="index !== genomeCard.ncbiTaxonomyFiltered.length - 1">;</template>
</a>
Expand Down Expand Up @@ -134,7 +134,7 @@
>
<template v-if="item.taxonId">
<a
:href="`https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=${item.taxonId}`"
:href="`https://www.ncbi.nlm.nih.gov/data-hub/taxonomy/${item.taxonId}/`"
target="_blank">
{{ item.taxon }}<template
v-if="index !== genomeCard.ncbiTaxonomyUnfiltered.length - 1">;</template>
Expand Down
2 changes: 1 addition & 1 deletion pages/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
<!-- NCBI URL -->
<v-btn
v-if="showNcbiUrl && item.ncbiTaxId"
:href="`https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=${item.ncbiTaxId}&lvl=3&lin=f&keep=1&srchmode=1&unlock`"
:href="`https://www.ncbi.nlm.nih.gov/data-hub/taxonomy/${item.ncbiTaxId}/`"
class="tree-icon mr-1"
color="#21568a"
depressed
Expand Down

0 comments on commit 5008939

Please sign in to comment.