final translation and documentation
This commit is contained in:
		| @ -1,8 +1,15 @@ | ||||
| <!---------------------------------------------------- | ||||
| 	File:  ResearchPostComponent.vue | ||||
| 	Author: Maxime Bartha | ||||
| 	Scope: Extension Publicatons scientifiquess | ||||
| 	Description: pop up for posting a research | ||||
| -----------------------------------------------------> | ||||
| <script setup> | ||||
|  | ||||
| import { ref } from "vue"; | ||||
| import {onClickOutside} from '@vueuse/core' | ||||
| import {uploadFile, postResearch, fetchAllResearchers} from "@/rest/ScientificPublications/ManageResearch.js"; | ||||
| import i18n from "../../i18n.js"; | ||||
| const allResearcher = ref(await fetchAllResearchers()) | ||||
|  | ||||
| const coAuthors = ref([]) | ||||
| @ -61,34 +68,34 @@ onClickOutside(target, ()=>emit('modal-close')) | ||||
|       <div class="modal-container" ref="target"> | ||||
|         <div ><ul> | ||||
|  | ||||
|           <li>Title : <input v-model="toPost.title"></li> | ||||
|           <li>Summary : <input v-model="toPost.summary"></li> | ||||
|           <li>Language : <input v-model="toPost.language"></li> | ||||
|           <li>Domain : <input v-model="toPost.domain"></li> | ||||
|           <li>PaperType :  <select  id="classed-select" v-model="toPost.paperType"> | ||||
|             <option value="Article">Article</option> | ||||
|             <option value="Book">Book</option> | ||||
|             <option value="BookChapter">Book Chapter</option> | ||||
|             <option value="Paper">Paper</option> | ||||
|           <li>{{i18n("Title")}} : <input v-model="toPost.title"></li> | ||||
|           <li>{{i18n("Summary")}} : <input v-model="toPost.summary"></li> | ||||
|           <li>{{i18n("Language")}} : <input v-model="toPost.language"></li> | ||||
|           <li>{{i18n("Domain")}} : <input v-model="toPost.domain"></li> | ||||
|           <li>{{i18n("PaperType")}} :  <select  id="classed-select" v-model="toPost.paperType"> | ||||
|             <option value="Article">{{i18n("PaperType.Article")}}</option> | ||||
|             <option value="Book">{{i18n("PaperType.Book")}}</option> | ||||
|             <option value="BookChapter">{{i18n("PaperType.Book.Chapter")}}</option> | ||||
|             <option value="Paper">{{i18n("PaperType.Paper")}}Paper</option> | ||||
|           </select></li> | ||||
|           <li>Access : <select  id="classed-select" v-model="toPost.access"> | ||||
|             <option value="OpenSource">OpenSource</option> | ||||
|             <option value="Restricted">Restricted</option> | ||||
|             <option value="Private">Private</option> | ||||
|           <li>{{i18n("Access")}} : <select  id="classed-select" v-model="toPost.access"> | ||||
|             <option value="OpenSource">{{i18n("Access.OpenSource")}}</option> | ||||
|             <option value="Restricted">{{i18n("Access.Restricted")}}</option> | ||||
|             <option value="Private">{{i18n("Access.Private")}}</option> | ||||
|           </select></li> | ||||
|  | ||||
|  | ||||
|           <li> Research Pdf : | ||||
|           <li> {{i18n("Research.Pdf")}} : | ||||
|             <form novalidate enctype="multipart/form-data" class="inputBox"> | ||||
|             <input type="file" @change="uploadResearchPdf($event.target.files);" accept="application/pdf"> | ||||
|           </form></li> | ||||
|           <li> Research BibTex : | ||||
|           <li> {{i18n("BibTex.Pdf")}} | ||||
|           <form novalidate enctype="multipart/form-data" class="inputBox"> | ||||
|             <input type="file" @change="uploadBibTex($event.target.files);" accept=".bib"> | ||||
|           </form></li> | ||||
|         </ul> | ||||
|         </div> | ||||
|         <div id="CoAuthorList"> Co-Authors List: | ||||
|         <div id="CoAuthorList"> {{i18n("CoAuthors.List")}} : | ||||
|         <ul style="list-style-type: none;" v-for="n in allResearcher"> | ||||
|           <li v-if="n.id !== props.researcher.id"> <input type="checkbox" :value=n v-model="coAuthors"> {{n.id}} : {{n.user.firstName}} {{n.user.lastName}}</li> | ||||
|         </ul> | ||||
| @ -96,14 +103,12 @@ onClickOutside(target, ()=>emit('modal-close')) | ||||
|       </div> | ||||
|         <div></div> | ||||
|         <div> | ||||
|           <button id="confirmButton" @click="postNewResearch">Confirm Publish</button> | ||||
|           <button id="cancelButton" @click="cancelPost">Cancel Publish</button> | ||||
|           <button id="confirmButton" @click="postNewResearch">{{i18n("Confirm.Publish")}}</button> | ||||
|           <button id="cancelButton" @click="cancelPost">{{i18n("Cancel.Publish")}}</button> | ||||
|         </div> | ||||
|       </div> | ||||
|  | ||||
|     </div> | ||||
|   </div> | ||||
|  | ||||
| </template> | ||||
|  | ||||
| <style scoped> | ||||
| @ -132,12 +137,6 @@ onClickOutside(target, ()=>emit('modal-close')) | ||||
|   margin-top: 9px; | ||||
| } | ||||
|  | ||||
| #coAuthorList{ | ||||
|   overflow: scroll; | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
| #downloads button { | ||||
|   align-self: center; | ||||
|   margin-left: 2px; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user