my $owning_lib = $copy->owning_lib ? $copy->owning_lib->shortname : '';
my $location = $copy->location ? $copy->location->name : '';
my $collection_code = $copy->collection_code || '';
+ my $barcode = $copy->barcode || '';
+
# When an ACQ copy links to a real copy (acp), treat the real
# copy as authoritative for certain fields.
($call_number eq $e_copy->{call_number}) &&
($owning_lib eq $e_copy->{owning_lib}) &&
($location eq $e_copy->{location}) &&
+ ($barcode eq $e_copy->{barcode}) &&
($collection_code eq $e_copy->{collection_code})
) {
$e_copy->{quantity}++;
call_number => $self->escape_edi($call_number),
owning_lib => $self->escape_edi($owning_lib),
location => $self->escape_edi($location),
+ barcode => $self->escape_edi($barcode),
collection_code => $self->escape_edi($collection_code),
copy_id => $copy->id, # for INCLUDE_COPY_ID
quantity => 1
field => 'location',
attr => 'INCLUDE_LOCATION',
empty_attr => 'INCLUDE_EMPTY_LOCATION'},
+ { code => 'LAC',
+ field => 'barcode',
+ attr => 'INCLUDE_ITEM_BARCODE'},
{ code => 'LQT',
field => 'quantity',
attr => 'INCLUDE_QUANTITY'}
('INCLUDE_ITEM_TYPE',
oils_i18n_gettext('INCLUDE_ITEM_TYPE',
'Orders Include Copy Item Types', 'aea', 'label')),
+ ('INCLUDE_ITEM_BARCODE',
+ oils_i18n_gettext('INCLUDE_ITEM_BARCODE',
+ 'Orders Include Copy Barcodes', 'aea', 'label')),
('INCLUDE_LOCATION',
oils_i18n_gettext('INCLUDE_LOCATION',
'Orders Include Copy Locations', 'aea', 'label')),
('INCLUDE_ITEM_TYPE',
oils_i18n_gettext('INCLUDE_ITEM_TYPE',
'Orders Include Copy Item Types', 'aea', 'label')),
+ ('INCLUDE_ITEM_BARCODE',
+ oils_i18n_gettext('INCLUDE_ITEM_BARCODE',
+ 'Orders Include Copy Barcodes', 'aea', 'label')),
('INCLUDE_LOCATION',
oils_i18n_gettext('INCLUDE_LOCATION',
'Orders Include Copy Locations', 'aea', 'label')),