my $fund = $copy->fund ? $copy->fund->code : '';
my $item_type = $copy->circ_modifier || '';
my $call_number = $copy->cn_label || '';
- my $owning_lib = $copy->owning_lib ? $copy->owning_lib->shortname : '';
+ my $owning_lib = $copy->owning_lib ?
+ $self->{compiled}->{edi_attrs}->{USE_ID_FOR_OWNING_LIB} ?
+ $copy->owning_lib->id :
+ $copy->owning_lib->shortname :
+ '';
my $location = $copy->location ? $copy->location->name : '';
my $collection_code = $copy->collection_code || '';
my $barcode = $copy->barcode || '';
('INCLUDE_OWNING_LIB',
oils_i18n_gettext('INCLUDE_OWNING_LIB',
'Orders Include Copy Owning Library', 'aea', 'label')),
+ ('USE_ID_FOR_OWNING_LIB',
+ oils_i18n_gettext('USE_ID_FOR_OWNING_LIB',
+ 'Emit Owning Library ID Rather Than Short Name. Takes effect only if INCLUDE_OWNING_LIB is in use', 'aea', 'label')),
('INCLUDE_QUANTITY',
oils_i18n_gettext('INCLUDE_QUANTITY',
'Orders Include Copy Quantities', 'aea', 'label')),
('INCLUDE_OWNING_LIB',
oils_i18n_gettext('INCLUDE_OWNING_LIB',
'Orders Include Copy Owning Library', 'aea', 'label')),
+ ('USE_ID_FOR_OWNING_LIB',
+ oils_i18n_gettext('USE_ID_FOR_OWNING_LIB',
+ 'Emit Owning Library ID Rather Than Short Name. Takes effect only if INCLUDE_OWNING_LIB is in use', 'aea', 'label')),
('INCLUDE_QUANTITY',
oils_i18n_gettext('INCLUDE_QUANTITY',
'Orders Include Copy Quantities', 'aea', 'label')),