From d36ad5dd697deab3b41127b75417c6c6f0083f9e Mon Sep 17 00:00:00 2001 From: Bill Erickson <berick@esilibrary.com> Date: Thu, 15 Sep 2011 14:57:19 -0400 Subject: [PATCH] Acq: List provider code in lineitem lists Along with selection list and purchase order, when an item is attached to a purchase order, also show the provider code Signed-off-by: Bill Erickson <berick@esilibrary.com> Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com> --- Open-ILS/src/templates/acq/common/li_table.tt2 | 1 + Open-ILS/web/js/ui/default/acq/common/li_table.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Open-ILS/src/templates/acq/common/li_table.tt2 b/Open-ILS/src/templates/acq/common/li_table.tt2 index 8f078aba07..7b10181762 100644 --- a/Open-ILS/src/templates/acq/common/li_table.tt2 +++ b/Open-ILS/src/templates/acq/common/li_table.tt2 @@ -106,6 +106,7 @@ <span name='pl' class='hidden'> | <a title='Select List' name='pl_link' href='javascript:void(0);'>❖ </a></span> <span name='po' class='hidden'> | <a title='Purchase Order' name='po_link' href='javascript:void(0);'>⌘ </a></span> <span name="show_requests"> | <a title='Patron Requests' name="show_requests_link" href="javascript:void(0);">requests</a></span> + <span name='pro' class='hidden'> | <a title='[% l('Provider') %]' name='pro_link' href='javascript:void(0);'>⍟ </a></span> </td> </tr> </tbody> 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 addf137d54..eb0b620354 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 @@ -391,6 +391,7 @@ function AcqLiTable() { {params: [ this.authtoken, li.purchase_order(), { "flesh_price_summary": true, + "flesh_provider" : true, "flesh_lineitem_count": true } ]}); @@ -399,6 +400,11 @@ function AcqLiTable() { var link = nodeByName('po_link', row); link.setAttribute('href', oilsBasePath + '/acq/po/view/' + li.purchase_order()); link.innerHTML += po.name(); + + openils.Util.show(nodeByName('pro', row), 'inline'); + link = nodeByName('pro_link', row); + link.setAttribute('href', oilsBasePath + '/conify/global/acq/provider/' + po.provider().id()) + link.innerHTML += po.provider().code(); } } -- 2.11.0