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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc (-24 / +5 lines)
Lines 1-28 Link Here
1
<div id="labels-menu" class="sidebar_menu">
1
<div id="labels-menu" class="sidebar_menu">
2
    <ul>
2
    <ul>
3
        [% IF ( label_element_title == "Batches" ) %]
3
        <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a></li>
4
            <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a></li>
4
        <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Label layouts</a></li>
5
        [% ELSE -%]
5
        <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a></li>
6
            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a></li>
6
        <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a></li>
7
        [% END %]
7
        <li><a href="/cgi-bin/koha/labels/label-edit-range.pl">Print barcode range</a></li>
8
9
        [% IF ( label_element_title == "Layouts" ) %]
10
            <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Label layouts</a></li>
11
        [% ELSE -%]
12
            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Label layouts</a></li>
13
        [% END %]
14
15
        [% IF ( label_element_title == "Templates" ) %]
16
            <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a></li>
17
        [% ELSE -%]
18
            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a></li>
19
        [% END %]
20
21
        [% IF ( label_element_title == "Profiles" ) %]
22
            <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a></li>
23
        [% ELSE -%]
24
            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a></li>
25
        [% END %]
26
27
    </ul>
8
    </ul>
28
</div> <!-- /.sidebar_menu -->
9
</div> <!-- /.sidebar_menu -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc (-2 / +1 lines)
Lines 3-12 Link Here
3
        <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New</button>
3
        <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New</button>
4
        <ul class="dropdown-menu">
4
        <ul class="dropdown-menu">
5
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=new">Label batch</a></li>
5
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=new">Label batch</a></li>
6
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-layout.pl?op=new">Layout</a></li>
6
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-layout.pl?op=new">Label layout</a></li>
7
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-template.pl?op=new">Label template</a></li>
7
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-template.pl?op=new">Label template</a></li>
8
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">Printer profile</a></li>
8
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">Printer profile</a></li>
9
            <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-range.pl">Barcode range</a></li>
10
        </ul>
9
        </ul>
11
    </div>
10
    </div>
12
</div>
11
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-2 / +3 lines)
Lines 11-17 Link Here
11
        [% ELSE %]
11
        [% ELSE %]
12
            [% t("New label batch") | html %]
12
            [% t("New label batch") | html %]
13
        [% END %] &rsaquo;
13
        [% END %] &rsaquo;
14
            [% t("Batches") | html %] &rsaquo;
14
            [% t("Label batches") | html %] &rsaquo;
15
        [% t("Label creator") | html %] &rsaquo;
15
        [% t("Label creator") | html %] &rsaquo;
16
        [% t("Cataloging") | html %] &rsaquo;
16
        [% t("Cataloging") | html %] &rsaquo;
17
        [% t("Koha") | html %]
17
        [% t("Koha") | html %]
Lines 33-39 Link Here
33
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
33
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
34
        [% END %]
34
        [% END %]
35
        [% WRAPPER breadcrumb_item %]
35
        [% WRAPPER breadcrumb_item %]
36
            <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Batches</a>
36
            <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a>
37
        [% END %]
37
        [% END %]
38
        [% WRAPPER breadcrumb_item bc_active= 1 %]
38
        [% WRAPPER breadcrumb_item bc_active= 1 %]
39
            [% IF description %]
39
            [% IF description %]
Lines 221-226 Link Here
221
    [% INCLUDE 'greybox.inc' %]
221
    [% INCLUDE 'greybox.inc' %]
222
    [% INCLUDE 'datatables.inc' %]
222
    [% INCLUDE 'datatables.inc' %]
223
    [% Asset.js("js/form-submit.js") | $raw %]
223
    [% Asset.js("js/form-submit.js") | $raw %]
224
    [% Asset.js("js/labels-menu.js") | $raw %]
224
    <script>
225
    <script>
225
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
226
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
226
            $(".focus:last").select();
227
            $(".focus:last").select();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-2 / +3 lines)
Lines 18-24 Link Here
18
        [% ELSE %]
18
        [% ELSE %]
19
            [% t("New label layout") | html %]
19
            [% t("New label layout") | html %]
20
        [% END %] &rsaquo;
20
        [% END %] &rsaquo;
21
        [% t("Layouts") | html %] &rsaquo;
21
        [% t("Label layouts") | html %] &rsaquo;
22
        [% t("Label creator") | html %] &rsaquo;
22
        [% t("Label creator") | html %] &rsaquo;
23
        [% t("Cataloging") | html %] &rsaquo;
23
        [% t("Cataloging") | html %] &rsaquo;
24
        [% t("Koha") | html %]
24
        [% t("Koha") | html %]
Lines 47-53 Link Here
47
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
47
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
48
        [% END %]
48
        [% END %]
49
        [% WRAPPER breadcrumb_item %]
49
        [% WRAPPER breadcrumb_item %]
50
            <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a>
50
            <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Label layouts</a>
51
        [% END %]
51
        [% END %]
52
        [% WRAPPER breadcrumb_item bc_active= 1 %]
52
        [% WRAPPER breadcrumb_item bc_active= 1 %]
53
            [% IF ( layout_id ) %]
53
            [% IF ( layout_id ) %]
Lines 234-239 Link Here
234
</div> <!-- /.main.container-fluid -->
234
</div> <!-- /.main.container-fluid -->
235
235
236
[% MACRO jsinclude BLOCK %]
236
[% MACRO jsinclude BLOCK %]
237
    [% Asset.js("js/labels-menu.js") | $raw %]
237
    <script>
238
    <script>
238
        $(document).ready(function() {
239
        $(document).ready(function() {
239
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
240
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-2 / +3 lines)
Lines 9-15 Link Here
9
        [% ELSE %]
9
        [% ELSE %]
10
            [% t("New printer profile") | html %]
10
            [% t("New printer profile") | html %]
11
        [% END%] &rsaquo;
11
        [% END%] &rsaquo;
12
        [% t("Profiles") | html %] &rsaquo;
12
        [% t("Printer profiles") | html %] &rsaquo;
13
        [% t("Label creator") | html %] &rsaquo;
13
        [% t("Label creator") | html %] &rsaquo;
14
        [% t("Cataloging") | html %] &rsaquo;
14
        [% t("Cataloging") | html %] &rsaquo;
15
        [% t("Koha") | html %]
15
        [% t("Koha") | html %]
Lines 31-37 Link Here
31
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
31
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
32
        [% END %]
32
        [% END %]
33
        [% WRAPPER breadcrumb_item %]
33
        [% WRAPPER breadcrumb_item %]
34
                <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a>
34
                <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a>
35
        [% END %]
35
        [% END %]
36
        [% WRAPPER breadcrumb_item bc_active= 1 %]
36
        [% WRAPPER breadcrumb_item bc_active= 1 %]
37
            [% IF ( profile_id ) %]
37
            [% IF ( profile_id ) %]
Lines 154-159 Link Here
154
</div> <!-- /.main.container-fluid -->
154
</div> <!-- /.main.container-fluid -->
155
155
156
[% MACRO jsinclude BLOCK %]
156
[% MACRO jsinclude BLOCK %]
157
    [% Asset.js("js/labels-menu.js") | $raw %]
157
    <script>
158
    <script>
158
        $(document).ready(function(){
159
        $(document).ready(function(){
159
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
160
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-2 / +3 lines)
Lines 9-15 Link Here
9
        [% ELSE %]
9
        [% ELSE %]
10
            [% t("New label template") | html %]
10
            [% t("New label template") | html %]
11
        [% END %] &rsaquo;
11
        [% END %] &rsaquo;
12
        [% t("Templates") | html %] &rsaquo;
12
        [% t("Label templates") | html %] &rsaquo;
13
        [% t("Label creator") | html %] &rsaquo;
13
        [% t("Label creator") | html %] &rsaquo;
14
        [% t("Cataloging") | html %] &rsaquo;
14
        [% t("Cataloging") | html %] &rsaquo;
15
        [% t("Koha") | html %]
15
        [% t("Koha") | html %]
Lines 31-37 Link Here
31
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
31
            <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
32
        [% END %]
32
        [% END %]
33
        [% WRAPPER breadcrumb_item %]
33
        [% WRAPPER breadcrumb_item %]
34
            <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Templates</a>
34
            <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a>
35
        [% END %]
35
        [% END %]
36
        [% WRAPPER breadcrumb_item bc_active= 1 %]
36
        [% WRAPPER breadcrumb_item bc_active= 1 %]
37
            [% IF ( template_id ) %]
37
            [% IF ( template_id ) %]
Lines 200-205 Link Here
200
</div> <!-- /.main.container-fluid -->
200
</div> <!-- /.main.container-fluid -->
201
201
202
[% MACRO jsinclude BLOCK %]
202
[% MACRO jsinclude BLOCK %]
203
    [% Asset.js("js/labels-menu.js") | $raw %]
203
    <script>
204
    <script>
204
        $(document).ready(function(){
205
        $(document).ready(function(){
205
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
206
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt (+1 lines)
Lines 42-47 Link Here
42
                            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout"><i class="fa-solid fa-object-group"></i> Layouts</a></li>
42
                            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout"><i class="fa-solid fa-object-group"></i> Layouts</a></li>
43
                            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template"><i class="fa-solid fa-table-cells"></i> Label templates</a></li>
43
                            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template"><i class="fa-solid fa-table-cells"></i> Label templates</a></li>
44
                            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile"><i class="fa fa-print"></i> Printer profiles</a></li>
44
                            <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile"><i class="fa fa-print"></i> Printer profiles</a></li>
45
                            <li><a href="/cgi-bin/koha/labels/label-edit-range.pl"><i class="fa fa-barcode"></i> Print barcode range</a></li>
45
                        </ul>
46
                        </ul>
46
                    </div>
47
                    </div>
47
                </div>
48
                </div>
(-)a/koha-tmpl/intranet-tmpl/prog/js/labels-menu.js (-1 / +14 lines)
Line 0 Link Here
0
- 
1
$(document).ready(function() {
2
    var path = location.pathname.substring(1);
3
    if (path.indexOf("label-edit-batch") >= 0 ) {
4
        $('#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=batch"]').addClass("current");
5
    } else if (path.indexOf("label-edit-layout") >= 0 ) {
6
        $('#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=layout"]').addClass("current");
7
    } else if (path.indexOf("label-edit-template") >= 0 ) {
8
        $('#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=template"]').addClass("current");
9
    } else if (path.indexOf("label-edit-profile") >= 0 ) {
10
        $('#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=profile"]').addClass("current");
11
    } else if (path.indexOf("label-edit-range") >= 0 ) {
12
        $('#labels-menu a[href$="/cgi-bin/koha/labels/label-edit-range.pl"]').addClass("current");
13
    }
14
});

Return to bug 37250