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:01:59 +0000 (14:01 -0400)
commit89c78443a481a3561ae5ff6bc83c94d8e6af67c0
tree9e9614ad5ec062c5c84cff05b7d4e2f20e3ff0a4
parent34cc6d301c8e078a06736c48fc13591aaf3f0955
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