From 13062d1cbdc6823db791bcac6513be1d2e03c7d0 Mon Sep 17 00:00:00 2001 From: Baptiste Toulemonde <toulemonde@cines.fr> Date: Mon, 23 Aug 2021 11:18:41 +0200 Subject: [PATCH 1/2] fix: json dataset dcat. change admsIdentifier usage Note --- src/assets/dataset.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/dataset.json b/src/assets/dataset.json index 6e2a19289..ce2018555 100644 --- a/src/assets/dataset.json +++ b/src/assets/dataset.json @@ -77,7 +77,7 @@ { "name": "other identifier", "identifier": "adms:identifier", - "usageNote": "Optional property. This property contains the date of formal issuance (e.g., publication) of the Dataset." + "usageNote": "Optional property. This property refers to a secondary identifier of the Dataset, such as MAST/ADS[1], DataCite[2], DOI[3], EZID[4] or W3ID[5]." }, { "name": "release date datele", -- GitLab From 7a2dfbdee7011e1f8e07639c90ee59e28c340cf0 Mon Sep 17 00:00:00 2001 From: Baptiste Toulemonde <toulemonde@cines.fr> Date: Tue, 24 Aug 2021 10:48:04 +0200 Subject: [PATCH 2/2] fix: datetime format dct:issued and dct:modified --- src/app/mapping/mapping.component.html | 1 + src/app/mapping/mapping.component.scss | 26 +-------- src/app/mapping/mapping.component.ts | 11 ++++ src/styles.scss | 73 ++++++++++++++++++++++++++ 4 files changed, 86 insertions(+), 25 deletions(-) diff --git a/src/app/mapping/mapping.component.html b/src/app/mapping/mapping.component.html index dce44397c..2a4359bbc 100644 --- a/src/app/mapping/mapping.component.html +++ b/src/app/mapping/mapping.component.html @@ -63,6 +63,7 @@ </nb-autocomplete> </nb-form-field> </div> + </div> </nb-form-field> </ng-container> diff --git a/src/app/mapping/mapping.component.scss b/src/app/mapping/mapping.component.scss index 289b1adb3..1227abfb2 100644 --- a/src/app/mapping/mapping.component.scss +++ b/src/app/mapping/mapping.component.scss @@ -17,31 +17,7 @@ margin: 0 0.5rem; } - .col-5 { - width: 45%; - vertical-align: middle; - margin-right: 10px; - align-items: stretch; - } - .col-2 { - width: 10%; - vertical-align: middle; - margin-right: 10px; - align-items: stretch; - } - .col-4 { - width: 30%; - - margin-right: 10px; - align-items: stretch; - } - - .col-8 { - width: 70%; - - margin: 10 0.5rem; - align-items: stretch; - } + input { margin: 10px 10px; diff --git a/src/app/mapping/mapping.component.ts b/src/app/mapping/mapping.component.ts index b869d925c..0cc4c1ca3 100644 --- a/src/app/mapping/mapping.component.ts +++ b/src/app/mapping/mapping.component.ts @@ -110,6 +110,12 @@ export class MappingComponent implements OnInit { case 'dct:language': properties += key + ' <' + value + '>;\n'; break; + case 'dct:issued': + properties += key + ' "' + value + '"^^xsd:dateTime;\n'; + break; + case 'dct:modified': + properties += key + ' "' + value + '"^^xsd:dateTime;\n'; + break; default: properties += key + ' "' + value + '";\n'; break; @@ -118,6 +124,7 @@ export class MappingComponent implements OnInit { data = '\@prefix dcat: <http://www.w3.org/ns/dcat#>.\n\ @prefix dct: <http://purl.org/dc/terms/>.\n\ + @prefix adms: <http://www.w3.org/ns/adms#> .\n\ @prefix language: <http://id.loc.gov/vocabulary/iso639-1/>.\n\ @prefix s: <'+ this.FDP_URL + '/>.\n\ @prefix c: <'+ this.FDP_URL + '/catalog/>.\n\ @@ -347,6 +354,10 @@ export class MappingComponent implements OnInit { } reader.readAsText(jsonFile); } + + addField(index: number) { + + } // to delete a property of dcat dataset mapped deleteProperty(key: string) { this.mappedMetadatas[this.index].delete(key); diff --git a/src/styles.scss b/src/styles.scss index a931d951b..5efd1a01a 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -72,6 +72,79 @@ textarea { padding-left: .4em; } +.col-1 { + flex: 0 0 auto; + width: 8.33333333%; + margin-right: 10px; +} + +.col-2 { + flex: 0 0 auto; + width: 16.66666667%; + margin-right: 10px; +} + +.col-3 { + flex: 0 0 auto; + width: 25%; + margin-right: 10px; + +} + +.col-4 { + flex: 0 0 auto; + width: 33.33333333%; + margin-right: 10px; +} + +.col-5 { + flex: 0 0 auto; + width: 41.66666667%; + margin-right: 10px; +} + +.col-6 { + flex: 0 0 auto; + width: 50%; + margin-right: 10px; +} + +.col-7 { + flex: 0 0 auto; + width: 58.33333333%; + margin-right: 10px; +} + +.col-8 { + flex: 0 0 auto; + width: 66.66666667%; + margin-right: 10px; +} + +.col-9 { + flex: 0 0 auto; + width: 75%; + margin-right: 10px; +} + +.col-10 { + flex: 0 0 auto; + width: 83.33333333%; + margin-right: 10px; +} + +.col-11 { + flex: 0 0 auto; + width: 91.66666667%; + margin-right: 10px; +} + +.col-12 { + flex: 0 0 auto; + width: 100%; + margin-right: 10px; +} + /* everywhere else */ * { -- GitLab