From 7bb8704e2d71e3db4a5b2df6d69910a4baaf5811 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Thu, 17 Apr 2014 20:28:15 +0200 Subject: [PATCH 3/3] Followup : update the receipt page (parcel.tt) Content-Type: text/plain; charset="utf-8" In main patch, I forgot to made some changes in the parcel.tt page This patch fixes that bu giving the librarian the ability to cancel an order in receipt page if the record is deleted. It also displays the message "Deleted bibliographic record, can't find title" in Summary Note that this behavior will be improved by bug 10758 To test : - create a basket and an order - delete the record used by that order - go on receipt page - in the line matching this order, you should see instead of the title "Deleted bibliographic record, can't find title" - click on "Delete order" : you should be able to delete the order - go to the basket, to check the order was properly cancelled - in receipt page, try to delete an other order (always linked to a record), to be sure there is no regression --- .../intranet-tmpl/prog/en/modules/acqui/parcel.tt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index b537148..3b0fc46 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -265,7 +265,11 @@ [% loop_order.ordernumber %] - [% loop_order.title |html %] + [% IF (books_loo.biblionumber) %] + [% loop_order.title |html %] + [% ELSE %] + Deleted bibliographic record, can't find title
+ [% END %] [% IF ( loop_order.author ) %] by [% loop_order.author %][% END %] [% IF ( loop_order.isbn ) %] – [% loop_order.isbn %][% END %] [% IF ( loop_order.publishercode ) %]
Publisher :[% loop_order.publishercode %][% END %] @@ -292,6 +296,9 @@ Transfer + [% UNLESS (books_loo.biblionumber) %] + Delete order
+ [% ELSE %] [% IF ( loop_order.left_holds_on_order ) %] Can't delete order
[% ELSE %] @@ -314,6 +321,7 @@ [% IF ( loop_order.left_holds ) %] [% loop_order.holds %] hold(s) left [% END %] + [% END %] [% END %] -- 1.7.9.5