From 1f761a30df784ad676ea0a26d85390044391c690 Mon Sep 17 00:00:00 2001 From: Harald Wilhelmi Date: Tue, 10 Sep 2024 14:12:19 +0200 Subject: [PATCH] Changing Export in Search view to export all records --- .../search/ChromeRegionEnsembleLink.vue | 24 ++ .../search/GenesilicoModificationLink.vue | 17 + .../src/components/search/SearchResults.vue | 249 +++++++++++++ client/src/components/user/UserProjects.vue | 1 - client/src/utils/selection.js | 4 +- client/src/views/SearchView.vue | 329 +++--------------- server/src/scimodom/api/helpers.py | 34 ++ server/src/scimodom/api/modification.py | 153 ++++++-- server/src/scimodom/services/modification.py | 55 +-- 9 files changed, 535 insertions(+), 331 deletions(-) create mode 100644 client/src/components/search/ChromeRegionEnsembleLink.vue create mode 100644 client/src/components/search/GenesilicoModificationLink.vue create mode 100644 client/src/components/search/SearchResults.vue diff --git a/client/src/components/search/ChromeRegionEnsembleLink.vue b/client/src/components/search/ChromeRegionEnsembleLink.vue new file mode 100644 index 00000000..bd363c09 --- /dev/null +++ b/client/src/components/search/ChromeRegionEnsembleLink.vue @@ -0,0 +1,24 @@ + + diff --git a/client/src/components/search/GenesilicoModificationLink.vue b/client/src/components/search/GenesilicoModificationLink.vue new file mode 100644 index 00000000..f83bbfd7 --- /dev/null +++ b/client/src/components/search/GenesilicoModificationLink.vue @@ -0,0 +1,17 @@ + + diff --git a/client/src/components/search/SearchResults.vue b/client/src/components/search/SearchResults.vue new file mode 100644 index 00000000..e61c5e55 --- /dev/null +++ b/client/src/components/search/SearchResults.vue @@ -0,0 +1,249 @@ + + diff --git a/client/src/components/user/UserProjects.vue b/client/src/components/user/UserProjects.vue index f8f9c518..f4e19584 100644 --- a/client/src/components/user/UserProjects.vue +++ b/client/src/components/user/UserProjects.vue @@ -8,7 +8,6 @@ import { loadProjects } from '@/services/project' const records = ref() onMounted(() => { - console.log('Loading ...') loadProjects(records, null, true) }) diff --git a/client/src/utils/selection.js b/client/src/utils/selection.js index 4b8a93a8..64003fdf 100644 --- a/client/src/utils/selection.js +++ b/client/src/utils/selection.js @@ -48,9 +48,9 @@ export const updTechnologyFromModAndOrg = (selection, slctMod, slctOrg) => { return tree } -export const updSelectionFromAll = (selection, slctMod, slctOrg, slctTech) => { +export const updSelectionFromAll = (all_selections, slctMod, slctOrg, slctTech) => { let idsTech = toIds(slctTech, []) - let opts = selection.filter( + let opts = all_selections.filter( (item) => item.modification_id == slctMod.key && item.organism_id == slctOrg.key && diff --git a/client/src/views/SearchView.vue b/client/src/views/SearchView.vue index c28b34b6..06c7c42a 100644 --- a/client/src/views/SearchView.vue +++ b/client/src/views/SearchView.vue @@ -1,8 +1,6 @@