Bug 10758: Show title of deleted biblio on basket page
Test plan: Find a completed order line and a cancelled one with deleted biblios. Goto acqui/basket.pl Check if you see the title if deleted_biblionumber is filled. Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
d9fd2ec226
commit
62b48bb932
|
|
@ -41,6 +41,7 @@ use Koha::CsvProfiles;
|
|||
use Koha::Patrons;
|
||||
|
||||
use Koha::AdditionalFields;
|
||||
use Koha::Old::Biblios;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
|
@ -500,7 +501,8 @@ sub get_order_infos {
|
|||
$line{holds_on_order} = $itemholds ? $itemholds : $holds_count if $line{left_holds_on_order};
|
||||
$line{order_object} = $order;
|
||||
$line{invoice_object} = $invoice;
|
||||
|
||||
} else {
|
||||
$line{deleted_biblio} = Koha::Old::Biblios->find( $order->{deleted_biblionumber} );
|
||||
}
|
||||
|
||||
my $suggestion = GetSuggestionInfoFromBiblionumber($line{biblionumber});
|
||||
|
|
|
|||
|
|
@ -600,6 +600,9 @@
|
|||
[% IF ( books_loo.order_received ) %] <span class="order-received">(received)</span>[% END %]
|
||||
[% IF books_loo.title %]
|
||||
[% INCLUDE 'biblio-title.inc' biblio=books_loo link = 1 %] [% IF books_loo.author %] by [% books_loo.author | html %][% END %]
|
||||
[% ELSIF books_loo.deleted_biblio %]
|
||||
[% INCLUDE 'biblio-title.inc' biblio=books_loo.deleted_biblio %]
|
||||
<br/>(Deleted bibliographic record)
|
||||
[% ELSE %]
|
||||
<em>Deleted bibliographic record, can't find title</em><br />
|
||||
[%- END %]
|
||||
|
|
@ -791,6 +794,9 @@
|
|||
[% IF ( order.order_received ) %] <span class="order-received">(received)</span>[% END %]
|
||||
[% IF (order.title) %]
|
||||
[% order.title | html %][% IF order.author %] by [% order.author | html %][% END %]
|
||||
[% ELSIF order.deleted_biblio %]
|
||||
[% INCLUDE 'biblio-title.inc' biblio=order.deleted_biblio %]
|
||||
<br/>(Deleted bibliographic record)
|
||||
[% ELSE %]
|
||||
<em>Deleted bibliographic record, can't find title</em>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue