Merge branch 'ui-redesign' of https://gitlab.eudat.eu/dmp/OpenAIRE-EUDAT-DMP-service-pilot into ui-redesign
This commit is contained in:
commit
7fd0692608
|
@ -1901,23 +1901,17 @@ public class DataManagementPlanManager {
|
||||||
if (!update) {
|
if (!update) {
|
||||||
if (unpublishedUrl == null) {
|
if (unpublishedUrl == null) {
|
||||||
// Second step, add the file to the entry.
|
// Second step, add the file to the entry.
|
||||||
HttpHeaders fileHeaders = new HttpHeaders();
|
|
||||||
fileHeaders.setContentType(MediaType.MULTIPART_FORM_DATA);
|
|
||||||
LinkedMultiValueMap<String, Object> addFileMap = new LinkedMultiValueMap<>();
|
|
||||||
|
|
||||||
FileEnvelope file = getWordDocument(id.toString(), principal, configLoader);
|
FileEnvelope file = getWordDocument(id.toString(), principal, configLoader);
|
||||||
String name = file.getFilename().substring(0, file.getFilename().length() - 5);
|
String name = file.getFilename().substring(0, file.getFilename().length() - 5);
|
||||||
File pdfFile = datasetManager.convertToPDF(file, environment);
|
File pdfFile = datasetManager.convertToPDF(file, environment);
|
||||||
addFileMap.add("filename", name + ".pdf");
|
String fileName = name + ".pdf";
|
||||||
FileSystemResource fileSystemResource = new FileSystemResource(pdfFile);
|
FileSystemResource fileSystemResource = new FileSystemResource(pdfFile);
|
||||||
addFileMap.add("file", fileSystemResource);
|
HttpEntity<FileSystemResource> addFileMapRequest = new HttpEntity<>(fileSystemResource, null);
|
||||||
HttpEntity<MultiValueMap<String, Object>> addFileMapRequest = new HttpEntity<>(addFileMap, fileHeaders);
|
|
||||||
|
|
||||||
String addFileUrl = links.get("files") + "?access_token=" + zenodoToken;
|
String addFileUrl = links.get("bucket") + "/" + fileName + "?access_token=" + zenodoToken;
|
||||||
ResponseEntity<String> addFileResponse = restTemplate.postForEntity(addFileUrl, addFileMapRequest, String.class);
|
restTemplate.put(addFileUrl, addFileMapRequest);
|
||||||
Files.deleteIfExists(file.getFile().toPath());
|
Files.deleteIfExists(file.getFile().toPath());
|
||||||
|
|
||||||
|
|
||||||
// Third post call to Zenodo to publish the entry and return the DOI.
|
// Third post call to Zenodo to publish the entry and return the DOI.
|
||||||
publishUrl = links.get("publish") + "?access_token=" + zenodoToken;
|
publishUrl = links.get("publish") + "?access_token=" + zenodoToken;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
</p>
|
</p>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<button type="button" class="col-auto align-self-center normal-btn" (click)="openNewDmpDialog()">{{'DASHBOARD.START-YOUR-FIRST-DMP' | translate}}</button>
|
<button type="button" class="col-auto align-self-center normal-btn" (click)="openNewDmpDialog()">{{'DASHBOARD.START-YOUR-FIRST-DMP' | translate}}</button>
|
||||||
<img class="col-auto ml-auto" src="../../../assets/splash/assets/img/laptop.png" width="116" height="139">
|
<img class="col-auto ml-auto laptop-img" src="../../../assets/splash/assets/img/laptop.png" width="116" height="139">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col pt-4 mt-3 pl-4">
|
<div class="col pt-4 mt-3 pl-4">
|
||||||
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
||||||
<div class="counter-zero">0</div>
|
<div class="counter-zero">0</div>
|
||||||
<a href="#" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
||||||
<div class="counter-zero">0</div>
|
<div class="counter-zero">0</div>
|
||||||
<a href="#" class="link">{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}}</a>
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}}</a>
|
||||||
<div class="counter-zero">0</div>
|
<div class="counter-zero">0</div>
|
||||||
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
||||||
<div class="counter-zero">0</div>
|
<div class="counter-zero">0</div>
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<div *ngIf="!hasDmps()" class="ml-auto pl-4 personal-usage-block">
|
<div *ngIf="!hasDmps()" class="ml-auto pl-4 personal-usage-block">
|
||||||
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
<div class="personal-usage">{{'DASHBOARD.PUBLIC-USAGE' | translate}}</div>
|
||||||
<div class="counter-zero">0</div>
|
<div class="counter-zero">0</div>
|
||||||
<a>{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
<a>{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
||||||
<div class="counter-zero">0</div>
|
<div class="counter-zero">0</div>
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
<a class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
<a class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="hasDmps()" class="ml-auto stats">
|
<div *ngIf="hasDmps()" class="ml-auto stats">
|
||||||
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
<div class="personal-usage">{{'DASHBOARD.PUBLIC-USAGE' | translate}}</div>
|
||||||
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
||||||
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
||||||
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
||||||
|
|
|
@ -368,6 +368,11 @@ input[type="text"] {
|
||||||
padding: 1rem 2rem;
|
padding: 1rem 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.laptop-img {
|
||||||
|
position: relative;
|
||||||
|
top: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
::ng-deep .mat-tab-group.mat-primary .mat-ink-bar,
|
::ng-deep .mat-tab-group.mat-primary .mat-ink-bar,
|
||||||
.mat-tab-nav-bar.mat-primary .mat-ink-bar {
|
.mat-tab-nav-bar.mat-primary .mat-ink-bar {
|
||||||
background: #129d99;
|
background: #129d99;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<mat-option [value]="order.MODIFIED">{{enumUtils.toRecentActivityOrderString(order.MODIFIED)}}</mat-option>
|
<mat-option [value]="order.MODIFIED">{{enumUtils.toRecentActivityOrderString(order.MODIFIED)}}</mat-option>
|
||||||
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
||||||
<!-- <mat-option [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option> -->
|
<!-- <mat-option [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option> -->
|
||||||
<mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option>
|
<!-- <mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option> -->
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- End of Sort by -->
|
<!-- End of Sort by -->
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<mat-option *ngIf="publicMode" [value]="order.PUBLISHED">{{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}}</mat-option>
|
<mat-option *ngIf="publicMode" [value]="order.PUBLISHED">{{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}}</mat-option>
|
||||||
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
||||||
<mat-option *ngIf="!publicMode" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
<mat-option *ngIf="!publicMode" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
||||||
<mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option>
|
<!-- <mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option> -->
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- End of Sort by -->
|
<!-- End of Sort by -->
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<mat-option *ngIf="publicMode" [value]="order.DATASETPUBLISHED">{{enumUtils.toRecentActivityOrderString(order.DATASETPUBLISHED)}}</mat-option>
|
<mat-option *ngIf="publicMode" [value]="order.DATASETPUBLISHED">{{enumUtils.toRecentActivityOrderString(order.DATASETPUBLISHED)}}</mat-option>
|
||||||
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
||||||
<mat-option *ngIf="!publicMode" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
<mat-option *ngIf="!publicMode" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
||||||
<mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option>
|
<!-- <mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option> -->
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- End of Sort by -->
|
<!-- End of Sort by -->
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<mat-option *ngIf="publicMode" [value]="order.PUBLISHED">{{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}}</mat-option>
|
<mat-option *ngIf="publicMode" [value]="order.PUBLISHED">{{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}}</mat-option>
|
||||||
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
||||||
<mat-option *ngIf="!publicMode" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
<mat-option *ngIf="!publicMode" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
||||||
<mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option>
|
<!-- <mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option> -->
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- End of Sort by -->
|
<!-- End of Sort by -->
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<mat-option *ngIf="isPublic" [value]="order.DATASETPUBLISHED">{{enumUtils.toRecentActivityOrderString(order.DATASETPUBLISHED)}}</mat-option>
|
<mat-option *ngIf="isPublic" [value]="order.DATASETPUBLISHED">{{enumUtils.toRecentActivityOrderString(order.DATASETPUBLISHED)}}</mat-option>
|
||||||
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
||||||
<mat-option *ngIf="!isPublic" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
<mat-option *ngIf="!isPublic" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
||||||
<mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option>
|
<!-- <mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option> -->
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- End of Sort by -->
|
<!-- End of Sort by -->
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<mat-option *ngIf="isPublic" [value]="order.PUBLISHED">{{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}}</mat-option>
|
<mat-option *ngIf="isPublic" [value]="order.PUBLISHED">{{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}}</mat-option>
|
||||||
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
<mat-option [value]="order.LABEL">{{enumUtils.toRecentActivityOrderString(order.LABEL)}}</mat-option>
|
||||||
<mat-option *ngIf="!isPublic" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
<mat-option *ngIf="!isPublic" [value]="order.STATUS">{{enumUtils.toRecentActivityOrderString(order.STATUS)}}</mat-option>
|
||||||
<mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option>
|
<!-- <mat-option [value]="order.CREATED">{{enumUtils.toRecentActivityOrderString(order.CREATED)}}</mat-option> -->
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- End of Sort by -->
|
<!-- End of Sort by -->
|
||||||
|
|
|
@ -43,7 +43,7 @@ export class StartNewDmpDialogComponent extends BaseComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
startWizard() {
|
startWizard() {
|
||||||
this.router.navigate(['/quick-wizard']);
|
this.router.navigate(['/plans/new']);
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1090,7 +1090,9 @@
|
||||||
"MY-DATASETS": "Meine Datensatzbeschreibungen",
|
"MY-DATASETS": "Meine Datensatzbeschreibungen",
|
||||||
"DATASETS": "Datensatzbeschreibungen",
|
"DATASETS": "Datensatzbeschreibungen",
|
||||||
"SEARCH": "SUCHE...",
|
"SEARCH": "SUCHE...",
|
||||||
"DATA-MANAGEMENT-PLANS": "DATENMANAGEMENTPLÄNE"
|
"DATA-MANAGEMENT-PLANS": "DATENMANAGEMENTPLÄNE",
|
||||||
|
"PERSONAL-USAGE": "Personal Usage",
|
||||||
|
"PUBLIC-USAGE": "Public Usage"
|
||||||
},
|
},
|
||||||
"USER-DIALOG": {
|
"USER-DIALOG": {
|
||||||
"USER-PROFILE": "Mein Profil",
|
"USER-PROFILE": "Mein Profil",
|
||||||
|
|
|
@ -1269,6 +1269,7 @@
|
||||||
"SEARCH": "SEARCH...",
|
"SEARCH": "SEARCH...",
|
||||||
"DATA-MANAGEMENT-PLANS": "DATA MANAGEMENT PLANS",
|
"DATA-MANAGEMENT-PLANS": "DATA MANAGEMENT PLANS",
|
||||||
"PERSONAL-USAGE": "Personal Usage",
|
"PERSONAL-USAGE": "Personal Usage",
|
||||||
|
"PUBLIC-USAGE": "Public Usage",
|
||||||
"DATASET-DESCRIPTIONS": "Dataset Descriptions",
|
"DATASET-DESCRIPTIONS": "Dataset Descriptions",
|
||||||
"PUBLIC-DMPS": "Public DMPs",
|
"PUBLIC-DMPS": "Public DMPs",
|
||||||
"PUBLIC-DATASETS": "Public Dataset Descriptions",
|
"PUBLIC-DATASETS": "Public Dataset Descriptions",
|
||||||
|
|
|
@ -1259,6 +1259,7 @@
|
||||||
"SEARCH": "BUSCAR...",
|
"SEARCH": "BUSCAR...",
|
||||||
"DATA-MANAGEMENT-PLANS": "PLANES DE GESTIÓN DE DATOS",
|
"DATA-MANAGEMENT-PLANS": "PLANES DE GESTIÓN DE DATOS",
|
||||||
"PERSONAL-USAGE": "Uso personal",
|
"PERSONAL-USAGE": "Uso personal",
|
||||||
|
"PUBLIC-USAGE": "Public Usage",
|
||||||
"DATASET-DESCRIPTIONS": "Descripciones de los datasets",
|
"DATASET-DESCRIPTIONS": "Descripciones de los datasets",
|
||||||
"RELATED-ORGANISATIONS": "Organizaciones relacionadas",
|
"RELATED-ORGANISATIONS": "Organizaciones relacionadas",
|
||||||
"PUBLIC-DMPS": "Public DMPs",
|
"PUBLIC-DMPS": "Public DMPs",
|
||||||
|
|
|
@ -1250,6 +1250,7 @@
|
||||||
"SEARCH": "ΑΝΑΖΗΤΗΣΗ...",
|
"SEARCH": "ΑΝΑΖΗΤΗΣΗ...",
|
||||||
"DATA-MANAGEMENT-PLANS": "ΣΧΕΔΙΑ ΔΙΑΧΕΙΡΙΣΗΣ ΔΕΔΟΜΕΝΩΝ",
|
"DATA-MANAGEMENT-PLANS": "ΣΧΕΔΙΑ ΔΙΑΧΕΙΡΙΣΗΣ ΔΕΔΟΜΕΝΩΝ",
|
||||||
"PERSONAL-USAGE": "Προσωπική Χρήση",
|
"PERSONAL-USAGE": "Προσωπική Χρήση",
|
||||||
|
"PUBLIC-USAGE": "Public Usage",
|
||||||
"DATASET-DESCRIPTIONS": "Περιγραφές Dataset",
|
"DATASET-DESCRIPTIONS": "Περιγραφές Dataset",
|
||||||
"PUBLIC-DMPS": "Public DMPs",
|
"PUBLIC-DMPS": "Public DMPs",
|
||||||
"PUBLIC-DATASETS": "Public Dataset Descriptions",
|
"PUBLIC-DATASETS": "Public Dataset Descriptions",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue