-[% BLOCK authtypelabel %]
- [% UNLESS ( type=='seefrom' || type=='seealso' || type=='' ) %]
- <span class="type">[% FILTER trim %][% SWITCH type %]
- [% CASE 'earlier' %]Earlier heading
- [% CASE 'later' %]Later heading
- [% CASE 'acronym' %]Acronym
- [% CASE 'musical' %]Musical composition
- [% CASE 'broader' %]Broader heading
- [% CASE 'narrower' %]Narrower heading
- [% CASE %][% type %]
- [% END %][% END %]</span>
- [% END %]
-[% END %]
-[% BLOCK otherscript %]
- [% FOREACH heading IN headings %]
- [% IF heading.category == wantcategory %]
- [% IF heading.direction == 'ltr' %]
- <div class="heading otherscript [% heading.category %]">
- <span class="[% heading.category %]">[% heading.term %]</span>
- </div>
- [% ELSIF heading.direction == 'rtl' %]
- <div class="heading otherscript [% heading.category %] rtl">
- <span class="[% heading.category %]">[% heading.term %]</span>
- </div>
- [% END %]
- [% END %]
- [% END %]
-[% END %]
-[% BLOCK authheadingdisplay %]
- [% IF authid %]<a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]">[% heading %]</a>
- [% ELSIF search %]<a href="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&marclist=mainentry&and_ora=and&orderby=HeadingAsc&value=[% search %]">[% heading %]</a>
- [% ELSE %][% heading %]
- [% END %]
-[% END %]
+[% USE Koha %]
+[% PROCESS 'opac-authorities.inc' %]
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Entry
[% INCLUDE 'doc-head-close.inc' %]
[% IF ( displayhierarchy ) %]
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/hierarchy.css">
+<script language="javascript" type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
[% END %]
-<script language="JavaScript" type="text/javascript">
+<script language="javascript" type="text/javascript">
+//<![CDATA[
$(document).ready(function() {
$('#authdescriptions').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": current_nodes }
+ });
+ [% END %]
});
-
-[% IF ( displayhierarchy ) %]
-function showParents(mynumber) {
- var parents=document.getElementsByName(mynumber+'p')
- for(i=0;i<parents.length;i++){
- if (parents[i].style.display == "none") {
- parents[i].style.display ="block";
- } else {
- parents[i].style.display ="none";
- }
- }
-}
-function showChildren(mynumber) {
- var children=document.getElementsByName(mynumber+'c')
- for(i=0;i<children.length;i++){
- if (children[i].style.display == "none") {
- children[i].style.display = "block";
- } else {
- children[i].style.display = "none";
- }
- }
-}
-[% END %]
+//]]>
</script>
</head>
<body id="opac-authoritiesdetail">
-<div id="doc3" class="yui-t1">
+<div id="doc3" class="yui-t7">
<div id="bd">
[% INCLUDE 'masthead.inc' %]
<div id="yui-main">
<div id="userauthdetails" class="container">
[% IF ( displayhierarchy ) %]
-
-<div class="hierarchies">
-[% FOREACH loophierarchie IN loophierarchies %]
- <div class="hierarchy">
- [% FOREACH loopelemen IN loophierarchie.loopelement %]
- <div id="[% loopelemen.loopauthid %]" class="[% loopelemen.class %]">
- [% IF ( loopelemen.current_value ) %]
- [% loopelemen.value %]
- [% ELSE %]
- <a href="opac-authoritiesdetail.pl?authid=[% loopelemen.loopauthid %]" title="Term">[% loopelemen.value %]</a>
- [% END %]
- [% IF ( loopelemen.ifchildren ) %]
- <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('[% loopelemen.loopauthid %]');">+</a></sub><br/>
- [% FOREACH loopchildre IN loopelemen.loopchildren %]
- <div name="[% loopchildre.loopauthid %]c" class="child"> <a href="opac-authoritiesdetail.pl?authid=[% loopchildre.childauthid %]">[% loopchildre.childvalue %]</a></div>
- [% END %]
- [% END %]
- </div>
- [% END %]
-
- </div>
-[% END %]
+<div id="hierarchies">
+[% PROCESS showhierarchy trees = loophierarchies %]
</div>
[% END %]
-<h1>[% summary.mainentry %][% IF authtypetext %]([% authtypetext %])[% END %]</h1>
+
+<h1>[% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</h1>
<div class="usedin">Used in <a href="opac-search.pl?type=opac&q=[% authid %]&idx=an,phr">[% count %] records</a></div>
<div class="authstanza">
[% FOREACH authorize IN summary.authorized %]
</div>
[% END %]
[% IF marcflavour == 'UNIMARC' && summary.otherscript %]
- <div class="authstanza">
+ <div class="authstanza">
+ <div class="authstanzaheading">Other forms:</div>
+ <ul>
[% FOREACH otherscrip IN summary.otherscript %]
- <div class="heading otherscript auth[% otherscrip.field %]"><span class="label">See also[% PROCESS language lang=otherscript.lang | trim %] term:</span>
+ <li>
+ [% PROCESS language lang=otherscrip.lang | trim %]:
<span class="otherscript">[% otherscrip.term %]</span>
- </div>
+ </li>
[% END %]
- </div>
+ </ul>
+ </div>
[% END %]
<div id="authdescriptions" class="toptabs">
<ul>
</div>
</div>
</div>
-[% IF ( OpacNav ) %]
-<div class="yui-b">
-<div id="leftmenus" class="container">
-[% INCLUDE 'navigation.inc' %]
-</div>
-</div>[% END %]
</div>
[% INCLUDE 'opac-bottom.inc' %]