From 57c88aa5be8aee96c0870330c85d4d727d84c837 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 16 Sep 2015 09:01:26 +0100 Subject: [PATCH] Bug 14829: Fix shortcuts in the cataloging and patron modules In these 2 modules, the shortcuts alt+q, alt+r and alt+u don't work as in other modules. The tab are not "built" in the correct order and the id returned to select the correct tab is wrong. Test plan: Go on the circ home page (circ/circulation-home.pl), the patron home page (members/members-home.pl) and the cataloging home page (cataloguing/addbooks.pl). On these 3 pages, without this patch, the shortcuts select different tabs. With this patch, the issue is fixed for all of them. Signed-off-by: Josef Moravec Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/includes/cataloging-search.inc | 3 ++- .../prog/en/includes/patron-search.inc | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc index 1fda946fde..4b6a9de45a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc @@ -10,6 +10,8 @@ + [% INCLUDE 'patron-search-box.inc' %] + [% IF ( CAN_user_circulate ) %] - [% INCLUDE 'patron-search-box.inc' %]
  • Cataloging search
  • [% IF ( CAN_user_circulate ) %]
  • Check out
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index bb09574759..e831487e12 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -114,14 +114,6 @@ [% INCLUDE 'patron-search-box.inc' %] - [% IF ( CAN_user_catalogue ) %] - [% END %] [% IF ( CAN_user_circulate ) %] [% END %] + + [% IF ( CAN_user_catalogue ) %] + [% END %] +