From 9d2b53c1b84cedbf264c9edf82b51f808396e1ac Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 7 Aug 2020 13:37:30 +0100 Subject: [PATCH] Bug 24201: (QA follow-up) IndependentBranches This patch updates the IndependentBranches template display logic such that the 'Select desk' and 'Select library and desk' options appear correctly when IndependentBranches is enabled. Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/includes/circ-nav.inc | 6 ++++-- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 13 ++++--------- .../prog/en/modules/circ/set-library.tt | 8 +++----- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc index 03b7c0bd0b..14931325fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc @@ -15,13 +15,15 @@ [% IF !Koha.Preference('IndependentBranchesTransfers') || CAN_user_superlibrarian %]
  • Transfer
  • [% END %] - [% IF ( AutoLocation ) %][% ELSE %][% IF ( IndependentBranches ) %][% ELSE %] + [% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %] [% IF Koha.Preference('UseCirculationDesks') %]
  • Set library and desk
  • [% ELSE %]
  • Set library
  • [% END %] - [% END %][% END %] + [% ELSIF Koha.Preference('UseCirculationDesks') %] +
  • Set desk
  • + [% END %] [% IF ( fast_cataloging ) %][% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
  • Fast cataloging
  • [% END %][% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 39642d1d11..494c70f8e0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -130,9 +130,8 @@ [% END %] + [% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %] - [% IF ( IndependentBranches ) %] - [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
  • [% IF Koha.Preference('UseCirculationDesks') %] Set library and desk @@ -140,14 +139,10 @@ Set library [% END %]
  • - [% END %] - [% ELSE %] + [% ELSIF Koha.Preference('UseCirculationDesks') %] +
  • - [% IF Koha.Preference('UseCirculationDesks') %] - Set library and desk - [% ELSE %] - Set library - [% END %] + Set desk
  • [% END %] [% IF EnableSearchHistory %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/set-library.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/set-library.tt index 3974687940..3d358bdb94 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/set-library.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/set-library.tt @@ -64,20 +64,18 @@ Updated: