...
mod-gobi receives request from edge-orders and maps the XML received from GOBI to an order format the mod-orders supports.
Currently mod-gobi supports below order types:
- Listed Electronic Monograph
- Listed Electronic serial
- Listed Print Monograph
- Listed Print Serial
- Unlisted Print Monograph
- UnlistedPrint Serial
The fields received from GOBI need to be mapped to proper fields in orders. By default there are few fields supported by each order type and the mapping for each type is listed here:
https://github.com/folio-org/mod-gobi/tree/master/src/main/resources
Methods and fields to translate the specified type
Supported fields
Defined in the https://github.com/folio-org/mod-gobi/blob/master/src/main/resources/mapping.json → properties.field
How to use
Code Block | ||||
---|---|---|---|---|
| ||||
{ "field": "APPROVED", "dataSource": { "default": "true", "translation": "toBoolean", "translateDefault": true } } |
...
- field: one of the defined field from https://github.com/folio-org/mod-gobi/blob/master/src/main/resources/mapping.json → properties.field
- dataSource.default: default value
- datasource.translation: defined and implemented method from https://github.com/folio-org/mod-gobi/blob/master/src/main/resources/mapping.json → properties.dataSource.properties.translation
Supported methods
Defined in the https://github.com/folio-org/mod-gobi/blob/master/src/main/resources/mapping.json → properties.dataSource.properties.translation
How to use
Update mapping for "Listed Print Monograph" → https://github.com/folio-org/mod-gobi/blob/master/src/main/resources/ListedPrintMonograph.json
...