diff --git a/src/modules/otus/components/Panel/PanelCitation/PanelCitation.vue b/src/modules/otus/components/Panel/PanelCitation/PanelCitation.vue index ce5ae39..0159067 100644 --- a/src/modules/otus/components/Panel/PanelCitation/PanelCitation.vue +++ b/src/modules/otus/components/Panel/PanelCitation/PanelCitation.vue @@ -17,8 +17,8 @@ @@ -40,8 +40,8 @@ @@ -60,6 +60,11 @@ const props = defineProps({ otuId: { type: [Number, String], required: true + }, + + taxon: { + type: Object, + required: true } }) @@ -100,12 +105,13 @@ watch( () => props.otuId, async () => { if (!props.otuId) { return } + const list = (await TaxonWorks.getTaxonNameCitations(props.otuId)).data - citations.value = (await TaxonWorks.getTaxonNameCitations(props.otuId)).data + citations.value = !props.taxon.is_valid + ? list.filter(c => c.names.includes(props.taxon.full_name_tag)) + : list }, - { - immediate: true - } + { immediate: true } ) const changeRowExpandedState = value => { diff --git a/src/modules/otus/constants/overviewLayout.js b/src/modules/otus/constants/overviewLayout.js index 763e0b5..001b420 100644 --- a/src/modules/otus/constants/overviewLayout.js +++ b/src/modules/otus/constants/overviewLayout.js @@ -10,8 +10,8 @@ import PanelStatus from '../components/Panel/PanelStatus/PanelStatus.vue' export const overviewLayout = { left: [ - { component: PanelGallery }, { component: PanelStatus }, + { component: PanelGallery }, { component: PanelTypeSpecimen, available: [SPECIES_GROUP] diff --git a/src/modules/otus/views/Index.vue b/src/modules/otus/views/Index.vue index 571432e..02452af 100644 --- a/src/modules/otus/views/Index.vue +++ b/src/modules/otus/views/Index.vue @@ -71,6 +71,7 @@ v-if="taxon.id && otu.id" :key="route.fullPath" :taxon-id="taxon.id" + :taxon="taxon" :taxon-rank="taxon.rank_string" :otu-id="otu.id" /> diff --git a/src/modules/otus/views/Overview.vue b/src/modules/otus/views/Overview.vue index 01fc92c..28d19dc 100644 --- a/src/modules/otus/views/Overview.vue +++ b/src/modules/otus/views/Overview.vue @@ -11,6 +11,7 @@ v-if="!available || isComponentForRank(available, taxonRank)" :otu-id="otuId" :taxon-id="taxonId" + :taxon="taxon" /> @@ -24,6 +25,7 @@ v-if="!available || isComponentForRank(available, taxonRank)" :otu-id="otuId" :taxon-id="taxonId" + :taxon="taxon" /> @@ -48,6 +50,11 @@ defineProps({ otuId: { type: [Number, String], required: true + }, + + taxon: { + type: Object, + required: true } })