geonetwork-ui 2.5.0-dev.b87edcffd → 2.5.0-dev.c2edb114e
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/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +4 -8
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -12
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -1
- package/fesm2022/geonetwork-ui.mjs +15 -23
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +1 -1
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +3 -11
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +90 -0
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +10 -11
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gn4-repository.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/repository/src/lib/gn4/gn4-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAGX,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAGL,YAAY,EAGb,MAAM,mDAAmD,CAAA;AAE1D,OAAO,EACL,aAAa,EACb,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;AAClE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,2DAA2D,CAAA;AAClE,OAAO,EACL,YAAY,EACZ,aAAa,EACd,MAAM,wEAAwE,CAAA;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;AAClH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAKL,UAAU,EAEV,OAAO,EAGR,MAAM,MAAM,CAAA;AAGb,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;;AAMtD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAEhC,qBACa,aAAc,YAAW,0BAA0B;IAK5D,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,eAAe;IATzB,cAAc,gBAAsB;IACpC,cAAc,mBAAqC;gBAGzC,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,gBAAgB,EAC9B,eAAe,EAAE,oBAAoB,EACrC,SAAS,EAAE,YAAY,EACvB,aAAa,EAAE,iBAAiB,EAChC,eAAe,EAAE,w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
|
+
{"version":3,"file":"gn4-repository.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/repository/src/lib/gn4/gn4-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAGX,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAGL,YAAY,EAGb,MAAM,mDAAmD,CAAA;AAE1D,OAAO,EACL,aAAa,EACb,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;AAClE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,2DAA2D,CAAA;AAClE,OAAO,EACL,YAAY,EACZ,aAAa,EACd,MAAM,wEAAwE,CAAA;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;AAClH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAKL,UAAU,EAEV,OAAO,EAGR,MAAM,MAAM,CAAA;AAGb,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;;AAMtD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAEhC,qBACa,aAAc,YAAW,0BAA0B;IAK5D,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,eAAe;IATzB,cAAc,gBAAsB;IACpC,cAAc,mBAAqC;gBAGzC,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,gBAAgB,EAC9B,eAAe,EAAE,oBAAoB,EACrC,SAAS,EAAE,YAAY,EACvB,aAAa,EAAE,iBAAiB,EAChC,eAAe,EAAE,wBAAwB;IAGnD,MAAM,CAAC,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,cAAc,GACf,EAAE,YAAY,GAAG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AAa,EACrB,qBAAqB,CAAC,EAAE,MAAM,GAC7B,UAAU,CAAC,MAAM,CAAC;IASrB,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI;IAKhD,cAAc,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO;IAKjD,YAAY,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;IAe3C,cAAc,IAAI,UAAU,CAAC,MAAM,CAAC;IASpC,0BAA0B,CAAC,WAAW,EAAE,aAAa;;;;IAsCrD,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,sBAAsB;IAsB9B,OAAO,CAAC,2BAA2B;IAInC,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,yBAAyB;IAMjC,OAAO,CAAC,4BAA4B;yCA3dzB,aAAa;6CAAb,aAAa;CA8dzB"}
|
|
@@ -10,4 +10,5 @@ export * from './lib/components/record-form/record-form.component';
|
|
|
10
10
|
export * from './lib/components/wizard/wizard.component';
|
|
11
11
|
export * from './lib/components/wizard-field/wizard-field.component';
|
|
12
12
|
export * from './lib/components/wizard-summarize/wizard-summarize.component';
|
|
13
|
+
export * from './lib/components/record-form/form-field';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/feature/editor/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wDAAwD,CAAA;AACtE,cAAc,oDAAoD,CAAA;AAClE,cAAc,0CAA0C,CAAA;AACxD,cAAc,sDAAsD,CAAA;AACpE,cAAc,8DAA8D,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/feature/editor/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wDAAwD,CAAA;AACtE,cAAc,oDAAoD,CAAA;AAClE,cAAc,0CAA0C,CAAA;AACxD,cAAc,sDAAsD,CAAA;AACpE,cAAc,8DAA8D,CAAA;AAC5E,cAAc,yCAAyC,CAAA"}
|
|
@@ -10,6 +10,7 @@ export declare class FormFieldContactsForResourceComponent implements OnChanges,
|
|
|
10
10
|
value: Individual[];
|
|
11
11
|
valueChange: EventEmitter<Individual[]>;
|
|
12
12
|
contactsForRessourceByRole: Map<Role, Individual[]>;
|
|
13
|
+
roleValues: string[];
|
|
13
14
|
rolesToPick: Role[];
|
|
14
15
|
roleSectionsToDisplay: Role[];
|
|
15
16
|
allOrganizations: Map<string, Organization>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-contacts-for-resource.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,UAAU,EACV,YAAY,EACZ,IAAI,EAEL,MAAM,oEAAoE,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,kEAAkE,CAAA;AAC5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,uFAAuF,CAAA;AACrI,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;;
|
|
1
|
+
{"version":3,"file":"form-field-contacts-for-resource.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,UAAU,EACV,YAAY,EACZ,IAAI,EAEL,MAAM,oEAAoE,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,kEAAkE,CAAA;AAC5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,uFAAuF,CAAA;AACrI,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;;AA0B3H,qBAwBa,qCACX,YAAW,SAAS,EAAE,MAAM;IAiB1B,OAAO,CAAC,wBAAwB;IAChC,OAAO,CAAC,6BAA6B;IAhB9B,KAAK,EAAE,UAAU,EAAE,CAAA;IAClB,WAAW,EAAE,YAAY,CAAC,UAAU,EAAE,CAAC,CAAqB;IAEtE,0BAA0B,EAAE,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAY;IAC/D,UAAU,WAAa;IAEvB,WAAW,EAAE,IAAI,EAAE,CAElB;IAED,qBAAqB,EAAE,IAAI,EAAE,CAAK;IAElC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAY;gBAG7C,wBAAwB,EAAE,wBAAwB,EAClD,6BAA6B,EAAE,6BAA6B;IAGtE,WAAW;IAML,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAW/B,gBAAgB,CAAC,SAAS,EAAE,MAAM;IAKlC,iBAAiB;IAMjB,0BAA0B;IAsB1B,2BAA2B,CAAC,mBAAmB,EAAE,UAAU,EAAE;IAY7D,aAAa,CAAC,KAAK,EAAE,MAAM;IAK3B,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI;IAYlD,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI3C;;OAEG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,CAKlC;IAER;;OAEG;IACH,kBAAkB,UAAW,MAAM,4CAUlC;IAED;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM;yCArI9B,qCAAqC;2CAArC,qCAAqC;CAwJjD"}
|
|
@@ -9,4 +9,5 @@ export * from './form-field-object/form-field-object.component';
|
|
|
9
9
|
export * from './form-field-array/form-field-array.component';
|
|
10
10
|
export * from './form-field-spatial-extent/form-field-spatial-extent.component';
|
|
11
11
|
export * from './form-field.component';
|
|
12
|
+
export * from './form-field-constraints-shortcuts/constraints.utils';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qEAAqE,CAAA;AACnF,cAAc,iDAAiD,CAAA;AAC/D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iEAAiE,CAAA;AAC/E,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qEAAqE,CAAA;AACnF,cAAc,iDAAiD,CAAA;AAC/D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iEAAiE,CAAA;AAC/E,cAAc,wBAAwB,CAAA;AACtC,cAAc,sDAAsD,CAAA"}
|
package/package.json
CHANGED
|
@@ -352,21 +352,13 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
352
352
|
exhaustMap(async (fetchedRecordAsXml: string) => {
|
|
353
353
|
const converter = findConverterForDocument(fetchedRecordAsXml)
|
|
354
354
|
const record = await converter.readRecord(fetchedRecordAsXml)
|
|
355
|
-
const tempId = this.generateTemporaryId()
|
|
356
355
|
|
|
357
356
|
record.title = `${record.title} (Copy)`
|
|
358
|
-
record
|
|
357
|
+
await converter.writeRecord(record, fetchedRecordAsXml)
|
|
359
358
|
|
|
360
|
-
|
|
361
|
-
record,
|
|
362
|
-
fetchedRecordAsXml
|
|
363
|
-
)
|
|
364
|
-
|
|
365
|
-
this.saveRecordToLocalStorage(recordAsXml, record.uniqueIdentifier)
|
|
366
|
-
this._draftsChanged.next()
|
|
367
|
-
|
|
368
|
-
return tempId
|
|
359
|
+
return this.saveRecord(record, '', false)
|
|
369
360
|
}),
|
|
361
|
+
exhaustMap((uuidObservable: Observable<string>) => uuidObservable),
|
|
370
362
|
catchError((error: HttpErrorResponse) => {
|
|
371
363
|
return throwError(() => error)
|
|
372
364
|
})
|
|
@@ -705,6 +705,96 @@ export const duplicateDatasetRecordAsXmlFixture =
|
|
|
705
705
|
</mdb:resourceLineage>
|
|
706
706
|
</mdb:MD_Metadata>`
|
|
707
707
|
|
|
708
|
+
export const importDatasetRecordAsXmlFixture = (): string => `
|
|
709
|
+
<gmd:MD_Metadata
|
|
710
|
+
xmlns:gmd="http://www.isotc211.org/2005/gmd"
|
|
711
|
+
xmlns:gco="http://www.isotc211.org/2005/gco"
|
|
712
|
+
xmlns:srv="http://www.isotc211.org/2005/srv"
|
|
713
|
+
xmlns:gmx="http://www.isotc211.org/2005/gmx"
|
|
714
|
+
xmlns:gts="http://www.isotc211.org/2005/gts"
|
|
715
|
+
xmlns:gsr="http://www.isotc211.org/2005/gsr"
|
|
716
|
+
xmlns:gmi="http://www.isotc211.org/2005/gmi"
|
|
717
|
+
xmlns:gml="http://www.opengis.net/gml/3.2"
|
|
718
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
719
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd">
|
|
720
|
+
<gmd:language>
|
|
721
|
+
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"/>
|
|
722
|
+
</gmd:language>
|
|
723
|
+
<gmd:characterSet>
|
|
724
|
+
<gmd:MD_CharacterSetCode codeListValue="utf8" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_CharacterSetCode"/>
|
|
725
|
+
</gmd:characterSet>
|
|
726
|
+
<gmd:contact>
|
|
727
|
+
<gmd:CI_ResponsibleParty>
|
|
728
|
+
<gmd:individualName gco:nilReason="missing">
|
|
729
|
+
<gco:CharacterString/>
|
|
730
|
+
</gmd:individualName>
|
|
731
|
+
<gmd:organisationName gco:nilReason="missing">
|
|
732
|
+
<gco:CharacterString/>
|
|
733
|
+
</gmd:organisationName>
|
|
734
|
+
<gmd:positionName gco:nilReason="missing">
|
|
735
|
+
<gco:CharacterString/>
|
|
736
|
+
</gmd:positionName>
|
|
737
|
+
<gmd:role>
|
|
738
|
+
<gmd:CI_RoleCode codeListValue="pointOfContact" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"/>
|
|
739
|
+
</gmd:role>
|
|
740
|
+
</gmd:CI_ResponsibleParty>
|
|
741
|
+
</gmd:contact>
|
|
742
|
+
<gmd:dateStamp>
|
|
743
|
+
<gco:DateTime>2024-05-31T10:18:45.429Z</gco:DateTime>
|
|
744
|
+
</gmd:dateStamp>
|
|
745
|
+
<gmd:metadataStandardName>
|
|
746
|
+
<gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>
|
|
747
|
+
</gmd:metadataStandardName>
|
|
748
|
+
<gmd:metadataStandardVersion>
|
|
749
|
+
<gco:CharacterString>1.0</gco:CharacterString>
|
|
750
|
+
</gmd:metadataStandardVersion>
|
|
751
|
+
<gmd:identificationInfo>
|
|
752
|
+
<gmd:MD_DataIdentification>
|
|
753
|
+
<gmd:citation>
|
|
754
|
+
<gmd:CI_Citation>
|
|
755
|
+
<gmd:title>
|
|
756
|
+
<gco:CharacterString>Record with no link</gco:CharacterString>
|
|
757
|
+
</gmd:title>
|
|
758
|
+
<gmd:date>
|
|
759
|
+
<gmd:CI_Date>
|
|
760
|
+
<gmd:date>
|
|
761
|
+
<gco:DateTime>2024-05-31T11:00:00+00:00</gco:DateTime>
|
|
762
|
+
</gmd:date>
|
|
763
|
+
<gmd:dateType>
|
|
764
|
+
<gmd:CI_DateTypeCode codeListValue="publication" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
|
|
765
|
+
</gmd:dateType>
|
|
766
|
+
</gmd:CI_Date>
|
|
767
|
+
</gmd:date>
|
|
768
|
+
<gmd:edition gco:nilReason="missing">
|
|
769
|
+
<gco:CharacterString/>
|
|
770
|
+
</gmd:edition>
|
|
771
|
+
</gmd:CI_Citation>
|
|
772
|
+
</gmd:citation>
|
|
773
|
+
<gmd:abstract>
|
|
774
|
+
<gco:CharacterString>Read the abstract and supplemental information provided in the Vector template for more details.</gco:CharacterString>
|
|
775
|
+
</gmd:abstract>
|
|
776
|
+
<gmd:purpose gco:nilReason="missing">
|
|
777
|
+
<gco:CharacterString/>
|
|
778
|
+
</gmd:purpose>
|
|
779
|
+
<gmd:status>
|
|
780
|
+
<gmd:MD_ProgressCode codeListValue="onGoing" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ProgressCode"/>
|
|
781
|
+
</gmd:status>
|
|
782
|
+
<gmd:language>
|
|
783
|
+
<gco:CharacterString>eng</gco:CharacterString>
|
|
784
|
+
</gmd:language>
|
|
785
|
+
<gmd:characterSet>
|
|
786
|
+
<gmd:MD_CharacterSetCode codeListValue="utf8" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_CharacterSetCode"/>
|
|
787
|
+
</gmd:characterSet>
|
|
788
|
+
<gmd:topicCategory>
|
|
789
|
+
<gmd:MD_TopicCategoryCode>boundaries</gmd:MD_TopicCategoryCode>
|
|
790
|
+
</gmd:topicCategory>
|
|
791
|
+
<gmd:supplementalInformation gco:nilReason="missing">
|
|
792
|
+
<gco:CharacterString/>
|
|
793
|
+
</gmd:supplementalInformation>
|
|
794
|
+
</gmd:MD_DataIdentification>
|
|
795
|
+
</gmd:identificationInfo>
|
|
796
|
+
</gmd:MD_Metadata>`
|
|
797
|
+
|
|
708
798
|
export const NATIONAL_KEYWORD = {
|
|
709
799
|
key: 'http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/national',
|
|
710
800
|
label: 'National',
|
|
@@ -10,3 +10,4 @@ export * from './lib/components/record-form/record-form.component'
|
|
|
10
10
|
export * from './lib/components/wizard/wizard.component'
|
|
11
11
|
export * from './lib/components/wizard-field/wizard-field.component'
|
|
12
12
|
export * from './lib/components/wizard-summarize/wizard-summarize.component'
|
|
13
|
+
export * from './lib/components/record-form/form-field'
|
|
@@ -106,8 +106,8 @@ export class ImportRecordComponent {
|
|
|
106
106
|
this.isRecordImportInProgress = true
|
|
107
107
|
|
|
108
108
|
this.recordsRepository.duplicateExternalRecord(url).subscribe({
|
|
109
|
-
next: (
|
|
110
|
-
if (
|
|
109
|
+
next: (uuid) => {
|
|
110
|
+
if (uuid) {
|
|
111
111
|
this.notificationsService.showNotification(
|
|
112
112
|
{
|
|
113
113
|
type: 'success',
|
|
@@ -122,7 +122,7 @@ export class ImportRecordComponent {
|
|
|
122
122
|
)
|
|
123
123
|
|
|
124
124
|
this.router
|
|
125
|
-
.navigate(['/edit',
|
|
125
|
+
.navigate(['/edit', uuid])
|
|
126
126
|
.catch((err) => console.error(err))
|
|
127
127
|
}
|
|
128
128
|
this.closeImportMenu.next()
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
provideNgIconsConfig,
|
|
41
41
|
} from '@ng-icons/core'
|
|
42
42
|
import { iconoirPlus } from '@ng-icons/iconoir'
|
|
43
|
+
import { RoleValues } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
43
44
|
|
|
44
45
|
@Component({
|
|
45
46
|
selector: 'gn-ui-form-field-contacts-for-resource',
|
|
@@ -72,15 +73,11 @@ export class FormFieldContactsForResourceComponent
|
|
|
72
73
|
@Output() valueChange: EventEmitter<Individual[]> = new EventEmitter()
|
|
73
74
|
|
|
74
75
|
contactsForRessourceByRole: Map<Role, Individual[]> = new Map()
|
|
76
|
+
roleValues = RoleValues
|
|
75
77
|
|
|
76
|
-
rolesToPick: Role[] =
|
|
77
|
-
'
|
|
78
|
-
|
|
79
|
-
'owner',
|
|
80
|
-
'point_of_contact',
|
|
81
|
-
'author',
|
|
82
|
-
'publisher',
|
|
83
|
-
]
|
|
78
|
+
rolesToPick: Role[] = this.roleValues.filter(
|
|
79
|
+
(role) => role !== 'other' && role !== 'unspecified'
|
|
80
|
+
)
|
|
84
81
|
|
|
85
82
|
roleSectionsToDisplay: Role[] = []
|
|
86
83
|
|
|
@@ -178,9 +175,11 @@ export class FormFieldContactsForResourceComponent
|
|
|
178
175
|
* gn-ui-autocomplete
|
|
179
176
|
*/
|
|
180
177
|
displayWithFn: (user: UserModel) => string = (user) =>
|
|
181
|
-
|
|
182
|
-
user.
|
|
183
|
-
|
|
178
|
+
user.name
|
|
179
|
+
? `${user.name} ${user.surname} ${
|
|
180
|
+
user.organisation ? `(${user.organisation})` : ''
|
|
181
|
+
}`
|
|
182
|
+
: ``
|
|
184
183
|
|
|
185
184
|
/**
|
|
186
185
|
* gn-ui-autocomplete
|
|
@@ -9,3 +9,4 @@ export * from './form-field-object/form-field-object.component'
|
|
|
9
9
|
export * from './form-field-array/form-field-array.component'
|
|
10
10
|
export * from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
11
11
|
export * from './form-field.component'
|
|
12
|
+
export * from './form-field-constraints-shortcuts/constraints.utils'
|