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){