From fdd4ee066e320a56b1e5bdce11c10b3bf9189749 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 22 Aug 2022 13:58:48 +0100 Subject: [PATCH] Bug 31162: More conditionals for sections This adds missing conditionals to the section headings in the new cataloging homepage. Signed-off-by: Katrin Fischer --- .../en/modules/cataloguing/cataloging-home.tt | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt index e3d60da114..40f425ce65 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt @@ -30,9 +30,9 @@
+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]

New

-
    [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
  • @@ -50,8 +50,8 @@
[% END %] + [% IF ( CAN_user_tools_stage_marc_import || CAN_user_tools_manage_staged_marc ) %]

Import

-
    [% IF ( CAN_user_tools_stage_marc_import ) %]
  • @@ -65,9 +65,10 @@
  • [% END %]
+ [% END %] + [% IF ( CAN_user_tools_export_catalog ) %]

Export

-
    [% IF ( CAN_user_tools_export_catalog ) %]
  • @@ -75,12 +76,14 @@
  • [% END %]
+ [% END %]
-

Batch editing

+ [% IF ( CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel || CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel || CAN_user_tools_marc_modification_templates ) %] +

Batch editing

    [% IF ( CAN_user_tools_items_batchmod ) %]
  • @@ -109,11 +112,14 @@
  • [% END %]
+ [% END %] +
-

Reports

+ [% IF ( CAN_user_tools_inventory ) %] +

Reports

    [% IF ( CAN_user_tools_inventory ) %]
  • @@ -121,11 +127,11 @@
  • [% END %]
+ [% END %] + [% IF ( CAN_user_tools_label_creator ) %]

Tools

- + [% END %] + [% IF ( CAN_user_tools_items_batchmod || ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) ) %]

Automations

-
    [% IF ( CAN_user_tools_items_batchmod ) %]
  • @@ -155,6 +160,7 @@
  • [% END %]
+ [% END %]
-- 2.20.1