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);
<!ENTITY staff.cat.opac.manage_multi_home_items.label "Manage Conjoined Items">
<!ENTITY staff.cat.opac.mark_for_multi_home.accesskey "C">
<!ENTITY staff.cat.opac.mark_for_multi_home.label "Mark as Target for Conjoined Items">
+<!ENTITY staff.cat.opac.mark_for_li_transfer.label "Mark as Target for Lineitem Transfer">
<!ENTITY staff.cat.opac.marc_edit.accesskey "E">
<!ENTITY staff.cat.opac.marc_edit.label "MARC Edit">
<!ENTITY staff.cat.opac.marc_view.accesskey "V">
}
}
+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;
<menuitem label="&staff.cat.opac.mark_for_hold_transfer.label;" accesskey="&staff.cat.opac.mark_for_hold_transfer.accesskey;" id="mark_for_hold_transfer" oncommand="mark_for_hold_transfer();"/>
<menuitem label="&staff.cat.opac.transfer_title_holds.label;" accesskey="&staff.cat.opac.transfer_title_holds.accesskey;" id="transfer_title_holds" oncommand="transfer_title_holds();"/>
<menuitem label="&staff.cat.opac.mark_for_multi_home.label;" accesskey="&staff.cat.opac.mark_for_multi_home.accesskey;" id="mark_for_multi_home" oncommand="mark_for_multi_home();"/>
+ <menuitem label="&staff.cat.opac.mark_for_li_transfer.label;" accesskey="&staff.cat.opac.mark_for_li_transfer.accesskey;" id="mark_for_li_transfer" oncommand="mark_for_li_transfer();"/>
<menuseparator/>
<menuitem label="&staff.cat.opac.bib_in_new_tab.label;" id="bib_in_new_tab" oncommand="bib_in_new_tab();"/>
<menuitem label="&staff.cat.opac.remove_me.label;" id="remove_me" oncommand="remove_me();"/>
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.