From: Bill Erickson Date: Fri, 6 Jan 2012 21:31:22 +0000 (-0500) Subject: ACQ+Vandelay link to vandelay queue from lineitem list UI X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=12757f3d4e0767e9d23bf2c4172553360f0842cd;p=evergreen%2Fjoelewis.git ACQ+Vandelay link to vandelay queue from lineitem list UI In the general purpose lineitem interface (li_table), there is now a link to the Vandelay queue which contains the queued bib record used to load/merge/link the lineitem. Queue opens in a new staff client tab. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- 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 b05bd41726..fc7e2e6aec 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();