Bugzilla – Attachment 165229 Details for
Bug 10758
Show bibliographic information of deleted records in acquisition baskets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10758: Show title of deleted biblio on basket page
Bug-10758-Show-title-of-deleted-biblio-on-basket-p.patch (text/plain), 3.74 KB, created by
Emily Lamancusa (emlam)
on 2024-04-19 19:15:17 UTC
(
hide
)
Description:
Bug 10758: Show title of deleted biblio on basket page
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2024-04-19 19:15:17 UTC
Size:
3.74 KB
patch
obsolete
>From b095fbfba8f70acc68436cae29edbbf0097a6c4d Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 12 Feb 2024 08:01:26 +0000 >Subject: [PATCH] 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> >--- > acqui/basket.pl | 4 +++- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 6 ++++++ > 2 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/acqui/basket.pl b/acqui/basket.pl >index 6401125d01..fa22520c63 100755 >--- a/acqui/basket.pl >+++ b/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}); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index fdadf42c66..a41111c115 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/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 %] >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10758
:
21296
|
22106
|
26830
|
26832
|
27273
|
27312
|
27313
|
27314
|
27315
|
28514
|
28515
|
29667
|
30551
|
30552
|
30623
|
95782
|
162016
|
162034
| 165229