From e0f69fbf1eaf06cd115e6a45261f7e2f54f9d6e4 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 5 Aug 2022 13:23:02 +0100 Subject: [PATCH] Bug 31162: Remove toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes the existing toolbar with 'New record' and 'New from Z39.50/SRU' and replaces the functionality with simple buttons on the page. We lose the ability to select the Framework or Z39.50/SRU server at this stage but one can still select these options from the resulting dialogues. Signed-off-by: Emmanuel Bétemps --- .../en/modules/cataloguing/cataloging-home.tt | 50 ++++++++----------- 1 file changed, 22 insertions(+), 28 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 46dadac6a8..1f925ec75e 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 @@ -1,6 +1,7 @@ [% USE raw %] [% USE Koha %] [% USE Branches %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Cataloging › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -24,47 +25,30 @@
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] -
-
- - - -
- [% IF servers.count > 0 %] -
- - - -
- [% END # /IF servers.count %] -
- [% END # /IF CAN_user_editcatalogue_edit_catalogue %] -

Cataloging

+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]

New

    +
  • + Basic editor +
  • [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
  • Advanced editor
  • [% END %] + [% IF servers.count > 0 %] +
  • + Z39.50/SRU +
  • + [% END %]
+ [% END %]

Import

@@ -94,7 +78,6 @@
-

Batch editing

@@ -179,4 +162,15 @@
+[% MACRO jsinclude BLOCK %] + + +[% END %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.20.1