Skip to content

Commit

Permalink
Revert display for objectCount (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: Ray Lee <ray.lee@lyrasis.org>
  • Loading branch information
mikejritter and ray-lee committed Mar 20, 2024
1 parent c3c63ab commit 6159dd1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -57,7 +57,7 @@
"chai-as-promised": "^5.3.0",
"chai-immutable": "^1.6.0",
"cross-env": "^2.0.0",
"cspace-ui": "^9.0.0-rc.2",
"cspace-ui": "^9.0.0-rc.3",
"css-loader": "^6.7.3",
"eslint": "^6.7.2",
"eslint-config-airbnb": "^18.0.1",
Expand Down
2 changes: 2 additions & 0 deletions src/messages.js
Expand Up @@ -12,6 +12,8 @@ export default {
'column.collectionobject.narrow.objectNumber': 'Acc. number',

'field.collectionobjects_common.objectNumber.name': 'Accession number',
'field.collectionobjects_common.objectCount.fullName': 'Number of objects',
'field.collectionobjects_common.objectCount.name': 'Number of objects',
'field.collectionobjects_common.briefDescription.name': 'Production description',
'field.collectionobjects_common.objectStatus.name': 'Object type',
'field.collectionobjects_common.reference.name': 'Supplementary literature description',
Expand Down
11 changes: 1 addition & 10 deletions src/plugins/recordTypes/collectionobject/forms/default.jsx
Expand Up @@ -23,6 +23,7 @@ const template = (configContext) => {
<Row>
<Col>
<Field name="objectNumber" />
<Field name="objectCount" subpath={['ns2:collectionobjects_common', 'objectCountGroupList', 'objectCountGroup', '0']} />

<Field name="otherNumberList">
<Field name="otherNumber">
Expand Down Expand Up @@ -100,16 +101,6 @@ const template = (configContext) => {
</Panel>
</Field>
</Field>

<Field name="objectCountGroupList">
<Field name="objectCountGroup">
<Field name="objectCount" />
<Field name="objectCountType" />
<Field name="objectCountCountedBy" />
<Field name="objectCountDate" />
<Field name="objectCountNote" />
</Field>
</Field>
</Panel>

<Panel name="desc" collapsible collapsed>
Expand Down

0 comments on commit 6159dd1

Please sign in to comment.