From 2bafbbd2aee289e5bb4fc810aeb369cc9ffe00a6 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Fri, 23 Jun 2017 13:43:03 -0700 Subject: [PATCH] LP#1673870: Link ebook transaction objects to vendor in JS Signed-off-by: Jeff Davis Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/opac/ebook_api/relation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/web/js/ui/default/opac/ebook_api/relation.js b/Open-ILS/web/js/ui/default/opac/ebook_api/relation.js index d423f333fc..9be5fc577f 100644 --- a/Open-ILS/web/js/ui/default/opac/ebook_api/relation.js +++ b/Open-ILS/web/js/ui/default/opac/ebook_api/relation.js @@ -19,6 +19,7 @@ Relation.prototype.getCheckouts = function(callback) { console.log('retrieved checkouts for patron'); rel.checkouts = []; dojo.forEach(resp.content(), function(checkout) { + checkout.vendor = rel.vendor; rel.checkouts.push(checkout); }); return callback(rel); @@ -39,6 +40,7 @@ Relation.prototype.getHolds = function(callback) { if (resp) { console.log('retrieved holds for patron'); dojo.forEach(resp.content(), function(hold) { + hold.vendor = rel.vendor; if (hold.is_ready === 1) { rel.holds_ready.push(hold); } else { @@ -64,9 +66,11 @@ Relation.prototype.getTransactions = function(callback) { console.log('retrieved holds for patron'); var xacts = resp.content(); dojo.forEach(xacts.checkouts, function(checkout) { + checkout.vendor = rel.vendor; rel.checkouts.push(checkout); }); dojo.forEach(xacts.holds, function(hold) { + hold.vendor = rel.vendor; if (hold.is_ready === 1) { rel.holds_ready.push(hold); } else { -- 2.11.0