From 3e2eab46c259445ebbbf0df6df73600437c1b974 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 12 Feb 2021 19:34:05 +0000 Subject: [PATCH] Bug 27699: Add register information to responsive staff interface header menu This patch adds register information to the version of the header menu shown when the browser width is narrower. To test, apply the patch and enable the UseCashRegisters system preference. - If necessary, create at least one cash register for your library under Administration -> Cash registers. - From any page in the staff interface you should see a menu in the header showing your username and logged-in branch. - Expand the menu and choose "Set library, desk and register." - Select a cash register and save. - The cash register information should now appear in the header menu. - Narrow the width of the browser until the menu collapses and shows only a user icon. - When you expand this version of the menu you should see the currently-suggested register. --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 12deaa80ee..754ac0d294 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -141,6 +141,14 @@ [% END %] + [% IF Koha.Preference('UseCashRegisters') && !(Registers.session_register_name == '') %] +
  • + Register:
    + [% Registers.session_register_name | html %] + [% Registers.session_register_id | html %] +
  • + [% END %] + [% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
  • -- 2.11.0