From 25cf2142ef2b64cf4f1a621b574c176652ef6e2a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 16 Dec 2022 13:12:19 +0000 Subject: [PATCH] Bug 20473: Don't display 'Item information' tab when adding to basket from a file and not creating items This patch adds a conditional, and moves another up one level to remove the tab when it will have no content/effect To test: 1. Stage a MARC file from Tools > Stage MARC records for import 2. Go to Acquisitions and create a basket for a vendor 3. Add to basket from staged file 4. Note that the "item information" tab is present, if you click on it, not that it is not useful 5. Cancel adding to basket 6. Apply patch 7. Add to basket from the staged file again 8. Confirm there is no item information tab 9. Confirm orders are added on 'Save' Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit dcd6f549d94717367ff9b2bae22f078810f35785) Signed-off-by: Jacob O'Mara --- .../prog/en/modules/acqui/addorderiso2709.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 6151926baf..2e82165802 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -72,7 +72,9 @@
@@ -368,11 +370,11 @@
+ [% IF ( items ) %]

Item information

Import all the checked items in the basket with the following parameters:

- [% IF ( items ) %]
Item [% IF ( NoACQframework ) %] @@ -422,8 +424,8 @@ [% END #/FOREACH item %]
- [% END # /IF items %] + [% END # /IF items %]

Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):

-- 2.39.5