@@ -, +, @@ --- circ/pendingreserves.pl | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) --- a/circ/pendingreserves.pl +++ a/circ/pendingreserves.pl @@ -31,6 +31,7 @@ use C4::Context; use C4::Output; use CGI qw ( -utf8 ); use C4::Auth; +use C4::Biblio; use C4::Debug; use Koha::DateUtils; use DateTime::Duration; @@ -152,6 +153,10 @@ if ( $run_report ) { $sth->execute(@query_params); while ( my $data = $sth->fetchrow_hashref ) { + my $record = GetMarcBiblio($data->{biblionumber}); + if ($record){ + $data->{subtitle} = [ map { $_->{subfield} } @{ GetRecordValue( 'subtitle', $record, '' ) } ]; + } push( @reservedata, { @@ -159,6 +164,7 @@ if ( $run_report ) { priority => $data->{priority}, name => $data->{l_patron}, title => $data->{title}, + subtitle => $data->{subtitle}, author => $data->{author}, borrowernumber => $data->{borrowernumber}, itemnum => $data->{itemnumber}, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt @@ -114,7 +114,7 @@ $(document).ready(function() {

[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] - [% reserveloo.title |html %]

+ [% reserveloo.title |html %] [% FOREACH s IN reserveloo.subtitle %] [% s %][% END %]

[% IF ( reserveloo.author ) %]

by [% reserveloo.author %]

[% END %] [% ELSE %] --