1
0
forked from PGL/Clyde

Compare commits

..

No commits in common. "783cd8fa9f9ac25eda184f68e98fd4b90279a71b" and "b7a729c899e59a353e3a6241549ec2c02039b0f7" have entirely different histories.

8 changed files with 13 additions and 68 deletions

View File

@ -1,15 +1,7 @@
package ovh.herisson.Clyde.Tables.ScientificPublications;
/******************************************************
* @file Access.java
* @author Maxime Bartha
* @scope Extension Publications scientifiques
*
* Access Type for the Articles
*
******************************************************/
public enum Access {
OpenSource, // everyone can see
Restricted, // only Researchers and Staff Members (secretary, teachers and Inscription Service)
Private, // only authors and co-authors
OpenSource,
Restricted,
Private,
}

View File

@ -1,13 +1,5 @@
package ovh.herisson.Clyde.Tables.ScientificPublications;
/******************************************************
* @file Article.java
* @author Maxime Bartha
* @scope Extension Publications scientifiques
*
* Article entity
*
******************************************************/
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
@ -32,14 +24,15 @@ public class Article {
@ManyToOne(fetch = FetchType.EAGER)
@OnDelete(action = OnDeleteAction.CASCADE)
@JoinColumn(name ="Researcher")
private Researcher author;
@JoinColumn(name ="Users")
private User author;
//todo change user to Researcher
@CreationTimestamp
@Column(nullable = false)
private Date releaseDate;
private PaperType paperType;
private PublishType publishType;
private String pdfLocation;

View File

@ -1,13 +1,5 @@
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.JoinColumn;
import jakarta.persistence.ManyToOne;

View File

@ -1,14 +0,0 @@
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,
}

View File

@ -0,0 +1,6 @@
package ovh.herisson.Clyde.Tables.ScientificPublications;
public enum PublishType {
article,
slides,
}

View File

@ -1,13 +1,5 @@
package ovh.herisson.Clyde.Tables.ScientificPublications;
/******************************************************
* @file Researcher.java
* @author Maxime Bartha
* @scope Extension Publications scientifiques
*
* Researcher entity
*
******************************************************/
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@ -72,8 +72,5 @@ onClickOutside(target, ()=>emit('modal-close'))
border:2px solid black;
border-radius: 5px;
}
#downloads button:hover{
background: rgba(191, 64, 191);
}
</style>

View File

@ -82,7 +82,6 @@ onClickOutside(target, ()=>emit('modal-close'))
border-radius: 6px;
}
.vl {
border-left: 6px solid #8a2be2;
}
@ -90,16 +89,4 @@ onClickOutside(target, ()=>emit('modal-close'))
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>