id : 1,
xact_start : new Date().toISOString(),
xact_finish : new Date().toISOString(),
- call_number : {
- label : "spindler",
- prefix : "biography",
- suffix : "Closed Stacks",
- owning_lib : {
- name : "Mineola Public Library",
- shortname : "Mineola"
- }
- },
+ call_number : {
+ label : "spindler",
+ prefix : "biography",
+ suffix : "Closed Stacks",
+ owning_lib : {
+ name : "Mineola Public Library",
+ shortname : "Mineola"
+ }
+ },
summary : {
xact_type : 'circulation',
last_billing_type : 'Overdue materials',
xact_start : xact.xact_start(),
}
if (xact.circulation()) {
- newXact.copy_barcode = xact.circulation().target_copy().barcode(),
+ newXact.copy_barcode = xact.circulation().target_copy().barcode();
newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
newXact.call_number = {
label : xact.circulation().target_copy().call_number().label(),
- prefix : xact.circulation().target_copy().call_number().prefix().label(),
- suffix : xact.circulation().target_copy().call_number().suffix().label(),
+ prefix : xact.circulation().target_copy().call_number().prefix().label(),
+ suffix : xact.circulation().target_copy().call_number().suffix().label(),
owning_lib : {
- name : xact.circulation().target_copy().call_number().owning_lib().name(),
- shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+ name : xact.circulation().target_copy().call_number().owning_lib().name(),
+ shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
}
}
}
-
xacts.push(newXact);
}
);
xact_start : xact.xact_start(),
}
if (xact.circulation()) {
- newXact.copy_barcode = xact.circulation().target_copy().barcode(),
- newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+ newXact.copy_barcode = xact.circulation().target_copy().barcode();
+ newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
newXact.call_number = {
label : xact.circulation().target_copy().call_number().label(),
- prefix : xact.circulation().target_copy().call_number().prefix().label(),
- suffix : xact.circulation().target_copy().call_number().suffix().label(),
+ prefix : xact.circulation().target_copy().call_number().prefix().label(),
+ suffix : xact.circulation().target_copy().call_number().suffix().label(),
owning_lib : {
- name : xact.circulation().target_copy().call_number().owning_lib().name(),
- shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+ name : xact.circulation().target_copy().call_number().owning_lib().name(),
+ shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
}
}
}
print_data.circulations.push({
circ : egCore.idl.toHash(co.circ),
copy : egCore.idl.toHash(co.acp),
+ call_number : egCore.idl.toHash(co.acn), // Wrong?
+ owning_lib : egCore.idl.toHash(co.aou), // Wrong?
title : co.title,
author : co.author
});
- // Flesh selected fields of this circulation
- print_data.circulations[0].copy.call_number =
- egCore.idl.toHash(co.acn);
- print_data.circulations[0].copy.owning_lib =
- egCore.ils.toHash(co.aou);
};
});