HUB
Sign inSign up

indexdata/order-import-poc

By indexdata

•Updated over 5 years ago

Import orders and invoices into FOLIO

Image
0

1.2K

indexdata/order-import-poc repository overview

⁠order-import-poc

Proof of concept workaround needed until FOLIO supports importing MARC records to create orders.

⁠Docker image

This image runs a Jetty⁠ container with the order import webapp as the root, using the default configuration in the import.properties file. This will work against the FOLIO folio-snapshot⁠ reference environment.

To override the default configuration, mount your configuration to /var/lib/jetty/order/import.properties on the container e.g.:

docker run -d -v $(pwd)/order:/var/lib/jetty/order -p 8080:8080 indexdata/order-import-poc
⁠What does this app do?
  • It takes an uploaded file that contains MARC records and creates orders, instances, holdings, items and MARC records for each.
  • It uses the 980 field to get the fund code, vendor code, price, tag, quantity, notes and electronic/print indicator
  • It only creates items if the material is print (which should be indicated in the 980$z field) - It looks for the values ELECTRONIC or PRINT
  • It lets FOLIO create the instance, holdings and item records using the "createInventory" value in the order line
  • It optionally creates an invoice
  • It does all of this using the FOLIO API
  • It uses a property file to determine location, fiscal year, loan type, note type and material type and default text for electronic resources (in case subfield z is missing)
⁠Optional Invoice import
  • The script supports three modes of invoice imports, as configured in import.properties:
    • Never import an invoice: This is default behavior so either leave out any invoice properties or set importInvoice = false
    • Import an invoice if invoice data are found in the MARC: Set importInvoice = true and failIfNoInvoiceData = 'false'
    • Importing an invoice is mandatory: Set importInvoice = true and failIfNoInvoiceData = true
  • Will import one invoice and one invoice line

For more information, see folio-labs/order-import-poc⁠ on GitHub.

Tag summary
Recent tags
Content type
Image
Digest
Size
250.3 MB
Last updated
over 5 years ago
docker pull indexdata/order-import-poc:latest