diff --git a/circ/circulation.pl b/circ/circulation.pl index 44f87b6281..f6dd318f97 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -361,21 +361,18 @@ if (@$barcodes) { # if multiple hits, offer options to librarian if ( $total_hits > 0 ) { - my @options = (); + my @barcodes; foreach my $hit ( @{$results} ) { - my $chosen = + my $chosen = # Maybe easier to retrieve the itemnumber from $hit? TransformMarcToKoha( C4::Search::new_record_from_zebra('biblioserver',$hit) ); # offer all barcodes individually if ( $chosen->{barcode} ) { - foreach my $barcode ( sort split(/\s*\|\s*/, $chosen->{barcode}) ) { - my %chosen_single = %{$chosen}; - $chosen_single{barcode} = $barcode; - push( @options, \%chosen_single ); - } + push @barcodes, sort split(/\s*\|\s*/, $chosen->{barcode}); } } - $template_params->{options} = \@options; + my $items = Koha::Items->search({ barcode => {-in => \@barcodes}}); + $template_params->{options} = $items; } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 78d562371e..a8c9f8a04d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -480,11 +480,15 @@
- [% book.title | html %] - [% book.barcode | html %] + [% item.biblio.title | html %] + [% item.barcode | html %] + [% IF item.itemcallnumber %]Callnumber: [% item.itemcallnumber %][% END %] + [% IF item.copynumber %]Copy number: [% item.copynumber %][% END %] + [% IF item.stocknumber %]Inventory number: [% item.stocknumber %][% END %] + [% IF item.enumchron %]Serial enumeration: [% item.enumchron %][% END %] |