View | Details | Raw Unified | Return to bug 35425
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css (-9 / +5 lines)
Lines 40-59 ul li.tag::before { Link Here
40
    top: 0;
40
    top: 0;
41
}
41
}
42
42
43
ul li.tag.sortable_tag::before,
43
ul .handle {
44
ul li.tag li.subfield_line::before {
45
    color: #999;
44
    color: #999;
46
    content: "\f58e";
47
    cursor: move;
45
    cursor: move;
48
    font-family: "Font Awesome 6 Free";
46
    font-family: "Font Awesome 6 Free";
49
    font-size: .8em;
47
    font-size: 1em;
50
    left: 10px;
48
    padding-right: 3px;
51
    position: absolute;
52
    top: -3px;
53
}
49
}
54
50
55
ul li.tag li.subfield_line::before {
51
ul li.subfield_line .handle {
56
    top: 3px;
52
    font-size: .8em;
57
}
53
}
58
54
59
li.sortable-ghost {
55
li.sortable-ghost {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-10 / +14 lines)
Lines 78-94 Link Here
78
            selectTab( "#tab0XX_panel" );
78
            selectTab( "#tab0XX_panel" );
79
        }
79
        }
80
80
81
        $("#addbibliotabs ul.sortable_field").each( (i, e) => {
81
        function initializeSortable(selector) {
82
            Sortable.create(e, {
82
            $(selector).each((i, e) => {
83
                animation: 150
83
                Sortable.create(e, {
84
                    handle: '.handle',
85
                    direction: 'vertical',
86
                    animation: 150,
87
                });
84
            });
88
            });
85
        });
89
        }
86
90
        initializeSortable("#addbibliotabs ul.sortable_field");
87
        $("#addbibliotabs ul.sortable_subfield").each( (i, e) => {
91
        initializeSortable("#addbibliotabs ul.sortable_subfield");
88
            Sortable.create(e, {
89
                animation: 150
90
            });
91
        });
92
92
93
        [% IF tab %]
93
        [% IF tab %]
94
            hash = "#[% tab | html %]";
94
            hash = "#[% tab | html %]";
Lines 1089-1094 $(document).ready(function(){ Link Here
1089
                                            <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1089
                                            <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1090
                                        [% END %]
1090
                                        [% END %]
1091
                                            <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1091
                                            <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1092
                                                [% IF ( innerloo.repeatable ) %]
1093
                                                <span class="handle">&#xf58e;</span>
1094
                                                [% END %]
1092
                                                [% IF advancedMARCEditor %]
1095
                                                [% IF advancedMARCEditor %]
1093
                                                    <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">[% innerloo.tag | html %]</a>
1096
                                                    <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">[% innerloo.tag | html %]</a>
1094
                                                [% ELSE %]
1097
                                                [% ELSE %]
Lines 1151-1156 $(document).ready(function(){ Link Here
1151
                                                <!--  One line on the marc editor -->
1154
                                                <!--  One line on the marc editor -->
1152
                                                <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
1155
                                                <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
1153
                                                    <div class="subfieldcode">
1156
                                                    <div class="subfieldcode">
1157
                                                        <span class="handle">&#xf58e;</span>
1154
                                                        <input type="text"
1158
                                                        <input type="text"
1155
                                                                title="[% subfield_loo.marc_lib | $raw %]"
1159
                                                                title="[% subfield_loo.marc_lib | $raw %]"
1156
                                                                style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
1160
                                                                style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +2 lines)
Lines 326-331 function CloneField(index, hideMarc, advancedMARCEditor) { Link Here
326
326
327
    $(clone).find("ul.sortable_subfield").each((i, e) => {
327
    $(clone).find("ul.sortable_subfield").each((i, e) => {
328
        Sortable.create(e, {
328
        Sortable.create(e, {
329
            handle: '.handle',
330
            direction: 'vertical',
329
            animation: 150,
331
            animation: 150,
330
        });
332
        });
331
    });
333
    });
332
- 

Return to bug 35425