]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1623541: Booking will fail if its router isn't called "router"
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Sep 2016 14:44:15 +0000 (10:44 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 20 Sep 2016 18:03:08 +0000 (14:03 -0400)
commit34015d516b9d826fa88476782fec028d91caf9ff
treeaef5b88ff554d81ccf9189250c716225d9863585
parentde1b65801b42f701252a749b61ea9bd701942286
LP#1623541: Booking will fail if its router isn't called "router"

The circ code checks to see if the booking app is running, and if not, it
skips some booking-related logic. This is a useful performance enhancement
where booking is not in use. It does this by asking the OpenSRF router if
the "open-ils.booking" app has registered with it. Most of the time the
OpenSRF router will be called, unimaginatively, "router" but when it's not,
booking will not be considered by the circ module even if it's running.

Instead of assuming "router" we should simply look up the router's name.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm