Skip to content

Commit

Permalink
DRYD-1246: UCB Held-in-Trust Contribution (#195)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Millet <[email protected]>
Co-authored-by: Ray Lee <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2023
1 parent 28215f1 commit 894f53f
Show file tree
Hide file tree
Showing 19 changed files with 1,363 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

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

21 changes: 21 additions & 0 deletions src/plugins/recordTypes/heldintrust/advancedSearch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export default (configContext) => {
const {
OP_CONTAIN,
} = configContext.searchOperators;

const {
defaultAdvancedSearchBooleanOp,
extensions,
} = configContext.config;

return {
op: defaultAdvancedSearchBooleanOp,
value: [
{
op: OP_CONTAIN,
path: 'ns2:heldintrusts_common/heldInTrustNumber',
},
...extensions.core.advancedSearch,
],
};
};
48 changes: 48 additions & 0 deletions src/plugins/recordTypes/heldintrust/columns.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { defineMessages } from 'react-intl';

export default (configContext) => {
const {
formatTimestamp,
formatRefName,
} = configContext.formatHelpers;

return {
default: {
heldInTrustNumber: {
messages: defineMessages({
label: {
id: 'column.heldintrust.default.heldInTrustNumber',
defaultMessage: 'Held-in-Trust number',
},
}),
order: 10,
sortBy: 'heldintrusts_common:heldInTrustNumber',
width: 200,
},
depositor: {
formatValue: formatRefName,
messages: defineMessages({
label: {
id: 'column.heldintrust.default.depositor',
defaultMessage: 'Depositor',
},
}),
order: 20,
sortBy: 'heldintrusts_common:heldInTrustDepositorGroupList/0/depositor',
width: 450,
},
updatedAt: {
formatValue: formatTimestamp,
messages: defineMessages({
label: {
id: 'column.heldintrust.default.updatedAt',
defaultMessage: 'Updated',
},
}),
order: 30,
sortBy: 'collectionspace_core:updatedAt',
width: 150,
},
},
};
};
Loading

0 comments on commit 894f53f

Please sign in to comment.