Skip to content

Commit

Permalink
Merge pull request #102 from PavlidisLab/multiple-gui-improvements
Browse files Browse the repository at this point in the history
Multiple gui improvements
  • Loading branch information
oganm authored May 16, 2024
2 parents f8550b1 + c692f77 commit 19fe25e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/DatasetPreview.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="py-3">
<h3>{{ dataset.name }}</h3>
<h3> <a v-bind:href="datasetUrl">{{ dataset.shortName }}</a>: {{ dataset.name }}</h3>
<v-chip v-for="term in includedTerms" :key="getId(term)"
@[getClickEventName(term)]="handleChipClick(term)"
small :color="getChipColor(term.objectClass)"
Expand Down Expand Up @@ -56,7 +56,13 @@ export default {
if (this.dataset.searchResult !== undefined && this.dataset.searchResult.highlights !== null && "description" in this.dataset.searchResult.highlights) {
return marked.parseInline(highlight(this.dataset.description, this.dataset.searchResult.highlights.description));
}
return marked.parseInline(this.dataset.description);
let ds = this.dataset.description
let words = ds.split(" ")
if(words.length>150){
words = words.slice(0,150)
ds = words.join(" ") + ""
}
return marked.parseInline(ds);
},
chipColorMap() {
return {
Expand All @@ -65,6 +71,9 @@ export default {
BioMaterial: "blue lighten-3"
};
},
datasetUrl(){
return baseUrl + "/expressionExperiment/showExpressionExperiment.html?id=" + this.dataset.id
},
/**
* IDs of selected categories.
*/
Expand Down

0 comments on commit 19fe25e

Please sign in to comment.