From: Bill Erickson Date: Wed, 29 Oct 2014 21:09:03 +0000 (-0400) Subject: ISBN Picker enhancements to show picked and add "Apply All" (cherry picked from commi... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=537a1f84dd99f9f71f895f71336b959582fa8624;p=working%2FEvergreen.git ISBN Picker enhancements to show picked and add "Apply All" (cherry picked from commit e37c412e7b9156639bb51021a06893cfee5e4d40) Cross-port: b19ece3 --- diff --git a/KCLS/openils/var/templates_kcls/acq/common/li_table.tt2 b/KCLS/openils/var/templates_kcls/acq/common/li_table.tt2 index 3e213f672d..ea6f1ce372 100644 --- a/KCLS/openils/var/templates_kcls/acq/common/li_table.tt2 +++ b/KCLS/openils/var/templates_kcls/acq/common/li_table.tt2 @@ -118,6 +118,12 @@ [% l('Line Items') %] + + + [% l('Apply ISBN Picker to All Items') %] + + + Picked: diff --git a/Open-ILS/web/js/ui/kcls/acq/common/li_table.js b/Open-ILS/web/js/ui/kcls/acq/common/li_table.js index e795a68ee1..28acf892d6 100644 --- a/Open-ILS/web/js/ui/kcls/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/kcls/acq/common/li_table.js @@ -639,7 +639,7 @@ function AcqLiTable() { "src", "/opac/extras/ac/jacket/small/" + identifier ); } - + nodeByName("liid", row).innerHTML += li.id(); if(li.eg_bib_id()) { @@ -929,8 +929,10 @@ function AcqLiTable() { ); var identAttr = this.getLiOrderIdent(li); - - + + + + // collect the values for each type of identifier // find a reasonable default identifier type to render @@ -1003,8 +1005,14 @@ function AcqLiTable() { // set the value for the cbox if (values[name].length) { - var orderIdent = self.getLiOrderIdent(li); - + var orderIdent = self.getLiOrderIdent(li); + if (orderIdent && orderIdent.attr_name() == name) { + var link = nodeByName('order_ident_picked', row); + link.innerHTML += orderIdent.attr_value(); + } else { + var link = nodeByName('order_ident_picked', row); + link.innerHTML += "None"; + } if (orderIdent && orderIdent.attr_name() == name) { cbox.attr('value', orderIdent.attr_value()); } else {