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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc (-1 / +1 lines)
Lines 8-14 Link Here
8
        [% FOREACH node IN tree %]
8
        [% FOREACH node IN tree %]
9
            <li id="hier[% node.authid %]" class="[% node.class %] authnode">
9
            <li id="hier[% node.authid %]" class="[% node.class %] authnode">
10
            [% IF ( node.current_value ) %]
10
            [% IF ( node.current_value ) %]
11
                <span id='currentauth'>[% node.value | html %]</span>
11
                <span class='currentauth'>[% node.value | html %]</span>
12
            [% ELSE %]
12
            [% ELSE %]
13
                <a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a>
13
                <a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a>
14
            [% END %]
14
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-1 / +5 lines)
Lines 18-28 Link Here
18
	 $(document).ready(function() {
18
	 $(document).ready(function() {
19
    $('#authoritiestabs').tabs();
19
    $('#authoritiestabs').tabs();
20
    [% IF ( displayhierarchy ) %]
20
    [% IF ( displayhierarchy ) %]
21
        var current_nodes = [];
22
        $('.currentauth').each(function() {
23
            current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
24
            });
21
        $('#hierarchies').jstree({
25
        $('#hierarchies').jstree({
22
                "plugins": [ "themes", "html_data"],
26
                "plugins": [ "themes", "html_data"],
23
                "themes": { "theme": "classic",
27
                "themes": { "theme": "classic",
24
                            "icons": false },
28
                            "icons": false },
25
                "core": { "initially_open": [ "#hier[% authid %]" ] }
29
                "core": { "initially_open": current_nodes }
26
            });
30
            });
27
    [% END %]
31
    [% END %]
28
	 });
32
	 });
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc (-1 / +1 lines)
Lines 8-14 Link Here
8
        [% FOREACH node IN tree %]
8
        [% FOREACH node IN tree %]
9
            <li id="hier[% node.authid %]" class="[% node.class %] authnode">
9
            <li id="hier[% node.authid %]" class="[% node.class %] authnode">
10
            [% IF ( node.current_value ) %]
10
            [% IF ( node.current_value ) %]
11
                <span id='currentauth'>[% node.value | html %]</span>
11
                <span class='currentauth'>[% node.value | html %]</span>
12
            [% ELSE %]
12
            [% ELSE %]
13
                <a href="opac-authoritiesdetail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a>
13
                <a href="opac-authoritiesdetail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a>
14
            [% END %]
14
            [% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-MARCdetail.tt (-1 / +5 lines)
Lines 6-16 Link Here
6
//<![CDATA[
6
//<![CDATA[
7
$(document).ready(function() {
7
$(document).ready(function() {
8
    [% IF ( displayhierarchy ) %]
8
    [% IF ( displayhierarchy ) %]
9
        var current_nodes = [];
10
        $('.currentauth').each(function() {
11
            current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
12
            });
9
        $('#hierarchies').jstree({
13
        $('#hierarchies').jstree({
10
                "plugins": [ "themes", "html_data"],
14
                "plugins": [ "themes", "html_data"],
11
                "themes": { "theme": "classic",
15
                "themes": { "theme": "classic",
12
                            "icons": false },
16
                            "icons": false },
13
                "core": { "initially_open": [ "#hier[% authid %]" ] }
17
                "core": { "initially_open": current_nodes }
14
            });
18
            });
15
    [% END %]
19
    [% END %]
16
});
20
});
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt (-2 / +5 lines)
Lines 9-19 Link Here
9
$(document).ready(function() {
9
$(document).ready(function() {
10
    $('#authdescriptions').tabs();
10
    $('#authdescriptions').tabs();
11
    [% IF ( displayhierarchy ) %]
11
    [% IF ( displayhierarchy ) %]
12
        var current_nodes = [];
13
        $('.currentauth').each(function() {
14
            current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
15
            });
12
        $('#hierarchies').jstree({
16
        $('#hierarchies').jstree({
13
                "plugins": [ "themes", "html_data"],
17
                "plugins": [ "themes", "html_data"],
14
                "themes": { "theme": "classic",
18
                "themes": { "theme": "classic",
15
                            "icons": false },
19
                            "icons": false },
16
                "core": { "initially_open": [ "#hier[% authid %]" ] }
20
                "core": { "initially_open": current_nodes }
17
            });
21
            });
18
    [% END %]
22
    [% END %]
19
});
23
});
20
- 

Return to bug 8523