Skip to content

Commit d6da45a

Browse files
committed
Merged in task/dspace-cris-2023_02_x/DSC-2248_new (pull request DSpace#3078)
Enhance metadata form handling for updated fields
2 parents 4a05f6b + ce0c16f commit d6da45a

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"@ngx-translate/core": "^14.0.0",
9797
"@nicky-lenaers/ngx-scroll-to": "^14.0.0",
9898
"@swimlane/ngx-charts": "^20.4.1",
99-
"@types/grecaptcha": "^3.0.4",
10099
"angular-idle-preload": "3.0.0",
101100
"angulartics2": "^12.2.1",
102101
"axios": "^1.7.9",

src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-form.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ export class DsoEditMetadataForm {
424424
value: value.newValue.value,
425425
language: value.newValue.language,
426426
authority: value.newValue.authority,
427+
confidence: value.newValue.confidence,
428+
securityLevel: value.originalValue.securityLevel,
427429
}));
428430
}
429431
// "replace" the security level value
@@ -433,6 +435,7 @@ export class DsoEditMetadataForm {
433435
value: value.newValue.value,
434436
language: value.newValue.language,
435437
authority: value.newValue.authority,
438+
confidence: value.newValue.confidence,
436439
}));
437440
}
438441
} else if (value.change === DsoEditMetadataChangeType.REMOVE) {

yarn.lock

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,10 +2744,10 @@
27442744
resolved "https://registry.yarnpkg.com/@types/file-saver/-/file-saver-2.0.7.tgz#8dbb2f24bdc7486c54aa854eb414940bbd056f7d"
27452745
integrity sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==
27462746

2747-
"@types/grecaptcha@^3.0.4":
2748-
version "3.0.7"
2749-
resolved "https://registry.yarnpkg.com/@types/grecaptcha/-/grecaptcha-3.0.7.tgz#a74e987d4c550765fd805f091f62104c6c52a19a"
2750-
integrity sha512-ah5GDQfsiK3dnkaCbYcDFZXkZCG3o90VRu9hzXHnSe4kACrRB1KUI/ZyWHvYmqm1W5Tl8B5YxxT98uGTlkbf2Q==
2747+
"@types/grecaptcha@^3.0.9":
2748+
version "3.0.9"
2749+
resolved "https://registry.yarnpkg.com/@types/grecaptcha/-/grecaptcha-3.0.9.tgz#9f3b07ec06c8fff221aa6fc124fe5b8a0e2c3349"
2750+
integrity sha512-fFxMtjAvXXMYTzDFK5NpcVB7WHnrHVLl00QzEGpuFxSAC789io6M+vjcn+g5FTEamIJtJr/IHkCDsqvJxeWDyw==
27512751

27522752
"@types/hoist-non-react-statics@^3.3.0", "@types/hoist-non-react-statics@^3.3.1":
27532753
version "3.3.5"
@@ -12666,7 +12666,16 @@ string-template@~0.2.0:
1266612666
resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add"
1266712667
integrity sha512-Yptehjogou2xm4UJbxJ4CxgZx12HBfeystp0y3x7s4Dj32ltVVG1Gg8YhKjHZkHicuKpZX/ffilA8505VbUbpw==
1266812668

12669-
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
12669+
"string-width-cjs@npm:string-width@^4.2.0":
12670+
version "4.2.3"
12671+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
12672+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
12673+
dependencies:
12674+
emoji-regex "^8.0.0"
12675+
is-fullwidth-code-point "^3.0.0"
12676+
strip-ansi "^6.0.1"
12677+
12678+
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1267012679
version "4.2.3"
1267112680
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1267212681
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -12757,7 +12766,7 @@ string_decoder@~1.1.1:
1275712766
dependencies:
1275812767
safe-buffer "~5.1.0"
1275912768

12760-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
12769+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
1276112770
version "6.0.1"
1276212771
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1276312772
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -12778,6 +12787,13 @@ strip-ansi@^4.0.0:
1277812787
dependencies:
1277912788
ansi-regex "^3.0.0"
1278012789

12790+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
12791+
version "6.0.1"
12792+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
12793+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
12794+
dependencies:
12795+
ansi-regex "^5.0.1"
12796+
1278112797
strip-ansi@^7.0.1:
1278212798
version "7.1.0"
1278312799
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -14057,7 +14073,7 @@ word@~0.3.0:
1405714073
resolved "https://registry.yarnpkg.com/word/-/word-0.3.0.tgz#8542157e4f8e849f4a363a288992d47612db9961"
1405814074
integrity sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==
1405914075

14060-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
14076+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
1406114077
version "7.0.0"
1406214078
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1406314079
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -14075,6 +14091,15 @@ wrap-ansi@^6.2.0:
1407514091
string-width "^4.1.0"
1407614092
strip-ansi "^6.0.0"
1407714093

14094+
wrap-ansi@^7.0.0:
14095+
version "7.0.0"
14096+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
14097+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
14098+
dependencies:
14099+
ansi-styles "^4.0.0"
14100+
string-width "^4.1.0"
14101+
strip-ansi "^6.0.0"
14102+
1407814103
wrap-ansi@^8.1.0:
1407914104
version "8.1.0"
1408014105
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)