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>
(cherry picked from commit 62b48bb932)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2024-02-12 08:01:26 +00:00 committed by Fridolin Somers
parent b170582325
commit da63c8d23d
2 changed files with 9 additions and 1 deletions

View File

@ -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});

View File

@ -573,6 +573,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 %]
@ -764,6 +767,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 %]