From 292f50b1649c44b1a6670d7ca3f4d07123c4fb4a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 6 Jan 2012 16:31:22 -0500 Subject: [PATCH] acq vandelay : UI; link to queue from lineitem Signed-off-by: Bill Erickson --- Open-ILS/src/templates/acq/common/li_table.tt2 | 1 + Open-ILS/web/js/ui/default/acq/common/li_table.js | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Open-ILS/src/templates/acq/common/li_table.tt2 b/Open-ILS/src/templates/acq/common/li_table.tt2 index 374e8161d6..3a233519c3 100644 --- a/Open-ILS/src/templates/acq/common/li_table.tt2 +++ b/Open-ILS/src/templates/acq/common/li_table.tt2 @@ -108,6 +108,7 @@ | requests + diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index a8ec47a580..734bf2beee 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -366,6 +366,24 @@ function AcqLiTable() { nodeByName("link_to_catalog_link", row).onclick = function() { self.drawBibFinder(li) }; } + if (li.queued_record()) { + this.pcrud.retrieve('vqbr', li.queued_record(), + { async : true, + oncomplete : function(r) { + var qrec = openils.Util.readResponse(r); + openils.Util.show(nodeByName('queue', row), 'inline'); + var link = nodeByName("queue_link", row); + link.onclick = function() { + // open a new tab to the vandelay queue for this record + openils.XUL.newTabEasy( + oilsBasePath + '/vandelay/vandelay?qtype=bib&qid=' + qrec.queue() + ); + } + } + } + ); + } + nodeByName("worksheet_link", row).href = oilsBasePath + "/acq/lineitem/worksheet/" + li.id(); -- 2.11.0