From 032c503254a9282e6bb93da27287e06955271304 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 28 Mar 2022 19:21:55 +0000 Subject: [PATCH] Bug 30389: Switch to Bootstrap tabs on the page for adding orders from MARC file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch updates addorderiso2709.tt so that it uses Bootstrap tabs intead of jQuery. The patch contains indentation changes, so diff accordingly. To test apply the patch and go to Acquisitions -> Vendor -> Basket -> Add to basket -> From a staged file. - Click "Add orders" next to the staged file you want to use. - On the "Add orders" page, test that the tabs work correctly. Signed-off-by: Séverine Queune --- .../prog/en/modules/acqui/addorderiso2709.tt | 727 +++++++++--------- .../intranet-tmpl/prog/js/addorderiso2709.js | 1 - 2 files changed, 364 insertions(+), 364 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 44eb33ae7a..d27e36b70b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -62,402 +62,403 @@
-
    -
  • Select to import
  • -
  • Item information
  • -
  • Default accounting details
  • + -
    -
    -
    - Select all - | - Clear all - | - - - + + + [% FOREACH available_matcher IN available_matchers %] + [% IF ( available_matcher.code == current_matcher_code ) %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - - - | - - - - -
    -
    + + + | + + + + +
    +
- - - - - + + + + + - [% FOREACH biblio IN biblio_list %] -
- - - - ( MARC | Card | Add order ) - - -
-
    -
  1. - - [% IF ( biblio_lis.overlay_status == 'no_match' ) %] - No match - [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] - Match applied - [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %] - Match found + [% FOREACH biblio IN biblio_list %] +
    + + + + ( MARC | Card | Add order ) + + +
    +
      +
    1. + + [% IF ( biblio_lis.overlay_status == 'no_match' ) %] + No match + [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] + Match applied + [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %] + Match found + [% ELSE %] + [% biblio_lis.overlay_status | html %] + [% END %] + [% IF ( biblio.match_biblionumber ) %] + Matches biblio [% biblio.match_biblionumber | uri %] (score = [% biblio.match_score | html %]): [% biblio.match_citation | html %] + [% END %] + +
    2. +
    3. + + + Required +
    4. +
    5. + + +
    6. +
    7. + + +
    8. +
    9. + + % +
      If empty, discount rate from vendor will be used
      +
    10. +
    11. + [% IF ( close ) %] + + [% Budget_name | html %] [% ELSE %] - [% biblio_lis.overlay_status | html %] - [% END %] - [% IF ( biblio.match_biblionumber ) %] - Matches biblio [% biblio.match_biblionumber | uri %] (score = [% biblio.match_score | html %]): [% biblio.match_citation | html %] - [% END %] - -
    12. -
    13. - - - Required -
    14. -
    15. - - -
    16. -
    17. - - -
    18. -
    19. - - % -
      If empty, discount rate from vendor will be used
      -
    20. -
    21. - [% IF ( close ) %] - - [% Budget_name | html %] - [% ELSE %] - - + + [% FOREACH budget IN budget_loop %] + [% IF ( budget.b_id == biblio.budget_id ) %] + [% IF budget.b_active %] + + [% ELSE %] + [% END %] - [% END %] - [% END %] - - - [% END %] -
    22. -
    23. - - -
    24. -
    25. - - -
    26. -
    -
    -
    - [% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %] - [% FOREACH item IN biblio.iteminfos %] -
    - Item record [% item.item_id | html %] -
      -
    1. - - -
    2. + + [% END %] + +
    3. + + +
    4. +
    5. + + +
    6. +
    +
    +
    + [% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %] + [% FOREACH item IN biblio.iteminfos %] +
    + Item record [% item.item_id | html %] +
      +
    1. + + +
    2. -
    3. - - + [% FOREACH l IN libraries %] + [% IF l.branchcode == item.holdingbranch %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - -
    4. -
    5. - - +
    6. +
    7. + + -
    8. + + -
    9. - - -
    10. -
    11. - - -
    12. -
    13. - - +
    14. +
    15. + + +
    16. +
    17. + + -
    18. + + -
    19. - - + + [% FOREACH ccodeloo IN ccodeloop %] + [% IF ( ccodeloo.code ) == (item.ccode) %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - -
    20. + + -
    21. - - + + [% FOREACH n IN notforloanloop %] + [% IF n.code == item.notforloan %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - -
    22. -
    23. - - -
    24. -
    25. - - -
    26. -
    27. - - +
    28. +
    29. + + +
    30. +
    31. + + +
    32. +
    33. + + - Required -
    34. -
    35. - - -
    36. -
    37. - - -
    38. -
    39. - - -
    40. -
    -
    - [% END # /FOREACH item %] -
    -
    - - [% END # /FOREACH biblio %] -
  2. +
  3. + + +
  4. +
  5. + + +
  6. +
  7. + + +
  8. +
+
+ [% END # /FOREACH item %] - - - - + -
-

Item information

-

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

+ [% END # /FOREACH biblio %] + +
- [% IF ( items ) %] -
- Item - [% IF ( NoACQframework ) %] -
No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used
- [% END %] - [% FOREACH item IN items %] -
-
-
    - [% FOREACH iteminformatio IN item.iteminformation %] -
  1. -
    - [% IF (iteminformatio.mandatory) %] - - [% ELSE %] - - [% END %] +
    +

    Item information

    +

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

    + + [% IF ( items ) %] +
    + Item + [% IF ( NoACQframework ) %] +
    No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used
    + [% END %] + [% FOREACH item IN items %] +
    +
    +
      + [% FOREACH iteminformatio IN item.iteminformation %] +
    1. +
      + [% IF (iteminformatio.mandatory) %] + + [% ELSE %] + + [% END %] - [% IF ( iteminformatio.marc_value.type == 'select' ) %] - + [% FOREACH value IN iteminformatio.marc_value.values %] + [% IF ( value == iteminformatio.marc_value.default ) %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - - [% ELSE %] - [% iteminformatio.marc_value | $raw %] - [% END %] - - - - - - [% IF ( iteminformatio.mandatory ) %] - Required - [% END %] -
      -
    2. - [% END %] -
    -
    -
    - [% END #/FOREACH item %] -
    - [% END # /IF items %] -
    + + [% ELSE %] + [% iteminformatio.marc_value | $raw %] + [% END %] + + + + + + [% IF ( iteminformatio.mandatory ) %] + Required + [% END %] +
    +
  2. + [% END %] +
+
+
+ [% END #/FOREACH item %] +
+ [% 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):

-
- Accounting details -
    -
  1. - - -
  2. - [% IF ( close ) %] +
    +

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

    +
    + Accounting details +
    1. - Fund: - [% Budget_name | html %] + +
    2. - [% ELSE %] -
    3. - - [% Budget_name | html %] +
    4. + [% ELSE %] +
    5. + + + +
    6. +
    7. + + + + +
    8. + [% END #/IF close %] +
    9. + +
    10. - - - - + + +
    11. +
    12. +
      The 2 following fields are available for your own usage. They can be useful for statistical purposes
      + + +
    13. +
    14. + +
    15. - [% END #/IF close %] -
    16. - - -
    17. -
    18. - - -
    19. -
    20. -
      The 2 following fields are available for your own usage. They can be useful for statistical purposes
      - - -
    21. -
    22. - - -
    23. -
    -
    -
    +
+
+
diff --git a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js index 861c0db3a3..13cc116559 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js +++ b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js @@ -76,7 +76,6 @@ $(document).ready(function() { $(this.form).submit(); }); - $('#tabs').tabs(); $(".previewData").on("click", function(e){ e.preventDefault(); var ltitle = $(this).text(); -- 2.30.2