From 0935c5d350b008ea0a4fe4da541f5cf3fffc9323 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Dec 2019 15:19:56 +0000 Subject: [PATCH] Bug 7882: (follow-up) Only show sortable icon for sortable tags Only tags which can be repeated can be sorted, so the "bars" icon should not display by these tags. Signed-off-by: Maryse Simard Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 481d51c51c71ba41fc518cc52ba6aec777e3332c) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/css/addbiblio.css | 13 +++++++++++-- .../prog/en/modules/cataloguing/addbiblio.tt | 12 ++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css index 99ade19239..ff79659a96 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css @@ -15,7 +15,7 @@ div#toolbar { margin: .3em 0; } -ul.sortable_field, ul.sortable_subfield { +.ui-tabs-panel ul { margin-bottom: 0; padding-left: 0; } @@ -26,7 +26,16 @@ ul li.tag, ul li.tag li.subfield_line { padding-left: 30px; } -ul li.tag::before, +ul li.tag::before { + position: absolute; + font-size: .8em; + top: 0; + left: 10px; + content: " "; +} + + +ul li.tag.sortable_tag::before, ul li.tag li.subfield_line::before { color: #999; cursor: move; 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 4eac7133bf..c23e5a9eda 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -680,9 +680,17 @@ [% END %] [% previous = innerloo.tag %] -
    + [% IF ( innerloo.repeatable ) %] +
      + [% ELSE %] +
        + [% END %] [% END %] -
      • + [% IF ( innerloo.repeatable ) %] +
      • + [% ELSE %] +
      • + [% END %]
        [% IF advancedMARCEditor %] [% innerloo.tag | html %] -- 2.39.5