Lines 248-254
sub kocIssueItem {
Link Here
|
248 |
|
248 |
|
249 |
$circ->{ 'barcode' } = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
249 |
$circ->{ 'barcode' } = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
250 |
|
250 |
|
251 |
my ( $new_barcode ) = Koha::Plugins->call( 'barcode_transform', 'item', $circ->{barcode} ) || $circ->{barcode}; |
251 |
my ( $new_barcode ) = Koha::Plugins->call( 'item_barcode_transform', $circ->{barcode} ) || $circ->{barcode}; |
252 |
$circ->{barcode} = $new_barcode; |
252 |
$circ->{barcode} = $new_barcode; |
253 |
|
253 |
|
254 |
my $branchcode = C4::Context->userenv->{branch}; |
254 |
my $branchcode = C4::Context->userenv->{branch}; |
Lines 332-338
sub kocReturnItem {
Link Here
|
332 |
my ( $circ ) = @_; |
332 |
my ( $circ ) = @_; |
333 |
$circ->{'barcode'} = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
333 |
$circ->{'barcode'} = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
334 |
|
334 |
|
335 |
my ( $new_barcode ) = Koha::Plugins->call( 'barcode_transform', 'item', $circ->{barcode} ) || $circ->{barcode}; |
335 |
my ( $new_barcode ) = Koha::Plugins->call( 'item_barcode_transform', $circ->{barcode} ) || $circ->{barcode}; |
336 |
$circ->{barcode} = $new_barcode; |
336 |
$circ->{barcode} = $new_barcode; |
337 |
|
337 |
|
338 |
my $item = Koha::Items->find({ barcode => $circ->{barcode} }); |
338 |
my $item = Koha::Items->find({ barcode => $circ->{barcode} }); |