Bugzilla – Attachment 192963 Details for
Bug 41563
Tidy kohaTable block - acqui
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41563: (follow-up 2) Tidy parcel.tt
9ee2576.patch (text/plain), 3.27 KB, created by
Jonathan Druart
on 2026-02-11 08:12:37 UTC
(
hide
)
Description:
Bug 41563: (follow-up 2) Tidy parcel.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-02-11 08:12:37 UTC
Size:
3.27 KB
patch
obsolete
>From 9ee25761abb85521d7c95608fc13b6f559f90f9c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 Feb 2026 09:12:18 +0100 >Subject: [PATCH] Bug 41563: (follow-up 2) Tidy parcel.tt > >--- > .../prog/en/modules/acqui/parcel.tt | 28 +++++++++---------- > 1 file changed, 14 insertions(+), 14 deletions(-) > >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 44db2420383..e1aaff96097 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >@@ -627,20 +627,20 @@ > "</a><br/>"; > } > >- if ( row.biblio != null ) { >- if ( row.biblio.items_count - row.items.length > 0 || >- row.biblio.uncancelled_orders_count > 1 || >- row.biblio.subscriptions_count > 0 || >- row.biblio.holds_count > 0 ) { // biblio can be deleted >- result += '<span class="button" title="' >- + _("Can't delete catalog record, see constraints below") + '">' >- + _("Can't cancel order and delete catalog record") + '</span><br>'; >- } >- else { >- result += '<a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=' >- + encodeURIComponent(row.order_id) + '&biblionumber=' + encodeURIComponent(row.biblio_id) >- + '&del_biblio=1&referrer=/cgi-bin/koha/acqui/parcel.pl?invoiceid=' + invoide_id >- + _("Cancel order and catalog record") + '</a><br/>'; >+ if (row.biblio != null) { >+ if (row.biblio.items_count - row.items.length > 0 || row.biblio.uncancelled_orders_count > 1 || row.biblio.subscriptions_count > 0 || row.biblio.holds_count > 0) { >+ // biblio can be deleted >+ result += '<span class="button" title="' + _("Can't delete catalog record, see constraints below") + '">' + _("Can't cancel order and delete catalog record") + "</span><br>"; >+ } else { >+ result += >+ '<a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=' + >+ encodeURIComponent(row.order_id) + >+ "&biblionumber=" + >+ encodeURIComponent(row.biblio_id) + >+ "&del_biblio=1&referrer=/cgi-bin/koha/acqui/parcel.pl?invoiceid=" + >+ invoide_id + >+ _("Cancel order and catalog record") + >+ "</a><br/>"; > } > > if (row.biblio.items_count - row.items.length > 0) { >-- >2.43.0 >
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 41563
:
191069
|
191070
|
191071
|
191072
|
191073
|
191074
|
191075
|
191076
|
191077
|
191078
|
191079
|
191080
|
191290
|
191291
|
191292
|
191293
|
191294
|
191295
|
191296
|
191297
|
191298
|
191299
|
191300
|
191301
|
191302
|
191303
|
192026
|
192730
|
192731
|
192748
|
192749
|
192750
|
192751
|
192752
|
192753
|
192754
|
192755
|
192756
|
192757
|
192758
|
192759
|
192760
|
192761
|
192762
| 192963