Skip to content

Commit

Permalink
Show ID as a property
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosenstrom committed Jun 19, 2024
1 parent 7eeaf9f commit 8921985
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion vue-client/src/components/mixins/form-mixin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ export default {
if (this.showTypeChanger === false) {
delete fItem['@type'];
}
delete fItem['@id'];
const keepId = this.settings.showIdsForProps.includes(this.fieldKey);
if (!keepId) {
delete fItem['@id'];
}
delete fItem['@reverse'];
delete fItem._uid;
Expand Down
5 changes: 4 additions & 1 deletion vue-client/src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export default {
'CacheRecord',
'ComplexSubject.termComponentList',
],
showIdsForProps: [
'hasComponent',
],
keysToClear: {
duplication: [
'record.bibliography',
Expand Down Expand Up @@ -75,12 +78,12 @@ export default {
'unstable',
],
hiddenProperties: [
'@id',
'created',
'modified',
'mainEntity',
],
lockedProperties: [
'@id',
'sameAs',
'controlNumber',
'systemNumber',
Expand Down

0 comments on commit 8921985

Please sign in to comment.