-
+
- {{dataset.updatedMetadata.cardinalityOfRelatedSubjects ? dataset.updatedMetadata.cardinalityOfRelatedSubjects : dataset.originMetadata.cardinalityOfRelatedSubjects}}
+ {{ CardinalityOfRelatedSubjects.getLabel(dataset.updatedMetadata.cardinalityOfRelatedSubjects ? dataset.updatedMetadata.cardinalityOfRelatedSubjects : dataset.originMetadata.cardinalityOfRelatedSubjects)}}
- {{dataset.updatedMetadata.processedDatasetType? dataset.updatedMetadata.processedDatasetType : dataset.originMetadata.processedDatasetType}}
+ {{ ProcessedDatasetType.getLabel(dataset.updatedMetadata.processedDatasetType? dataset.updatedMetadata.processedDatasetType : dataset.originMetadata.processedDatasetType)}}[];
datasetTypes: Option[];
processedDatasetTypeOptions: Option[];
+ CardinalityOfRelatedSubjects = CardinalityOfRelatedSubjects;
+ ExploredEntity = ExploredEntity;
+ ProcessedDatasetType = ProcessedDatasetType;
+
constructor(
private studyService: StudyService,
diff --git a/shanoir-ng-front/src/app/datasets/dataset/dataset.component.ts b/shanoir-ng-front/src/app/datasets/dataset/dataset.component.ts
index cac8a6a5a7..74e8342877 100644
--- a/shanoir-ng-front/src/app/datasets/dataset/dataset.component.ts
+++ b/shanoir-ng-front/src/app/datasets/dataset/dataset.component.ts
@@ -2,12 +2,12 @@
* Shanoir NG - Import, manage and share neuroimaging data
* Copyright (C) 2009-2019 Inria - https://www.inria.fr/
* Contact us on https://project.inria.fr/shanoir/
- *
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.html
*/
@@ -128,7 +128,7 @@ export class DatasetComponent extends EntityComponent {
convertNiftiToggle() {
this.toggleMenu();
}
-
+
convertNifti(id: number) {
this.downloadState.status = TaskStatus.IN_PROGRESS;
this.datasetService.download(this.dataset, 'nii', id).then(() => this.downloadState.status = TaskStatus.IN_PROGRESS);
@@ -187,4 +187,8 @@ export class DatasetComponent extends EntityComponent {
seeDicomMetadata() {
this.router.navigate(['/dataset/details/dicom/' + this.dataset.id]);
}
-}
\ No newline at end of file
+
+ goToList(): void {
+ this.router.navigate(['/solr-search']);
+ }
+}