LP#1623541: Booking will fail if its router isn't called "router" user/miker/lp1623541-booking-router
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Sep 2016 14:44:15 +0000 (10:44 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 14 Sep 2016 14:44:15 +0000 (10:44 -0400)
commit87f99bac9fcd9b20e6f53e543c7b6c71139974b6
tree64fa6ad8238770257695ad6d6f5b059071b9db2f
parent2db335069b260e6f884aebdcb4c9ee0375476b0a
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm