acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}