Please be aware that EDI configuration can be complex and will require ongoing communication with your EDI vendor(s) and your team at ByWater. Because there is no standard configuration that works for all libraries, multiple rounds of test orders are typical. Please expect configuration to take multiple weeks from initial setup to being fully up and running.
Libraries in implementation should be aware that we cannot test until you are fully live. EDI will not be active immediately upon go-live.
The Koha Manual gives an overview of the EDI ordering process and setup requirements. Your ByWater Educator will work with you on the steps below. Any steps that must be completed by your library are clearly marked as:
Action item: [task details].Setup
Step 1: System preferences
These are the key system preferences to consider when setting up EDI in Koha.
- EdifactInvoiceImport: 'Do' or 'Don't' automatically import invoices when vendors send them to a library's FTP folder. Since importing invoices marks items as Received, ByWater sets this to 'Don't' by default. That way, items won't be marked Received until your library imports each invoice. Your library can switch this to 'Do' if preferred.
- AcqItemSetSubfieldsWhenReceiptIsCancelled: To have Koha automatically update an item subfield if receipt is cancelled, set the subfield and value here. For instance, if you would like an item's not for loan status to revert to -1 (commonly 'On order' or 'Ordered') if receipt is cancelled, set it as 7=-1.
- AcqItemSetSubfieldsWhenReceived: This will tell Koha to automatically update item subfields when items are received. For instance, if you would like items' not for loan status to automatically update to -2/Processing upon receipt, set this to 7=-2. Note that not for loan statuses can also be automatically updated using each vendor's plugin.
- MarcItemFieldsToOrder: If a vendor will be sending item information in order files, this maps the tag/subfields they will use in order to create your order lines in Koha, including item details. ByWater uses a standard set of tags/subfields unless a vendor requires a different specific tag. See Step 9 below for details.
- MarcFieldsToOrder: This system preference allows vendors to send order information including price, fund, and quantity in MARC order files. This is for vendors who are not sending item information as part of the order file. ByWater uses a standard set of tags/subfields unless a vendor requires a different specific tag. See Step 9 below for details.
Action item: Review preferences above, and discuss any questions or changes with your Educator.Step 2: Create budget and funds
If your library does not already have them set up, you will need to create a budget with funds to use EDI.
Step 3: Create vendors
Your
library will create EDI vendor records in Koha's Acquisitions module. A
library may have one or more vendor records for the same vendor. It can
be helpful to include account numbers in a vendor note.
Remember
that in Acquisitions, ordering and invoicing are linked to the vendor
record. This means that a single Koha system may have multiple vendor accounts for the same vendor. There is not necessarily a right or wrong way to set this up - it entirely depends on how your library structures ordering, and how you want to be able to track orders and invoices. These are examples of situations when multiple accounts for the same vendor may be preferable:
- In a consortium, each library system typically has their own account for each vendor. So, the accounts in Koha could be Vendor A - County X Library, Vendor A - County Y Library, Vendor A - County Z Library (etc.).
- In a unified system with multiple locations where each branch does their own ordering, each branch may have a separate account for the same vendor. This could look like Vendor A - Main branch, Vendor A - East branch, Vendor A - West branch (etc.).
- A single-location library may have separate accounts for Adult, Teen, and Children's materials for the same vendor. This could look like Vendor A - Adult, Vendor A - Teen, Vendor A - Children's (etc.).
Action item: Create vendor(s) in Koha from Acquisitions > Vendors.
Make a copy of this EDI workbook to collect the information you will need from each vendor for EDI setup in Koha. Please note the following: - Library EAN(s) and qualifier: Libraries with multiple ordering accounts will typically have multiple EANs.
- Library SAN and qualifier:
- A library SAN may be required by your vendor(s) in addition to your Library EAN. If your vendor does not require this, you may skip these two entries in the workbook.
- SANs are assigned by Bowker Publishing Services. If your vendor requires a SAN but you are not sure what yours is, you can contact Bowker Support at (856) 399-7495 or isbn-san@bowker.com to look it up. If they tell you that none exists, they can be created by/purchased from Bowker.
Action items:
- Make a copy of the EDI workbook for your library's use.
- Complete details on your copy of the workbook for each vendor your library will be ordering with for EDI.
- Submit a ticket with your workbook linked (preferred) or attached so that a ByWater Solutions Educator can configure your plugin. Note that we cannot configure your plugin without this information.
Step 5: Plugin setup
Based
on the details in your EDI workbook, your Educator will set up your
plugin(s). Note that adjustments may be needed once you start sending
and receiving EDI orders.
Action items:
- Confirm that you have submitted a ticket with your EDI workbook linked (preferred) or attached.
- Respond to any questions from your Educator about your workbook.
Step 6: File transports
In Administration > File transports (under Additional parameters), create a new file transport with the following:
- Name: The name that will be visible for selection in EDI accounts.
- Transport: SFTP (default) or FTP.
- Host: FTP address provided by your vendor.
- Port: 22 (default; use for SFTP) or 21 for FTP.
- Passive mode: Defaults to On (Recommended)/Enabled (Recommended) for FTP, but can set to Off/Disabled.
- This does not apply to SFTP connections.
- Leave at Enabled for FTP connections.
- Authentication mode: Defaults to Password-based.
- Keep this set to Password-based. This should only be changed by ByWater Solutions.
- Username: Provided by your EDI vendor.
- Password:
Provided by your EDI vendor.
- Once this is entered, passwords will be hashed, which means that they won't be visible to your library or recovered/viewed by ByWater Solutions staff.
- Key file: Leave unset.
- Remote download directory: Provided by your EDI vendor.
- Remote upload directory: Provided by your EDI vendor.
- Debug mode: Set to Disabled.
- ByWater Solutions staff will update this to Enabled if needed for troubleshooting.
The completed screen should look similar this (with your vendor's details substituted):
Click 'Submit' to continue.
When you save the new connection (or edit an existing connection), you will receive a confirmation screen. For SFTP connections, it will look like this:
For FTP connections:
Click 'Save' to complete the new file transport (or save edits to an existing transport).
Action item: Create new File transfer settings using the details gathered in your EDI workbook.
Step 7: EDI accounts
The next step will link your file transport settings with individual EDI ordering accounts. To begin, go to Administration > EDI accounts (also accessible from Acquisitions > EDI accounts), and enter the following:
- Basic information:
- Vendor: Select from the vendors you created in step 3.
- Description: Enter a description that will help library staff identify this account, including distinguishing it from other accounts with the same vendor if applicable. This could include the library name (if multiple libraries or branches have accounts with the same vendor), account number, or account purpose (such as Teen, Grant Orders, Processed etc.).
- Plugin: Select the plugin for this vendor.
- Qualifier: Provided by your EDI vendor (or copied from the EDI workbook if listed there).
- SAN: This is the vendor's SAN, not the library's SAN. It will be provided by your EDI vendor (or may be copied from the EDI workbook if listed there).
- Standard: Provided by your EDI vendor (or copied from the EDI workbook if listed there).
- Transport settings: Select the file transport settings for this vendor that you created in step 6.
- Message types: Select 'Orders enabled' and 'Invoices enabled' unless discussed otherwise with your vendor and ByWater Solutions.
- Functional switches: Leave both options deselected unless discussed otherwise with your vendor and ByWater Solutions.
Click 'Submit' to save your settings.
Action item: Create EDI accounts settings for each account you will use for EDI ordering.
Step 8: Library EANs
Next, set up your Library EAN(s) for each vendor account. Go to Administration > EDI accounts (also accessible from Acquisitions > EDI accounts), and enter the following:
- Library: Leave at 'All libraries', or limit to a specific library if this account should only be used by one location.
- Description: Enter a description that will
help library staff identify this account, including distinguishing it
from other accounts with the same vendor if applicable. This could
include the library name (if multiple libraries or branches have
accounts with the same vendor), account number, or account purpose (such
as Teen, Grant Orders, Processed etc.).
- EAN: Enter your EAN as provided by your vendor and entered in your EDI workbook.
- Qualifier: Select the qualifier as provided by your vendor (or copied from the EDI workbook if listed there).
Action item: Create Library EAN settings for each account you will use for EDI ordering.
Step 9: Vendor grid/mapping setup
If your vendor will be providing MARC order files, your library will need to set up grids/mapping on each vendor's site. The fields to map with your vendor(s) will be based on the applicable tag(s) and subfields set in Koha's MarcFieldsToOrder and/or MarcItemFieldsToOrder system preferences. ByWater uses a standard set of tags/subfields for each of these system preferences unless a vendor requires a specific different tag. Please see your EDI workbook for details.
In addition to information in MarcFieldsToOrder and MarcItemFieldsToOrder, we highly recommend mapping bib-level item types in 942$c as part of your order files. If a vendor cannot do so, you will need to add 942$c to your files at the staging step by using a MARC modification template or prior to staging your file using an outside program such as MarcEdit.
Some of these mapped fields will need a list of codes that vendors will
include as part of your downloaded order file. Your Educator will add EDI reports to your Reports module that you can use to generate lists of these codes.
For vendors whose order files will contain item information, the subfields listed below should be included in your mapping/grids. This list also notes the codes that should be set up as selection options for specific subfields:
Mandatory
- Home library: map to 970$a - use library branches report
- Holding library: map to 970$b - use library branches report
- Fund: map to 970$e - use fund code report
- Item-level item type: map to 970$y - use item types report
- Not for loan - map to 970$7
- This is typically set to -1 (Ordered or On order) for all items
- Price: map to 970$g
- Replacement price: map to 970$v
- Quantity: map to 970$q
Strongly recommended
- Bib-level item type: map to 942$c - use item types report
Optional (partial list)
- Collection codes: map to 970$8 - use collection codes report
- Shelving locations: map to 970$c - use shelving location report
- See EDI workbook for full list of optional subfields
For vendors whose order files will not contain item information, the subfields listed below should be included in your mapping/grids.
This list also notes the codes that should be set up as selection
options for specific subfields:
Mandatory
- Fund: map to 975$e - use fund code report
- Quantity: map to 975$q
- Price: map to 975$g
Strongly recommended
- Bib-level item type: map to 942$c - use item types report
Optional (partial list)
- Discount: map to 975$d
- Replacement price: map to 975$v
- See EDI workbook for full list of optional subfields
Action items:
- Set up grids/mapping with your vendors using the applicable tags/subfields per your EDI workbook.
- If your vendor requests different tags/subfields, or cannot include a given subfield, please discuss with your Educator.
- For the applicable fields outlined above, generate and share code lists with your vendor using the EDI reports in Koha's Reports module.
Step 10: Final MARC file setup (if applicable)
If your vendor will be sending final MARC files for your library to overlay atop order files, matching should occur on 999$c (Koha biblionumber) for bib overlay and 952$9 (Koha item number) for item overlay. The Koha biblionumber and item number are sent to vendors as part of your EDI order. Your library should confirm that each vendor can include these numbers as part of your final MARC files. If they cannot, discuss with your Educator.
Note: For final MARC files, Ingram will send the biblionumber in 999$a. Libraries will need a special MARC modification template to copy that number to 999$c. Please discuss with your Educator.
If your vendor's final MARC files will include item
information, the vendor may want a list of item subfields. 952 is Koha's item
tag. The most common item subfields for final files are:
952$a - Home library
952$b - Holding library
952$c - Shelving location
952$g - Price
952$o - Call number
952$p - Barcode
952$v - Replacement price
952$y - Item type
952$7 - Not for loan status
952$8 - Collection code
952$9 - Item number
Note that Koha overlays the entire tag - it can't overlay only specific subfields. This means that for item overlays, any item subfields that are not included in your vendor's final MARC files will be treated as blank/null by Koha. For instance, if your order file contained an item type, home library, holding library, not for loan value, shelving location, and collection code, the final MARC file must also contain those subfields, or existing data will be blanked out when you overlay the final file.
Similarly, if your library will be overlaying bib records, you will want to make sure that your bib-level item type (942$c) is retained/included. Please discuss options with your Educator.
Action items:
- Verify that your vendors can include 999$c (biblionumber) and, if applicable, 952$9 (item number) in your final MARC files.
- If they cannot include both, discuss with your Educator.
- Libraries receiving final MARC files from Ingram: discuss the required custom MARC modification template with your Educator.
- Confirm that your vendor will include all applicable item subfields in your final MARC records.
- Discuss options for adding/retaining the bib-level item type (942$c) for bib overlays.
Ordering/receiving workflow
Once configuration is complete, you will work with your Educator and vendor to set up a test order (or, depending on the vendor, a small 'live' order). This is the same process you will use to place regular orders.
Creating orders
1. On your vendor's site, create your order, but do not submit it.
2. Download the cart's order MARC file to your local computer.
3. If you prefer to stage your file ahead of time, go to Cataloging > Stage records for import to stage your MARC file. If you prefer to stage and import from the basket, skip to Step 4, and use step 5a to add to your basket. - Use any MARC modification templates that you have discussed with your Educator.
- Do not import the file at this step.
5. Add to the basket using one of these methods:
- If you did not already stage your file, select the 'From a new file' option. Be sure to use any MARC modification templates that you have discussed with your Educator. Review the staged file, then complete the import.
- If you staged your file previously in Cataloging, use the 'From a
staged file' option, and select the file you staged earlier.
6. Review the details for each bib/item in your order:
- If your EDI vendor's grid/mapping only includes order information (price, quantity, and fund) but not item information, verify the order details and add item details as needed.
- If your EDI vendor's grid/mapping contains order and item information, verify that both have imported completely and correctly.
- If any details are not displaying as you expect, please discuss with your Educator.
- Once your order file has been imported into a basket, its bibs/items will be visible in your
OPAC/Aspen (unless you have chosen to suppress them). Depending on your
settings, patrons may be able to place holds on these titles.
7. Click the 'Create EDIFACT order' button to submit your order and close your basket.
- Once 'Create EDIFACT order' is clicked, 'EDI status' will change to Pending. The
EDI cron runs every 15 minutes, so this will remain pending until the next run. Once it sends, the status will update again.
- You can view the status of your EDIFACT message in the basket under 'EDI status'.
- The status will also be visible in Acquisitions > EDIFACT messages.
Your vendor will process the order and send an EDIFACT invoice back to Koha, typically when items are shipped. Follow the next steps when you are ready to work with an invoice that your vendor has sent.
Receiving and invoices
Invoices will import into Koha one of two ways:
- If your library individually
imports invoices into Koha when staff are ready to review them
(typically when items have physically arrived at the library), start
with step 1.
- If your library is automatically importing invoices as soon as the vendor sends them, start with step 2 (this is less common).
1. Go to Acquisitions > EDIFACT messages, and click the 'Import' button next to the invoice you want to download and review.
2. In Acquisitions > Invoices, find your invoice.
3. Review the invoice for accuracy. If items have been marked Received that are not physically present or are damaged, you can cancel their receipt.
4. Add any adjustments if needed.
5. Click 'Close' if everything is correct, and if you have received everything you expect to on this invoice.
6. Save your invoice.
If anything does not appear as expected, please discuss with your Educator.
Importing the invoice will mark items Received, so most libraries choose to wait to import invoices until they have physically received items. Depending on settings in your plugin(s) settings as discussed above, receiving items may also update not for loan statuses and prices. Please reach out to your Educator with any questions.
Cataloging/processing (overlaying final files)
1a. If your library does not receive final MARC files from your
vendor(s), you are now ready to complete cataloging/processing of your
newly acquired items.
1b. If your vendor does provide final MARC files, go to Cataloging > Stage records for import to overlay your final file over the order file.
- Typically, libraries use the 999$c/Koha biblionumber matching rule for final files. When applicable, Koha matches for item overlay on 952$9/item number. The biblionumber and item number are sent to vendors as part of your EDI order, and they should include them in your final files so that they overlay properly.
- Please discuss any questions about which settings to use for staging/importing final files with your Educator.