From cdd14f05ae8672786e5306c41ff0f15ec9fed26f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 6 Feb 2019 04:31:28 +0000 Subject: [PATCH] Bug 21335: Remove redundant includes of right-to-left.css Fixes redundant includes of the right-to-left.css file. There is no need to include it in the .tt files as it's part of the doc-head-close.inc. Note: Make sure your *BaseURL preferences are correctly set as this will make the switching between languages work correctly and throw you back to the start page otherwise every time you switch Test: - Install an RTL language like Arabic (ar-Arab) - Test various pages with English and RTL language: - Authorities home page - Adding a new bibliographic record - Adding a new item or editing items - Advanced cataloguing (Rancor) editor - Labels start page - OPAC detail page - Verify display is correct and right-to-left.css is available Signed-off-by: Owen Leonard Signed-off-by: Charles Farmer Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 3 --- .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 3 --- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 3 --- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt | 3 --- koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt | 3 --- 5 files changed, 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index b0856b9db7..2a626c01ba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -168,9 +168,6 @@ function confirmnotdup(redirect){ }); -[% IF ( bidi ) %] - [% Asset.css("css/right-to-left.css") | $raw %] -[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 41326ab235..de2429b8ff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -405,9 +405,6 @@ function Changefwk() { }); -[% IF ( bidi ) %] - [% Asset.css("css/right-to-left.css") | $raw %] -[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 671668bd7e..2820c4c5db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -139,9 +139,6 @@ function confirm_deletion() { }); -[% IF ( bidi ) %] - [% Asset.css("css/right-to-left.css") | $raw %] -[% END %] [% INCLUDE 'header.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt index ff16b20e5f..5181cdf22e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt @@ -8,9 +8,6 @@ [% Asset.css("css/humanmsg.css") | $raw %] [% Asset.js("js/cataloging.js") | $raw %] [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] -[% IF ( bidi ) %] - [% Asset.css("css/right-to-left.css") | $raw %] -[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt index eb5b9f306b..f4898fcb6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt @@ -4,9 +4,6 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Label creator [% INCLUDE 'doc-head-close.inc' %] - [% IF ( bidi ) %] - [% Asset.css("css/right-to-left.css") | $raw %] - [% END %] [% INCLUDE 'header.inc' %] -- 2.39.5