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