From: Bill Erickson Date: Fri, 17 Mar 2017 20:32:38 +0000 (-0400) Subject: LP#1619703 Transfer ACQ lineitem XUL X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=985f991e62f5f3257b4e3a9f66ba4099e8dccd2a;p=working%2FEvergreen.git LP#1619703 Transfer ACQ lineitem XUL Signed-off-by: Bill Erickson --- 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 526a119275..0216a5d20c 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 @@ -663,8 +663,17 @@ function AcqLiTable() { this.transferLiToBib = function(li_id) { var self = this; - var target = openils.XUL.localStorage().getItem( - 'eg.cat.marked_lineitem_transfer_record'); + var target; + + if (openils.XUL.isXUL()) { + if (window.IAMBROWSER) { + target = openils.XUL.localStorage().getItem( + 'eg.cat.marked_lineitem_transfer_record'); + if (target) target = JSON2js(target); + } else { + target = openils.XUL.getStash().marked_record_for_li_transfer; + } + } if (!target) { alert(localeStrings.LI_TRANSFER_NO_TARGET); diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 4e39205979..d5fb5d5be5 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -348,6 +348,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index 673eede35d..70ef4a780c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -900,6 +900,26 @@ function mark_for_hold_transfer() { } } +function mark_for_li_transfer() { + g.data.marked_record_for_li_transfer = docid; + g.data.stash('marked_record_for_li_transfer'); + + var mvr = g.network.simple_request( + 'MODS_SLIM_RECORD_RETRIEVE.authoritative',[docid]); + + var msg = $("offlineStrings").getFormattedString( + 'staff.cat.opac.marked_record_for_li_transfer_indicator.tcn.label', + [mvr.tcn()] + ); + + alert(msg); + + xulG.set_statusbar( + 3, msg, '', + gen_statusbar_click_handler('marked_record_for_li_transfer') + ); +} + function transfer_title_holds() { g.data.stash_retrieve(); var target = g.data.marked_record_for_hold_transfer; diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul index 3ed307175a..f77399bac8 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul @@ -62,6 +62,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties index b16e2a1830..e9ec403c0f 100644 --- a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties +++ b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties @@ -280,6 +280,7 @@ staff.cat.copy_browser.marked_record_for_multi_home_indicator.record_id.label=Re staff.cat.z3950.marked_record_for_overlay_indicator.tcn.label=Record with TCN %1$s marked for overlay. staff.cat.z3950.marked_record_for_overlay_indicator.record_id.label=Record with ID %1$s marked for overlay. staff.cat.opac.marked_record_for_hold_transfer_indicator.tcn.label=Record with TCN %1$s marked for title hold transfer. +staff.cat.opac.marked_record_for_li_transfer_indicator.tcn.label=Record with TCN %1$s marked for lineitem transfer. staff.cat.opac.marked_record_for_hold_transfer_indicator.record_id.label=Record with ID %1$s marked for title hold transfer. staff.cat.opac.title_for_hold_transfer.destination_needed.label=Need to mark a record as a Title Hold Transfer Destination first. staff.cat.opac.title_for_hold_transfer.success.label=Holds transferred.