Lines 22-28
use Mojo::Base 'Mojolicious::Controller';
Link Here
|
22 |
use Koha::Acquisition::Orders; |
22 |
use Koha::Acquisition::Orders; |
23 |
use Koha::DateUtils; |
23 |
use Koha::DateUtils; |
24 |
|
24 |
|
25 |
use Clone 'clone'; |
|
|
26 |
use JSON qw(decode_json); |
25 |
use JSON qw(decode_json); |
27 |
use Scalar::Util qw( blessed ); |
26 |
use Scalar::Util qw( blessed ); |
28 |
use Try::Tiny; |
27 |
use Try::Tiny; |
Lines 69-75
sub list {
Link Here
|
69 |
my ( $filtered_params, $reserved_params, $path_params ) = $c->extract_reserved_params($args); |
68 |
my ( $filtered_params, $reserved_params, $path_params ) = $c->extract_reserved_params($args); |
70 |
# Look for embeds |
69 |
# Look for embeds |
71 |
my $embed = $c->stash('koha.embed'); |
70 |
my $embed = $c->stash('koha.embed'); |
72 |
my $fixed_embed = clone($embed); |
71 |
my $fixed_embed = {%$embed}; |
73 |
if ( exists $fixed_embed->{biblio} ) { |
72 |
if ( exists $fixed_embed->{biblio} ) { |
74 |
# Add biblioitems to prefetch |
73 |
# Add biblioitems to prefetch |
75 |
# FIXME remove if we merge biblio + biblioitems |
74 |
# FIXME remove if we merge biblio + biblioitems |
76 |
- |
|
|