added v-if to bibtex download
This commit is contained in:
		| @ -24,13 +24,14 @@ public class ResearchDTO { | |||||||
|     private Date releaseDate; |     private Date releaseDate; | ||||||
|     private PaperType paperType; |     private PaperType paperType; | ||||||
|     private String pdfLocation; |     private String pdfLocation; | ||||||
|  |     private String bibTexLocation; | ||||||
|     private String language; |     private String language; | ||||||
|     private Access access; |     private Access access; | ||||||
|     private String domain; |     private String domain; | ||||||
|     private String summary; |     private String summary; | ||||||
|     private long views; |     private long views; | ||||||
|  |  | ||||||
|     private ResearchDTO(String title, ResearcherDTO researcherDTO, Date releaseDate, PaperType paperType, String pdfLocation, String language, Access access, String domain, String summary, long id,long views) { |     private ResearchDTO(String title, ResearcherDTO researcherDTO, Date releaseDate, PaperType paperType, String pdfLocation, String language, Access access, String domain,String bibTexLocation, String summary, long id,long views) { | ||||||
|         this.title = title; |         this.title = title; | ||||||
|         this.researcher = researcherDTO; |         this.researcher = researcherDTO; | ||||||
|         this.releaseDate = releaseDate; |         this.releaseDate = releaseDate; | ||||||
| @ -41,6 +42,7 @@ public class ResearchDTO { | |||||||
|         this.domain = domain; |         this.domain = domain; | ||||||
|         this.summary = summary; |         this.summary = summary; | ||||||
|         this.id = id; |         this.id = id; | ||||||
|  |         this.bibTexLocation = bibTexLocation; | ||||||
|         this.views = views; |         this.views = views; | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @ -48,6 +50,6 @@ public class ResearchDTO { | |||||||
|     public static ResearchDTO construct(Research research){ |     public static ResearchDTO construct(Research research){ | ||||||
|         return new ResearchDTO(research.getTitle(), ResearcherDTO.construct(research.getAuthor()), research.getReleaseDate(), |         return new ResearchDTO(research.getTitle(), ResearcherDTO.construct(research.getAuthor()), research.getReleaseDate(), | ||||||
|                 research.getPaperType(),research.getPdfLocation(),research.getLanguage(),research.getAccess(), |                 research.getPaperType(),research.getPdfLocation(),research.getLanguage(),research.getAccess(), | ||||||
|                 research.getDomain(), research.getSummary(), research.getId(), research.getViews()); |                 research.getDomain(),research.getBibTexLocation(), research.getSummary(), research.getId(), research.getViews()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -91,10 +91,9 @@ function downloadCoAuthors(){ | |||||||
|           <li>Views : {{article.views}}</li> |           <li>Views : {{article.views}}</li> | ||||||
|           <li>Access : {{article.access}}</li> |           <li>Access : {{article.access}}</li> | ||||||
|         </ul> |         </ul> | ||||||
|           <button @click="console.log(props.article)"> infos</button> |           <div id="downloads" v-if="article.pdfLocation !== null && !manage"> | ||||||
|           <div id="downloads" v-if="article !== null && !manage"> |  | ||||||
|             <a :href=downloadPdf() @click.stop="articleClicked" target="_blank">See Research</a> |             <a :href=downloadPdf() @click.stop="articleClicked" target="_blank">See Research</a> | ||||||
|             <a :href=downloadBibTex() @click.stop="emit('modal-close')"  target="_blank">See bibTex</a> </div> |             <a v-if="article.bibTexLocation !== null" :href=downloadBibTex() @click.stop="emit('modal-close')"  target="_blank">See bibTex</a> </div> | ||||||
|         </div> |         </div> | ||||||
|         <div v-if="manage"> |         <div v-if="manage"> | ||||||
|           <div> |           <div> | ||||||
|  | |||||||
| @ -17,11 +17,10 @@ const statsBy = ref(""); | |||||||
| const isFilterOpened = ref(false); | const isFilterOpened = ref(false); | ||||||
| const isResearchOpened = ref(false); | const isResearchOpened = ref(false); | ||||||
| const articleToDisplay = ref(Object) | const articleToDisplay = ref(Object) | ||||||
| const filters = ref([]); | const filters = ref(); | ||||||
| let chart; | let chart; | ||||||
|  |  | ||||||
| const researcherId = window.location.href.split("=")[1] | const researcherId = window.location.href.split("=")[1] | ||||||
|  |  | ||||||
| const props = defineProps({ | const props = defineProps({ | ||||||
|   filters: ref([]), |   filters: ref([]), | ||||||
| }); | }); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user