geonetwork-ui 2.11.0-dev.8442dae6e → 2.11.0-dev.96d0c6ce2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/geonetwork-ui.mjs +91 -5
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +10 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-associated-records/form-field-associated-records.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-associated-records/form-field-associated-records.component.html +33 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-associated-records/form-field-associated-records.component.ts +94 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +16 -12
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +6 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +6 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +5 -0
- package/translations/de.json +12 -0
- package/translations/en.json +12 -0
- package/translations/es.json +12 -0
- package/translations/fr.json +12 -0
- package/translations/it.json +12 -0
- package/translations/nl.json +12 -0
- package/translations/pt.json +12 -0
- package/translations/sk.json +12 -0
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
<div class="flex
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
<div class="flex flex-col gap-2">
|
|
2
|
+
<div class="flex gap-2">
|
|
3
|
+
@for (addOption of addOptions$ | async; track addOption) {
|
|
4
|
+
<gn-ui-button type="gray" (buttonClick)="onAdd(addOption.eventName)">
|
|
5
|
+
<ng-icon name="iconoirPlus" class="text-primary"></ng-icon> {{
|
|
6
|
+
addOption.buttonLabel
|
|
7
|
+
}}</gn-ui-button
|
|
8
|
+
>
|
|
9
|
+
}
|
|
10
|
+
</div>
|
|
11
|
+
@if (extents.length) {
|
|
12
|
+
<gn-ui-sortable-list
|
|
13
|
+
[items]="extents"
|
|
14
|
+
(itemsOrderChange)="onItemsOrderChange($event)"
|
|
15
|
+
[elementTemplate]="template"
|
|
16
|
+
></gn-ui-sortable-list>
|
|
8
17
|
}
|
|
9
18
|
</div>
|
|
10
|
-
<gn-ui-sortable-list
|
|
11
|
-
[items]="extents"
|
|
12
|
-
(itemsOrderChange)="onItemsOrderChange($event)"
|
|
13
|
-
[elementTemplate]="template"
|
|
14
|
-
></gn-ui-sortable-list>
|
|
15
19
|
<ng-template #template let-extent let-index="index">
|
|
16
20
|
@if (extent.end === undefined) {
|
|
17
21
|
<div class="border rounded-lg px-4 pb-4">
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html
CHANGED
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
[recordKind]="recordKind"
|
|
99
99
|
></gn-ui-form-field-update-frequency>
|
|
100
100
|
</ng-container>
|
|
101
|
+
<ng-container *ngSwitchCase="'associatedRecords'">
|
|
102
|
+
<gn-ui-form-field-associated-records
|
|
103
|
+
[value]="valueAsAssociatedRecords"
|
|
104
|
+
(valueChange)="valueChange.emit($event)"
|
|
105
|
+
></gn-ui-form-field-associated-records>
|
|
106
|
+
</ng-container>
|
|
101
107
|
<ng-container *ngSwitchCase="'temporalExtents'">
|
|
102
108
|
<gn-ui-form-field-temporal-extents
|
|
103
109
|
[value]="valueAsTemporalExtents"
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '@angular/core'
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
13
13
|
import {
|
|
14
|
+
AssociatedRecord,
|
|
14
15
|
CatalogRecordKeys,
|
|
15
16
|
Constraint,
|
|
16
17
|
DatasetTemporalExtent,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
FormFieldComponentName,
|
|
40
41
|
FormFieldConfig,
|
|
41
42
|
} from '../../../models'
|
|
43
|
+
import { FormFieldAssociatedRecordsComponent } from './form-field-associated-records/form-field-associated-records.component'
|
|
42
44
|
import { FormFieldContactsForResourceComponent } from './form-field-contacts-for-resource/form-field-contacts-for-resource.component'
|
|
43
45
|
import { FormFieldContactsComponent } from './form-field-contacts/form-field-contacts.component'
|
|
44
46
|
import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
|
|
@@ -70,6 +72,7 @@ import { FormFieldTopicsComponent } from './form-field-topics/form-field-topics.
|
|
|
70
72
|
FormFieldLicenseComponent,
|
|
71
73
|
FormFieldDateComponent,
|
|
72
74
|
FormFieldUpdateFrequencyComponent,
|
|
75
|
+
FormFieldAssociatedRecordsComponent,
|
|
73
76
|
FormFieldTemporalExtentsComponent,
|
|
74
77
|
FormFieldSimpleComponent,
|
|
75
78
|
FormFieldRichComponent,
|
|
@@ -140,6 +143,9 @@ export class FormFieldComponent {
|
|
|
140
143
|
get valueAsUpdateFrequency() {
|
|
141
144
|
return this.value as UpdateFrequency
|
|
142
145
|
}
|
|
146
|
+
get valueAsAssociatedRecords() {
|
|
147
|
+
return this.value as Array<AssociatedRecord>
|
|
148
|
+
}
|
|
143
149
|
get valueAsTemporalExtents() {
|
|
144
150
|
return this.value as Array<DatasetTemporalExtent>
|
|
145
151
|
}
|
package/translations/de.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "Beteiligter",
|
|
90
90
|
"domain.contact.role.unspecified": "Nicht angegeben",
|
|
91
91
|
"domain.contact.role.user": "Benutzer",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "",
|
|
93
|
+
"domain.record.associationType.crossReference": "",
|
|
94
|
+
"domain.record.associationType.dependency": "",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "",
|
|
98
|
+
"domain.record.associationType.revisionOf": "",
|
|
99
|
+
"domain.record.associationType.series": "",
|
|
100
|
+
"domain.record.associationType.stereoMate": "",
|
|
92
101
|
"domain.record.keywordType.other": "Stichworte",
|
|
93
102
|
"domain.record.keywordType.place": "Ort",
|
|
94
103
|
"domain.record.keywordType.temporal": "Zeitlich",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "Ansprechpartner - Organisation",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "Allgemeine Einschränkung",
|
|
214
223
|
"editor.record.form.field.overviews": "Übersicht",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "",
|
|
225
|
+
"editor.record.form.field.parentLink": "",
|
|
226
|
+
"editor.record.form.field.parentType": "",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "Datensatz zuletzt aktualisiert",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "Erstellungsdatum",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "Kennung",
|
package/translations/en.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "Stakeholder",
|
|
90
90
|
"domain.contact.role.unspecified": "Unspecified",
|
|
91
91
|
"domain.contact.role.user": "User",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "Collective Title",
|
|
93
|
+
"domain.record.associationType.crossReference": "Cross reference",
|
|
94
|
+
"domain.record.associationType.dependency": "Dependency",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "Is composed of",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "Larger work citation",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "Part of seamless database",
|
|
98
|
+
"domain.record.associationType.revisionOf": "Revision Of",
|
|
99
|
+
"domain.record.associationType.series": "Series",
|
|
100
|
+
"domain.record.associationType.stereoMate": "Stereo mate",
|
|
92
101
|
"domain.record.keywordType.other": "Keywords",
|
|
93
102
|
"domain.record.keywordType.place": "Place",
|
|
94
103
|
"domain.record.keywordType.temporal": "Temporal",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "Point of contact - Organization",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "Other constraint",
|
|
214
223
|
"editor.record.form.field.overviews": "Overview",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "Parent identifier",
|
|
225
|
+
"editor.record.form.field.parentLink": "This record has a parent link",
|
|
226
|
+
"editor.record.form.field.parentType": "Relationship type",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "Record updated",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "{recordKind, select, dataset{Dataset} service{Service} reuse{Reuse} other{Record}} created",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "Identifier",
|
package/translations/es.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "",
|
|
90
90
|
"domain.contact.role.unspecified": "",
|
|
91
91
|
"domain.contact.role.user": "",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "",
|
|
93
|
+
"domain.record.associationType.crossReference": "",
|
|
94
|
+
"domain.record.associationType.dependency": "",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "",
|
|
98
|
+
"domain.record.associationType.revisionOf": "",
|
|
99
|
+
"domain.record.associationType.series": "",
|
|
100
|
+
"domain.record.associationType.stereoMate": "",
|
|
92
101
|
"domain.record.keywordType.other": "",
|
|
93
102
|
"domain.record.keywordType.place": "",
|
|
94
103
|
"domain.record.keywordType.temporal": "",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "Punto de contacto - Organización",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "",
|
|
214
223
|
"editor.record.form.field.overviews": "",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "",
|
|
225
|
+
"editor.record.form.field.parentLink": "",
|
|
226
|
+
"editor.record.form.field.parentType": "",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "",
|
package/translations/fr.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "Partie prenante",
|
|
90
90
|
"domain.contact.role.unspecified": "Non spécifié",
|
|
91
91
|
"domain.contact.role.user": "Utilisateur",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "Titre commun",
|
|
93
|
+
"domain.record.associationType.crossReference": "Référence croisée",
|
|
94
|
+
"domain.record.associationType.dependency": "Dépendance",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "Est composé de",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "Référence mère",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "Partie d'une même base de données",
|
|
98
|
+
"domain.record.associationType.revisionOf": "Révision de",
|
|
99
|
+
"domain.record.associationType.series": "Séries",
|
|
100
|
+
"domain.record.associationType.stereoMate": "Stéréo restitution",
|
|
92
101
|
"domain.record.keywordType.other": "Mots-clés",
|
|
93
102
|
"domain.record.keywordType.place": "Localisation",
|
|
94
103
|
"domain.record.keywordType.temporal": "Temps",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "Point de contact - Organisation",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "Contrainte générale",
|
|
214
223
|
"editor.record.form.field.overviews": "Aperçu",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "Identifiant du parent",
|
|
225
|
+
"editor.record.form.field.parentLink": "Cette donnée possède un lien de parenté",
|
|
226
|
+
"editor.record.form.field.parentType": "Type de parenté",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "Date de mise à jour",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "Date de création",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "Identifiant",
|
package/translations/it.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "Parte interessata",
|
|
90
90
|
"domain.contact.role.unspecified": "Non specificato",
|
|
91
91
|
"domain.contact.role.user": "Utente",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "",
|
|
93
|
+
"domain.record.associationType.crossReference": "",
|
|
94
|
+
"domain.record.associationType.dependency": "",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "",
|
|
98
|
+
"domain.record.associationType.revisionOf": "",
|
|
99
|
+
"domain.record.associationType.series": "",
|
|
100
|
+
"domain.record.associationType.stereoMate": "",
|
|
92
101
|
"domain.record.keywordType.other": "Parole chiave",
|
|
93
102
|
"domain.record.keywordType.place": "Luogo",
|
|
94
103
|
"domain.record.keywordType.temporal": "Temporale",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "Vincolo generale",
|
|
214
223
|
"editor.record.form.field.overviews": "Panoramica",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "",
|
|
225
|
+
"editor.record.form.field.parentLink": "",
|
|
226
|
+
"editor.record.form.field.parentType": "",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "Data di aggiornamento",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "Data di creazione",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "Identificatore",
|
package/translations/nl.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "",
|
|
90
90
|
"domain.contact.role.unspecified": "",
|
|
91
91
|
"domain.contact.role.user": "",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "",
|
|
93
|
+
"domain.record.associationType.crossReference": "",
|
|
94
|
+
"domain.record.associationType.dependency": "",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "",
|
|
98
|
+
"domain.record.associationType.revisionOf": "",
|
|
99
|
+
"domain.record.associationType.series": "",
|
|
100
|
+
"domain.record.associationType.stereoMate": "",
|
|
92
101
|
"domain.record.keywordType.other": "",
|
|
93
102
|
"domain.record.keywordType.place": "",
|
|
94
103
|
"domain.record.keywordType.temporal": "",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "",
|
|
214
223
|
"editor.record.form.field.overviews": "",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "",
|
|
225
|
+
"editor.record.form.field.parentLink": "",
|
|
226
|
+
"editor.record.form.field.parentType": "",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "",
|
package/translations/pt.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "",
|
|
90
90
|
"domain.contact.role.unspecified": "",
|
|
91
91
|
"domain.contact.role.user": "",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "",
|
|
93
|
+
"domain.record.associationType.crossReference": "",
|
|
94
|
+
"domain.record.associationType.dependency": "",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "",
|
|
98
|
+
"domain.record.associationType.revisionOf": "",
|
|
99
|
+
"domain.record.associationType.series": "",
|
|
100
|
+
"domain.record.associationType.stereoMate": "",
|
|
92
101
|
"domain.record.keywordType.other": "",
|
|
93
102
|
"domain.record.keywordType.place": "",
|
|
94
103
|
"domain.record.keywordType.temporal": "",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "",
|
|
214
223
|
"editor.record.form.field.overviews": "",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "",
|
|
225
|
+
"editor.record.form.field.parentLink": "",
|
|
226
|
+
"editor.record.form.field.parentType": "",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "",
|
package/translations/sk.json
CHANGED
|
@@ -89,6 +89,15 @@
|
|
|
89
89
|
"domain.contact.role.stakeholder": "",
|
|
90
90
|
"domain.contact.role.unspecified": "",
|
|
91
91
|
"domain.contact.role.user": "",
|
|
92
|
+
"domain.record.associationType.collectiveTitle": "",
|
|
93
|
+
"domain.record.associationType.crossReference": "",
|
|
94
|
+
"domain.record.associationType.dependency": "",
|
|
95
|
+
"domain.record.associationType.isComposedOf": "",
|
|
96
|
+
"domain.record.associationType.largerWorkCitation": "",
|
|
97
|
+
"domain.record.associationType.partOfSeamlessDatabase": "",
|
|
98
|
+
"domain.record.associationType.revisionOf": "",
|
|
99
|
+
"domain.record.associationType.series": "",
|
|
100
|
+
"domain.record.associationType.stereoMate": "",
|
|
92
101
|
"domain.record.keywordType.other": "Kľúčové slová",
|
|
93
102
|
"domain.record.keywordType.place": "Miesto",
|
|
94
103
|
"domain.record.keywordType.temporal": "Časový",
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
"editor.record.form.field.organisation": "",
|
|
213
222
|
"editor.record.form.field.otherConstraints": "",
|
|
214
223
|
"editor.record.form.field.overviews": "",
|
|
224
|
+
"editor.record.form.field.parentIdentifier": "",
|
|
225
|
+
"editor.record.form.field.parentLink": "",
|
|
226
|
+
"editor.record.form.field.parentType": "",
|
|
215
227
|
"editor.record.form.field.recordUpdated": "",
|
|
216
228
|
"editor.record.form.field.resourceCreated": "",
|
|
217
229
|
"editor.record.form.field.resourceIdentifier": "",
|