Compare commits
	
		
			2 Commits
		
	
	
		
			b7a729c899
			...
			783cd8fa9f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 783cd8fa9f | |||
| 40186f9898 | 
@ -1,7 +1,15 @@
 | 
				
			|||||||
package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
					package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/******************************************************
 | 
				
			||||||
 | 
					 * @file Access.java
 | 
				
			||||||
 | 
					 * @author Maxime Bartha
 | 
				
			||||||
 | 
					 * @scope Extension Publications scientifiques
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Access Type for the Articles
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 ******************************************************/
 | 
				
			||||||
public enum Access {
 | 
					public enum Access {
 | 
				
			||||||
    OpenSource,
 | 
					    OpenSource, // everyone can see
 | 
				
			||||||
    Restricted,
 | 
					    Restricted, // only Researchers and Staff Members (secretary, teachers and Inscription Service)
 | 
				
			||||||
    Private,
 | 
					    Private, // only authors and co-authors
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,13 @@
 | 
				
			|||||||
package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
					package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/******************************************************
 | 
				
			||||||
 | 
					 * @file Article.java
 | 
				
			||||||
 | 
					 * @author Maxime Bartha
 | 
				
			||||||
 | 
					 * @scope Extension Publications scientifiques
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Article entity
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 ******************************************************/
 | 
				
			||||||
import jakarta.persistence.*;
 | 
					import jakarta.persistence.*;
 | 
				
			||||||
import lombok.AllArgsConstructor;
 | 
					import lombok.AllArgsConstructor;
 | 
				
			||||||
import lombok.Getter;
 | 
					import lombok.Getter;
 | 
				
			||||||
@ -24,15 +32,14 @@ public class Article {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @ManyToOne(fetch = FetchType.EAGER)
 | 
					    @ManyToOne(fetch = FetchType.EAGER)
 | 
				
			||||||
    @OnDelete(action = OnDeleteAction.CASCADE)
 | 
					    @OnDelete(action = OnDeleteAction.CASCADE)
 | 
				
			||||||
    @JoinColumn(name ="Users")
 | 
					    @JoinColumn(name ="Researcher")
 | 
				
			||||||
    private User author;
 | 
					    private Researcher author;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //todo change user to Researcher
 | 
					 | 
				
			||||||
    @CreationTimestamp
 | 
					    @CreationTimestamp
 | 
				
			||||||
    @Column(nullable = false)
 | 
					    @Column(nullable = false)
 | 
				
			||||||
    private Date releaseDate;
 | 
					    private Date releaseDate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private PublishType publishType;
 | 
					    private PaperType paperType;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private String pdfLocation;
 | 
					    private String pdfLocation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,13 @@
 | 
				
			|||||||
package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
					package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/******************************************************
 | 
				
			||||||
 | 
					 * @file ArticleCoAuthors
 | 
				
			||||||
 | 
					 * @author Maxime Bartha
 | 
				
			||||||
 | 
					 * @scope Extension Publications scientifiques
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Co-Authors List entity (will be accessed by Articles)
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 ******************************************************/
 | 
				
			||||||
import jakarta.persistence.FetchType;
 | 
					import jakarta.persistence.FetchType;
 | 
				
			||||||
import jakarta.persistence.JoinColumn;
 | 
					import jakarta.persistence.JoinColumn;
 | 
				
			||||||
import jakarta.persistence.ManyToOne;
 | 
					import jakarta.persistence.ManyToOne;
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/******************************************************
 | 
				
			||||||
 | 
					 * @file PaperType.java
 | 
				
			||||||
 | 
					 * @author Maxime Bartha
 | 
				
			||||||
 | 
					 * @scope Extension Publications scientifiques
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Type of the scientific paper
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 ******************************************************/
 | 
				
			||||||
 | 
					public enum PaperType {
 | 
				
			||||||
 | 
					    article,
 | 
				
			||||||
 | 
					    slides,
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -1,6 +0,0 @@
 | 
				
			|||||||
package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
public enum PublishType {
 | 
					 | 
				
			||||||
    article,
 | 
					 | 
				
			||||||
    slides,
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,5 +1,13 @@
 | 
				
			|||||||
package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
					package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/******************************************************
 | 
				
			||||||
 | 
					 * @file Researcher.java
 | 
				
			||||||
 | 
					 * @author Maxime Bartha
 | 
				
			||||||
 | 
					 * @scope Extension Publications scientifiques
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Researcher entity
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 ******************************************************/
 | 
				
			||||||
import jakarta.persistence.*;
 | 
					import jakarta.persistence.*;
 | 
				
			||||||
import lombok.AllArgsConstructor;
 | 
					import lombok.AllArgsConstructor;
 | 
				
			||||||
import lombok.Getter;
 | 
					import lombok.Getter;
 | 
				
			||||||
 | 
				
			|||||||
@ -72,5 +72,8 @@ onClickOutside(target, ()=>emit('modal-close'))
 | 
				
			|||||||
  border:2px solid black;
 | 
					  border:2px solid black;
 | 
				
			||||||
  border-radius: 5px;
 | 
					  border-radius: 5px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#downloads button:hover{
 | 
				
			||||||
 | 
					  background: rgba(191, 64, 191);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
				
			|||||||
@ -82,6 +82,7 @@ onClickOutside(target, ()=>emit('modal-close'))
 | 
				
			|||||||
  border-radius: 6px;
 | 
					  border-radius: 6px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.vl {
 | 
					.vl {
 | 
				
			||||||
  border-left: 6px solid #8a2be2;
 | 
					  border-left: 6px solid #8a2be2;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -89,4 +90,16 @@ onClickOutside(target, ()=>emit('modal-close'))
 | 
				
			|||||||
  text-align: end;
 | 
					  text-align: end;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#submit button {
 | 
				
			||||||
 | 
					  margin-left: 2px;
 | 
				
			||||||
 | 
					  font-size: large;
 | 
				
			||||||
 | 
					  color: white;
 | 
				
			||||||
 | 
					  background: rgba(191, 64, 191,0.5);
 | 
				
			||||||
 | 
					  border:2px solid black;
 | 
				
			||||||
 | 
					  border-radius: 5px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#submit button:hover{
 | 
				
			||||||
 | 
					  background: rgba(191, 64, 191);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user