You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UIQM-789 Add new initialValues prop to quickMARC to initialize it with some pre-existing values. (#822)
* UIQM-789 Add new `initialValues` prop to quickMARC to initialize it with some pre-existing values.
* UIQM-789 update readme, only apply initial values on non-route mode
* UIQM-789 added tests for initialValues
* UIQM-789 fix sonar issue
* UIQM-789 remove comments for already turned off eslint rules
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ of the Module Developer's Guide.
32
32
|`onSave`| function | Called after saving and closing a record. Called with `externalId` when `marcType` is "bibliographic" or "authority". For `marcType` "holdings" it's called with `instanceId/externalId`| Yes |
33
33
|`onCreateAndKeepEditing`| function | Called after creating/deriving a record via "Save and keep editing" button. Called with `externalId` when `marcType` is "bibliographic" or "authority". For `marcType` "holdings" it's called with `instanceId/externalId`| Yes for route-less, No for pre-defined routes |
34
34
|`useRoutes`| bool | When `true` - quickMARC will define it's own routes that the consuming application will have to redirect to. When `false` - quickMARC will act like a regular plug-in and simply render a view, and the consuming application will have to define it's own routes and provide some props to quickMARC. | No |
35
+
|`initialValues`| object | Values to initialize quickMARC with. Shape should match the response from `records-editor/records` endpoint. Will only be applied when `useRoutes` is `false`. | No |
36
+
35
37
36
38
This is a [Stripes](https://github.com/folio-org/stripes-core/) UI module to edit MARC records.
0 commit comments