Skip to content

Commit e17aafe

Browse files
committed
updates for versionIdentifier
1 parent a8f04df commit e17aafe

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lode/components/AddProperty.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,7 @@ export default {
440440
computed: {
441441
canAddVersionIdentifier() {
442442
return this.versionIdentifierData.identifierValue &&
443-
this.versionIdentifierData.identifierName && this.versionIdentifierData.identifierName['@value'] &&
444-
this.versionIdentifierData.identifierType;
443+
this.versionIdentifierData.identifierName && this.versionIdentifierData.identifierName['@value'];
445444
},
446445
queryParams() {
447446
return this.$store.getters['editor/queryParams'];

src/lode/components/Property.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ export default {
11171117
},
11181118
isVersionIdentifier: function(type) {
11191119
appLog("isVersionIdentifier", type);
1120-
if (type && (type['https://purl.org/ctdl/terms/identifierType'] || (Array.isArray(type) && type[0] && type[0]['https://purl.org/ctdl/terms/identifierType']))) {
1120+
if (type && (type['https://purl.org/ctdl/terms/identifierTypeName'] || (Array.isArray(type) && type[0] && type[0]['https://purl.org/ctdl/terms/identifierTypeName']))) {
11211121
return true;
11221122
}
11231123
return false;

0 commit comments

Comments
 (0)