diff --git a/components/content/SystemDb.vue b/components/content/SystemDb.vue index 2ca3d8c35306d37cdb5a86295863b67e70453950..4b6250ffa17b092e3f41795cfb286fcf40d9e342 100644 --- a/components/content/SystemDb.vue +++ b/components/content/SystemDb.vue @@ -35,7 +35,10 @@ const autocompleteMeiliFacetsProps = ref<AutocompleteMeiliFacetProps>({ { type: "divider" }, { title: "PFAM", type: "subheader" }, { title: 'Acession', value: "PFAM.AC", type: "facet", icon: "" }, - { title: 'Description', value: "PFAM.DE", type: "facet", icon: "" } + { title: 'Description', value: "PFAM.DE", type: "facet", icon: "" }, + + { type: "divider" }, + { title: 'Contributor', value: "contributors", type: "facet", icon: "" }, ], facetDistribution: undefined }) @@ -94,7 +97,8 @@ const columnsToDownload = ref(['title', 'doi', 'Sensor', 'Activator', 'Effector' </script> <template> - <ServerDbTable title="List Systems" :db="dbName" :sortBy="sortBy" :autocomplete-meili-facets-props="computedAutocompleteMeiliFacetsProps" + <ServerDbTable title="List Systems" :db="dbName" :sortBy="sortBy" + :autocomplete-meili-facets-props="computedAutocompleteMeiliFacetsProps" :data-table-server-props="dataTableServerProps" :columns-to-download="columnsToDownload"> @@ -108,8 +112,10 @@ const columnsToDownload = ref(['title', 'doi', 'Sensor', 'Activator', 'Effector' <ArticleDoi v-if="item?.doi" :doi="item.doi" :abstract="item?.abstract" :divider="false" :enumerate="false" /> </template> <template #[`item.PFAM`]="{ item }"> - <pfam-chips v-if="item?.PFAM" :pfams="item.PFAM"></pfam-chips> </template> - </ServerDbTable> -</template> \ No newline at end of file + <template #[`item.contributors`]="{ item }"> + <CollapsibleChips v-if="item?.contributors" :items="item.contributors.map(it => ({ title: it }))"> + </CollapsibleChips> + </template> + </ServerDbTable></template> \ No newline at end of file