Skip to content

Commit

Permalink
added additional links when MC is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
emilie19 committed Nov 23, 2023
1 parent 66cec9b commit 0b648d7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/components/CurationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@
<li v-if="'identifier' in get_occurrence"><a :href="get_mc" target="_blank">Material citation</a></li>
</ul>
</div>
<div class="expanded-box" v-if="'references' in get_occurrence">
<label>Additional links:</label>
<ul>
<li><a :href="get_gbif_dataset" target="_blank">GBIF dataset {{ get_occurrence.datasetKey }}</a></li>
<li><a :href="get_biotxplorer" target="_blank">Biotic interactions browser</a></li>
<li><a :href="get_sibils" target="_blank">SIBiLS</a></li>
</ul>
</div>
<div class="expanded-box" v-if="'references' in get_occurrence">
<a :href="get_report_link" target="_blank">Report an error on the content</a>
</div>
Expand Down Expand Up @@ -349,6 +357,19 @@ export default {
get_mc() {
return this.get_occurrence.references+this.get_occurrence.identifier.replace(".mc.", "#")
},
get_plazi_treatment_id() {
const refid = this.get_occurrence.references.split("/");
return refid[refid.length - 1];
},
get_sibils() {
return "https://sibils.text-analytics.ch/search/collections/plazi/" + this.get_plazi_treatment_id;
},
get_biotxplorer() {
return "https://denver.text-analytics.ch/BiotXplorer/collections/plazi/" + this.get_plazi_treatment_id;
},
get_gbif_dataset() {
return "https://www.gbif.org/dataset/" + this.get_occurrence.datasetKey;
},
to_process_curation() {
return this.filterListToDo(this.relations, "PNDG")
},
Expand Down

0 comments on commit 0b648d7

Please sign in to comment.