From: Jeff Davis Date: Mon, 14 Aug 2017 21:03:59 +0000 (-0700) Subject: LP#1673870: display ebook availability when detailed holdings info is unavailable X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1004dda5626abf095b966fb7bc2ac317bfe71505;p=Evergreen.git LP#1673870: display ebook availability when detailed holdings info is unavailable Signed-off-by: Jeff Davis Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/ui/default/opac/ebook_api/avail.js b/Open-ILS/web/js/ui/default/opac/ebook_api/avail.js index b65bf8773a..b8226026a3 100644 --- a/Open-ILS/web/js/ui/default/opac/ebook_api/avail.js +++ b/Open-ILS/web/js/ui/default/opac/ebook_api/avail.js @@ -19,8 +19,10 @@ dojo.addOnLoad(function() { var avail = holdings.available; if (avail == 1) { node.innerHTML = 'This title is available online.'; + dojo.removeClass(ebook.rec_id + '_ebook_checkout', "hidden"); } else if (avail == 0) { node.innerHTML = 'This title is not currently available.'; + dojo.removeClass(ebook.rec_id + '_ebook_place_hold', "hidden"); } else { console.log(ebook.id + ' has bad availability: ' + avail); }