@@ -, +, @@ --- .../intranet-tmpl/prog/en/includes/authorities.inc | 2 +- .../prog/en/modules/authorities/detail.tt | 6 +++++- .../prog/en/includes/opac-authorities.inc | 2 +- .../prog/en/modules/opac-auth-MARCdetail.tt | 6 +++++- .../opac-tmpl/prog/en/modules/opac-auth-detail.tt | 6 +++++- 5 files changed, 17 insertions(+), 5 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc @@ -8,7 +8,7 @@ [% FOREACH node IN tree %]
  • [% IF ( node.current_value ) %] - [% node.value | html %] + [% node.value | html %] [% ELSE %] [% node.value | html %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -18,11 +18,15 @@ $(document).ready(function() { $('#authoritiestabs').tabs(); [% IF ( displayhierarchy ) %] + var current_nodes = []; + $('.currentauth').each(function() { + current_nodes.push('#' + $(this).parent().parents('li:first').attr('id')); + }); $('#hierarchies').jstree({ "plugins": [ "themes", "html_data"], "themes": { "theme": "classic", "icons": false }, - "core": { "initially_open": [ "#hier[% authid %]" ] } + "core": { "initially_open": current_nodes } }); [% END %] }); --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc +++ a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc @@ -8,7 +8,7 @@ [% FOREACH node IN tree %]
  • [% IF ( node.current_value ) %] - [% node.value | html %] + [% node.value | html %] [% ELSE %] [% node.value | html %] [% END %] --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-MARCdetail.tt +++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-MARCdetail.tt @@ -6,11 +6,15 @@ //