diff --git a/src/app/mapping/mapping.component.html b/src/app/mapping/mapping.component.html index dce44397cdb17e81c739b41529cd56199aa4ebb0..2a4359bbc27fbb7a443e31cb3a5a5fdff27b172a 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 289b1adb30bc1c8f8318a28430e4f59d1f7a397b..1227abfb2cd766e841e916aff1ec4e89d4e6fd38 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 b869d925c24b3f3f602e7aaadcd0c104d18fedff..0cc4c1ca3e4042aa15b945e0af4dbd68cfa33629 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/assets/dataset.json b/src/assets/dataset.json index 6e2a19289d2f2d2f9b165dcee01de9a503eef661..ce2018555e94b4324e1cf756762542ee302bd448 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", diff --git a/src/styles.scss b/src/styles.scss index a931d951bfd8e264ed758b75c1731e45013d27b4..5efd1a01aadf7dec8161b1ce3efc1bc5b1558f29 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 */ * {