Browse Source

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>
24.05.x
Marcel de Rooy 4 months ago
committed by Katrin Fischer
parent
commit
62b48bb932
Signed by: kfischer GPG Key ID: 0EF6E2C03357A834
  1. 4
      acqui/basket.pl
  2. 6
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

4
acqui/basket.pl

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

6
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

@ -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…
Cancel
Save