LP#1673870: ebook checkout fails on error message, not on empty due date
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 14 Aug 2017 21:08:39 +0000 (14:08 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 14 Aug 2017 21:08:39 +0000 (14:08 -0700)
commit08824f927bd952501140ea1a81b2367c7a777c3a
tree65405b91795ffa61b12c1d9fafc9262759d55377
parentd1e810b151abdcab0ad4b6bc5a9f14d0feb2e51c
LP#1673870: ebook checkout fails on error message, not on empty due date

Previously, a successful ebook checkout would appear to fail if the
checkout response from the vendor API did not include a due date.  With
this commit, the checkout failure message is displayed only if Evergreen
returns an error message to the browser (i.e. the response object
contains an "error_msg" attribute).

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/web/js/ui/default/opac/ebook_api/loggedin.js