Skip to content

Commit

Permalink
Add billing UUID to PO (#40)
Browse files Browse the repository at this point in the history
* add billingMap constant

* add billTo environment varialbe and comment out variables related to eResources

* add getBillingAddresses method to create map of billing names and uuids

* pick up billTo environment varialbe as key for billing address UUID...add validation of env variables

* add javadoc comment for new method

* add output when debug option is set

* add script to run MarcToJson

* add billTo environment variable

* add query parameter for Billing Addresses lookup and add unit test

* Drop buildDir from .env.example

* Ensure billTo is set for local orchestration

Co-authored-by: Nick Cappadona <[email protected]>
  • Loading branch information
fereira and cappadona authored May 19, 2021
1 parent f2a6fcf commit 28765a3
Show file tree
Hide file tree
Showing 10 changed files with 1,340 additions and 149 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ loanType=Can circulate
textForElectronicResources=Available to Snapshot Users
noteType=General note
materialType=Book
billTo=LTS Acquisitions
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ services:
- textForElectronicResources=${textForElectronicResources}
- noteType=${noteType}
- materialType=${materialType}
- billTo=${billTo}
ports:
- 8080:8080
5 changes: 5 additions & 0 deletions script/MarcToJson.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
BUILD_DIR=/cul/src/order-import-poc
export CLASSPATH=`mvn -f ../pom.xml -q exec:exec -Dexec.executable=echo -Dexec.args="%classpath"`
export OPTS="-Dlog4j.configuration=file:../src/main/resources/log4j.properties"
java -cp $CLASSPATH $OPTS org.olf.folio.order.MarcToJson $*
Loading

0 comments on commit 28765a3

Please sign in to comment.