Lines 246-255
sub arguments_for_command {
Link Here
|
246 |
sub kocIssueItem { |
246 |
sub kocIssueItem { |
247 |
my $circ = shift; |
247 |
my $circ = shift; |
248 |
|
248 |
|
249 |
$circ->{ 'barcode' } = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
249 |
$circ->{barcode} = barcodedecode( $circ->{barcode} ) if $circ->{barcode}; |
250 |
|
|
|
251 |
my ( $new_barcode ) = Koha::Plugins->call( 'item_barcode_transform', $circ->{barcode} ) || $circ->{barcode}; |
252 |
$circ->{barcode} = $new_barcode; |
253 |
|
250 |
|
254 |
my $branchcode = C4::Context->userenv->{branch}; |
251 |
my $branchcode = C4::Context->userenv->{branch}; |
255 |
my $patron = Koha::Patrons->find( { cardnumber => $circ->{cardnumber} } ); |
252 |
my $patron = Koha::Patrons->find( { cardnumber => $circ->{cardnumber} } ); |
Lines 330-339
sub kocIssueItem {
Link Here
|
330 |
|
327 |
|
331 |
sub kocReturnItem { |
328 |
sub kocReturnItem { |
332 |
my ( $circ ) = @_; |
329 |
my ( $circ ) = @_; |
333 |
$circ->{'barcode'} = barcodedecode($circ->{'barcode'}) if( $circ->{'barcode'} && C4::Context->preference('itemBarcodeInputFilter')); |
|
|
334 |
|
330 |
|
335 |
my ( $new_barcode ) = Koha::Plugins->call( 'item_barcode_transform', $circ->{barcode} ) || $circ->{barcode}; |
331 |
$circ->{barcode} = barcodedecode( $circ->{barcode} ) if $circ->{barcode}; |
336 |
$circ->{barcode} = $new_barcode; |
|
|
337 |
|
332 |
|
338 |
my $item = Koha::Items->find({ barcode => $circ->{barcode} }); |
333 |
my $item = Koha::Items->find({ barcode => $circ->{barcode} }); |
339 |
my $biblio = $item->biblio; |
334 |
my $biblio = $item->biblio; |