diff --git a/vue-client/src/components/inspector/entity-header.vue b/vue-client/src/components/inspector/entity-header.vue index 540da32cd..be9ce155f 100644 --- a/vue-client/src/components/inspector/entity-header.vue +++ b/vue-client/src/components/inspector/entity-header.vue @@ -24,6 +24,10 @@ export default { type: Object, default: null, }, + recordData: { + type: Object, + default: null, + }, }, data() { return { @@ -108,6 +112,7 @@ export default { @hiddenDetailsNumber="setHiddenDetailsNumber" :show-all-keys="showAllKeys || hiddenDetailsNumber === 1" :focus-data="focusData" + :record-data="recordData" :should-link="false" :exclude-components="inspector.status.isNew ? ['id'] : []" :valueDisplayLimit=3> diff --git a/vue-client/src/components/inspector/toolbar.vue b/vue-client/src/components/inspector/toolbar.vue index 20677fd84..4a92a64d6 100644 --- a/vue-client/src/components/inspector/toolbar.vue +++ b/vue-client/src/components/inspector/toolbar.vue @@ -373,9 +373,13 @@ export default { }, userIsPermittedToEdit() { const mainEntity = this.inspector.data.mainEntity; + const record = this.inspector.data.record; if (this.user.isLoggedIn === false) { return false; } + if (record['@type'] !== 'Record') { + return false; + } if (mainEntity['@type'] === 'Item') { if (this.isMyHolding || this.user.isGlobalRegistrant()) { return true; @@ -395,6 +399,13 @@ export default { } return true; }, + userIsPermittedToRemove() { + const record = this.inspector.data.record; + if (record['@type'] === 'CacheRecord' || record['@type'] === 'PlaceholderRecord') { + return true; + } + return this.userIsPermittedToEdit; + }, showRecord() { return this.status.showRecord; }, @@ -599,7 +610,7 @@ export default { {{ "Preview MARC21" | translatePhrase }} {{ getKeybindText('preview-marc') ? ` (${getKeybindText('preview-marc')})` : ''}} -