Lines 25-30
use C4::Output;
Link Here
|
25 |
use C4::Biblio; # GetBiblio |
25 |
use C4::Biblio; # GetBiblio |
26 |
use C4::Search; # enabled_staff_search_views |
26 |
use C4::Search; # enabled_staff_search_views |
27 |
use Koha::Checkouts; |
27 |
use Koha::Checkouts; |
|
|
28 |
use Koha::Old::Checkouts; |
28 |
|
29 |
|
29 |
use Koha::Biblios; |
30 |
use Koha::Biblios; |
30 |
|
31 |
|
Lines 41-57
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
41 |
|
42 |
|
42 |
my $biblionumber = $query->param('biblionumber'); |
43 |
my $biblionumber = $query->param('biblionumber'); |
43 |
|
44 |
|
44 |
my $checkouts = Koha::Checkouts->search( |
45 |
my @checkouts = Koha::Checkouts->search( |
45 |
{ biblionumber => $biblionumber }, |
46 |
{ biblionumber => $biblionumber }, |
46 |
{ |
47 |
{ |
47 |
join => 'item', |
48 |
join => 'item', |
48 |
order_by => 'timestamp', |
49 |
order_by => 'timestamp', |
49 |
} |
50 |
} |
50 |
); |
51 |
); |
|
|
52 |
my @old_checkouts = Koha::Old::Checkouts->search( |
53 |
{ biblionumber => $biblionumber }, |
54 |
{ |
55 |
join => 'item', |
56 |
order_by => 'timestamp', |
57 |
} |
58 |
); |
59 |
|
51 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
60 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
52 |
|
61 |
|
53 |
$template->param( |
62 |
$template->param( |
54 |
checkouts => $checkouts, |
63 |
checkouts => [ @checkouts, @old_checkouts ], |
55 |
biblio => $biblio, |
64 |
biblio => $biblio, |
56 |
issuehistoryview => 1, |
65 |
issuehistoryview => 1, |
57 |
C4::Search::enabled_staff_search_views, |
66 |
C4::Search::enabled_staff_search_views, |