LP#1270289 remove redundant lineitem cancel display
authorBill Erickson <berick@esilibrary.com>
Thu, 31 Jul 2014 19:17:58 +0000 (15:17 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 7 Aug 2014 21:06:53 +0000 (17:06 -0400)
Remove the cancel reason label displayed in the lineitem list pages
since the cancel reason is now displayed as the lineitem status for
cancelled lineitems.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/acq/common/li_table.tt2
Open-ILS/web/js/ui/default/acq/common/li_table.js

index b93749d..9517725 100644 (file)
                                         <span attr='pubdate'></span>
                                         <span attr='publisher'></span>
                                         <span name='source_label'></span>
-                                        <span name='cancel_reason'></span>
                                     </td>
                                 </tr>
                                 <tr>
index e7e4d73..1f48b08 100644 (file)
@@ -685,11 +685,6 @@ function AcqLiTable() {
         dojo.forEach(tds, function(td) {self.setRowAttr(td, liWrapper, td.getAttribute('attr'), td.getAttribute('attr_type'));});
         dojo.query('[name=source_label]', row)[0].appendChild(document.createTextNode(li.source_label()));
 
-        if (li.cancel_reason() && typeof li.cancel_reason() == 'object') {
-            dojo.query('[name=cancel_reason]', row)[0].appendChild(
-                document.createTextNode(li.cancel_reason().label()));
-        }
-
         // so we can scroll to it later
         dojo.query('[name=bib-info-cell]', row)[0].id = 'li-title-ref-' + li.id();