Skip to content

Commit

Permalink
BASIRA #258 - Adding "id" fields to Artwork, PhysicalComponent, and V…
Browse files Browse the repository at this point in the history
…isualContext pages
  • Loading branch information
dleadbetter committed Nov 29, 2024
1 parent 28e1748 commit 5e93749
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions client/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"documentsVisible": "Documents Visible",
"endDate": "End date",
"height": "Height",
"id": "Artworks/{{id}}",
"objectWorkTypes": "Object/Work Type(s)",
"materials": "Material(s)",
"notes": "Notes",
Expand Down Expand Up @@ -376,6 +377,7 @@
"labels": {
"depth": "Depth",
"height": "Height",
"id": "Physical_Components/{{id}}",
"name": "Name",
"notes": "Notes",
"width": "Width"
Expand Down Expand Up @@ -626,6 +628,7 @@
"depth": "Depth",
"generalSubjectGenre": "General Subject/Genre",
"height": "Height",
"id": "Visual_Contexts/{{id}}",
"name": "Name",
"notes": "Notes",
"specificSubjectIconography": "Specific Subject/Iconography",
Expand Down
4 changes: 4 additions & 0 deletions client/src/pages/Artwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ const Artwork = () => {
<RecordPage.Section>
<AttributesGrid
attributes={[{
name: 'id',
label: t('Common.labels.id'),
renderValue: () => t('Artwork.labels.id', { id: item.id })
}, {
name: 'date_start',
label: t('Artwork.labels.startDate')
}, {
Expand Down
4 changes: 4 additions & 0 deletions client/src/pages/PhysicalComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const PhysicalComponent = () => {
<RecordPage.Section>
<AttributesGrid
attributes={[{
name: 'id',
label: t('Common.labels.id'),
renderValue: () => t('PhysicalComponent.labels.id', { id: item.id })
}, {
name: 'height',
label: t('PhysicalComponent.labels.height')
}, {
Expand Down
12 changes: 8 additions & 4 deletions client/src/pages/VisualContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,21 @@ const VisualContext = () => {
<RecordPage.Section>
<AttributesGrid
attributes={[{
name: 'id',
label: t('Common.labels.id'),
renderValue: () => t('VisualContext.labels.id', { id: item.id })
}, {
name: 'height',
label: t('PhysicalComponent.labels.height')
label: t('VisualContext.labels.height')
}, {
name: 'width',
label: t('PhysicalComponent.labels.width')
label: t('VisualContext.labels.width')
}, {
name: 'depth',
label: t('PhysicalComponent.labels.depth')
label: t('VisualContext.labels.depth')
}, {
name: 'notes',
label: t('PhysicalComponent.labels.notes')
label: t('VisualContext.labels.notes')
}, {
name: 'general_subject_genre',
label: t('VisualContext.labels.generalSubjectGenre'),
Expand Down

0 comments on commit 5e93749

Please sign in to comment.