Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Estelle/controlled keywords #243

Merged
merged 19 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions src/components/common/HighlightsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@
:href="`${config.appBaseUrl}/#/publication-identifiers/${slotProps.data.dbName}/${slotProps.data[col.field]}`">{{
slotProps.data[col.field] }}</a>
</template>
<!-- Link keywords and Doi Identifiers to an internal MaveDB search page -->
<template v-else-if="this.field == 'keywords' && col.field == 'column'" #body="slotProps">
<a :href="`${config.appBaseUrl}/#/search?search=${slotProps.data[col.field]}`">{{
slotProps.data[col.field] }}</a>
</template>
<template v-else-if="this.field == 'doi-identifiers' && col.field == 'identifier'" #body="slotProps">
<a :href="`${config.appBaseUrl}/#/search?search=${slotProps.data[col.field]}`">{{
slotProps.data[col.field] }}</a>
Expand Down Expand Up @@ -138,11 +133,6 @@
:href="`${config.appBaseUrl}/#/publication-identifiers/${slotProps.data.dbName}/${slotProps.data[col.field]}`">{{
slotProps.data[col.field] }}</a>
</template>
<!-- Link keywords to an internal MaveDB search page -->
<template v-else-if="this.field == 'keywords' && col.field == 'column'" #body="slotProps">
<a :href="`${config.appBaseUrl}/#/search?search=${slotProps.data[col.field]}`">{{
slotProps.data[col.field] }}</a>
</template>
<!-- Link out any URLs to the appropriate location -->
<template v-else-if="col.field == 'url'" #body="slotProps">
<a :href="`${slotProps.data.url}`" target="_blank">{{
Expand Down Expand Up @@ -200,7 +190,6 @@ export default defineComponent({
},

ScoreSet: {
keywords: { model: 'record', name: 'score-set', field: 'keywords' },
'publication-identifiers': { model: 'record', name: 'score-set', field: 'publication-identifiers' },
'doi-identifiers': { model: 'record', name: 'score-set', field: 'doi-identifiers' },
},
Expand All @@ -222,9 +211,8 @@ export default defineComponent({
'refseq-identifier': 'RefSeq ID',
'ensembl-identifier': 'Ensembl ID',
}
const scoreSetLeaderboardFields = ['keywords', 'publication-identifiers', 'doi-identifiers']
const scoreSetLeaderboardFields = ['publication-identifiers', 'doi-identifiers']
const scoreSetLeaderboardFieldTitles = {
keywords: 'Keyword',
'publication-identifiers': 'Publication ID',
'doi-identifiers': 'DOI',
}
Expand Down Expand Up @@ -269,12 +257,11 @@ export default defineComponent({
'ensembl-identifier': [{ field: 'identifier', header: 'Ensembl Id', width: '25%' }, { field: 'count', header: 'Associated Score Sets', width: '20%' }, { field: 'url', header: 'URL', width: '55%' }]
},
scoreSetLeaderboardColumns: {
keywords: [{ field: 'column', header: 'Keyword', width: '50%' }, { field: 'count', header: 'Associated Score Sets', width: '50%' }],
'publication-identifiers': [{ field: 'identifier', header: 'Identifier', width: '7.5%' }, { field: 'count', header: 'Associated Score Sets', width: '12.5%' }, { field: 'title', header: 'Title', width: '47%' }, { field: 'url', header: 'URL', width: '33%' }],
'doi-identifiers': [{ field: 'identifier', header: 'Identifier', width: '33%' }, { field: 'count', header: 'Associated Score Sets', width: '33%' }, { field: 'url', header: 'URL', width: '33%' }]
},
experimentLeaderboardColumns: {
keywords: [{ field: 'column', header: 'Keyword' }, { field: 'count', header: 'Associated Score Sets' }],
'keywords': [{ field: 'column', header: 'Keyword' }, { field: 'count', header: 'Associated Score Sets' }],
'raw-read-identifiers': [{ field: 'identifier', header: 'Raw Read Identifier' }, { field: 'count', header: 'Associated Score Sets' }, { field: 'url', header: 'URL' }],
'publication-identifiers': [{ field: 'identifier', header: 'Identifier' }, { field: 'count', header: 'Associated Score Sets' }, { field: 'title', header: 'Title' }, { field: 'url', header: 'URL' }],
'doi-identifiers': [{ field: 'identifier', header: 'Identifier' }, { field: 'count', header: 'Associated Score Sets' }, { field: 'url', header: 'URL' }]
Expand Down
Loading