fixed spelling mistake
This commit is contained in:
@ -46,9 +46,7 @@ onClickOutside(target, ()=>emit('modal-close'))
|
||||
</ul>
|
||||
<div id="downloads" v-if="article.pdfLocation !== null">
|
||||
<button @click.stop="emit('downloadBibTex')">Download BibTex</button>
|
||||
<form method="get" :action=article.pdfLocation>
|
||||
<button @click.stop="emit('downloadPdf', article)">Download Research</button>
|
||||
</form>
|
||||
<button @click.stop="emit('downloadPdf')">Download Research</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -9,7 +9,7 @@
|
||||
import { ref, reactive } from "vue";
|
||||
import FilterComponent from "@/Apps/ScientificPublications/FilterComponent.vue";
|
||||
import ArticleComponent from "@/Apps/ScientificPublications/ResearchComponent.vue";
|
||||
import {fetchResearcher, fetchResearches, fetchStats, addView} from "@/rest/ScientificPublications/ResearcherProfile.js";
|
||||
import {fetchResearcher, fetchResearches, fetchStats, addView, getFile} from "@/rest/ScientificPublications/ResearcherProfile.js";
|
||||
const input = ref("");
|
||||
const statsOf = ref("");
|
||||
const statsBy = ref("");
|
||||
@ -48,12 +48,12 @@ const closeResearch = () => {
|
||||
}
|
||||
|
||||
const downloadBibTex = (research) => {
|
||||
//todo
|
||||
getFile(research.bibTexLocation)
|
||||
}
|
||||
|
||||
const downloadArticle = (research) => {
|
||||
addView(research.url)
|
||||
|
||||
addView(research.pdfLocation)
|
||||
getFile(research.pdfLocation)
|
||||
}
|
||||
|
||||
function downloadCoAuthors(){
|
||||
@ -131,7 +131,7 @@ function update(){
|
||||
<template>
|
||||
<div id="main">
|
||||
<FilterComponent :isOpen="isFilterOpened" :allArticles="researchList" @modal-close="closeFilter" @submit="submitFilters()"></FilterComponent>
|
||||
<ArticleComponent :article="articleToDisplay" :isOpen="isResearchOpened" @modal-close="closeResearch" @downloadPdf="downloadArticle" @downloadBibTex="downloadBibTex"></ArticleComponent>
|
||||
<ArticleComponent :article="articleToDisplay" :isOpen="isResearchOpened" @modal-close="closeResearch" @downloadPdf="downloadArticle(articleToDisplay)" @downloadBibTex="downloadBibTex(articleToDisplay)"></ArticleComponent>
|
||||
<div id="profilePicture">
|
||||
<img src="/Clyde.png" />
|
||||
</div>
|
||||
|
@ -15,3 +15,6 @@ export async function addView(url){
|
||||
return restPost("/addView/" +url)
|
||||
}
|
||||
|
||||
export async function getFile(url){
|
||||
return restGet("/" + url)
|
||||
}
|
Reference in New Issue
Block a user