From e998fb2ab4794594074596ea28953d003b49a58b Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Fri, 19 Apr 2024 17:13:15 +0200 Subject: [PATCH] aled --- .../ScientificPublications/ListResearches.vue | 22 +--------- .../ResearchComponent.vue | 42 +++++++++++++++---- .../ScientificPublications/ManageResearch.js | 2 +- 3 files changed, 36 insertions(+), 30 deletions(-) diff --git a/frontend/src/Apps/ScientificPublications/ListResearches.vue b/frontend/src/Apps/ScientificPublications/ListResearches.vue index 6c63efa..5ce4fd5 100644 --- a/frontend/src/Apps/ScientificPublications/ListResearches.vue +++ b/frontend/src/Apps/ScientificPublications/ListResearches.vue @@ -2,8 +2,7 @@ import { ref} from "vue"; import FilterComponent from "@/Apps/ScientificPublications/FilterComponent.vue"; import ArticleComponent from "@/Apps/ScientificPublications/ResearchComponent.vue"; -import {getFile, fetchAllResearches, addView} from "@/rest/ScientificPublications/ManageResearch.js"; -import {fetchResearch} from "@/rest/ScientificPublications/ResearcherProfile.js"; +import { fetchAllResearches, addView} from "@/rest/ScientificPublications/ManageResearch.js"; const input = ref("") const isFilterOpened = ref(false); const isResearchOpened = ref(false); @@ -34,23 +33,6 @@ const closeResearch = () => { articleToDisplay.value = null; } -const downloadBibTex = (research) => { - getFile(research.bibTexLocation) -} - -async function downloadArticle (research){ - await addView(research.pdfLocation) - await getFile(research.pdfLocation) - articleToDisplay.value = await fetchResearch(articleToDisplay.value.id) -} - -function downloadCoAuthors(){ - //todo - const data = JSON.stringify(researcher.value); - const blob = new Blob([data], {type:"application/json"}); - return URL.createObjectURL(blob); -} - function searchInList(list, searchInput) { let retList = [] @@ -91,7 +73,7 @@ function lDistance(s,t){