Skip to content

Commit

Permalink
fix(cataloging-bulkchanges): Allow unspecified type on top level
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosenstrom committed Nov 13, 2024
1 parent e51dd51 commit 36eff73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
8 changes: 0 additions & 8 deletions cataloging/src/components/inspector/bulkchange-toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,6 @@ export default {
'settings',
'status',
]),
allowed() {
return VocabUtil.getPropertiesFromArray(
this.formObj['@type'],
this.resources.vocabClasses,
this.resources.vocabProperties,
this.resources.context,
);
},
showRecord() {
return this.status.showRecord;
},
Expand Down
14 changes: 7 additions & 7 deletions cataloging/src/resources/json/combinedTemplates.json
Original file line number Diff line number Diff line change
Expand Up @@ -4370,8 +4370,8 @@
}
},
"resource": {
"label": "Resurs",
"description": "Ändra resurs",
"label": "Ospecificerad typ",
"description": "Ändra ospecificerad typ",
"@id": "resource",
"value": {
"mainEntity": {
Expand All @@ -4384,11 +4384,11 @@
"bulk:changeSpec": {
"@type": "bulk:Update",
"bulk:matchForm": {
"@type": "Resource",
"@type": "bulk:Any",
"bulk:matchingMode": ["bulk:Subtypes"]
},
"bulk:targetForm": {
"@type": "Resource"
"@type": "bulk:Any"
}
}
},
Expand Down Expand Up @@ -4437,8 +4437,8 @@
}
},
"removeResource": {
"label": "\uD83D\uDDD1 Resurs",
"description": "Radera resurs",
"label": "\uD83D\uDDD1 Ospecificerad typ",
"description": "Radera ospecificerad typ",
"@id": "removeResource",
"value": {
"mainEntity": {
Expand All @@ -4451,7 +4451,7 @@
"bulk:changeSpec": {
"@type": "bulk:Delete",
"bulk:matchForm": {
"@type": "Resource",
"@type": "bulk:Any",
"bulk:matchingMode": [
"bulk:Subtypes"
]
Expand Down

0 comments on commit 36eff73

Please sign in to comment.