Bug 8679 [REVISED] Remove usage of Amazon API
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-auth-detail.tt
1 [% BLOCK authtypelabel %]
2     [% UNLESS ( type=='seefrom' || type=='seealso' || type=='' ) %]
3         <span class="type">[% FILTER trim %][% SWITCH type %]
4         [% CASE 'earlier' %]Earlier heading
5         [% CASE 'later' %]Later heading
6         [% CASE 'acronym' %]Acronym
7         [% CASE 'musical' %]Musical composition
8         [% CASE 'broader' %]Broader heading
9         [% CASE 'narrower' %]Narrower heading
10         [% CASE %][% type %]
11         [% END %][% END %]</span>
12     [% END %]
13 [% END %]
14 [% BLOCK otherscript %]
15     [% FOREACH heading IN headings %]
16         [% IF heading.category == wantcategory %]
17             [% IF heading.direction == 'ltr' %]
18                 <div class="heading otherscript [% heading.category %]">
19                 <span class="[% heading.category %]">[% heading.term %]</span>
20                 </div>
21             [% ELSIF heading.direction == 'rtl' %]
22                 <div class="heading otherscript [% heading.category %] rtl">
23                 <span class="[% heading.category %]">[% heading.term %]</span>
24                 </div>
25             [% END %]
26         [% END %]
27     [% END %]
28 [% END %]
29 [% BLOCK authheadingdisplay %]
30     [% IF authid %]<a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]">[% heading %]</a>
31     [% 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>
32     [% ELSE %][% heading %]
33     [% END %]
34 [% END %]
35 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Entry
36 [% INCLUDE 'doc-head-close.inc' %]
37 [% IF ( displayhierarchy ) %]
38 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/hierarchy.css">
39 [% END %]
40 <script language="JavaScript" type="text/javascript">
41 $(document).ready(function() {
42     $('#authdescriptions').tabs();
43 });
44
45 [% IF ( displayhierarchy ) %]
46 function showParents(mynumber) {
47   var parents=document.getElementsByName(mynumber+'p')
48   for(i=0;i<parents.length;i++){
49     if (parents[i].style.display == "none") {
50       parents[i].style.display ="block";
51     } else {
52       parents[i].style.display ="none";
53     }
54   }
55 }
56 function showChildren(mynumber) {
57   var children=document.getElementsByName(mynumber+'c')
58   for(i=0;i<children.length;i++){
59     if (children[i].style.display == "none") {
60       children[i].style.display = "block";
61     } else {
62       children[i].style.display = "none";
63     }
64   }
65 }
66 [% END %]
67 </script>
68 </head>
69 <body id="opac-authoritiesdetail">
70
71 <div id="doc3" class="yui-t1">
72    <div id="bd">
73 [% INCLUDE 'masthead.inc' %]
74     <div id="yui-main">
75     <div class="yui-b"><div class="yui-g">
76
77     <div id="views"><span class="view"><span id="Normalview">Normal view</span></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]&marc=1">MARC view</a></span></div>
78
79 <div id="userauthdetails" class="container">
80
81 [% IF ( displayhierarchy ) %]
82
83 <div class="hierarchies">
84 [% FOREACH loophierarchie IN loophierarchies %]
85   <div class="hierarchy">
86   [% FOREACH loopelemen IN loophierarchie.loopelement %]
87     <div id="[% loopelemen.loopauthid %]" class="[% loopelemen.class %]">
88     [% IF ( loopelemen.current_value ) %]
89         [% loopelemen.value %]
90     [% ELSE %]
91         <a href="opac-authoritiesdetail.pl?authid=[% loopelemen.loopauthid %]" title="Term">[% loopelemen.value %]</a>
92     [% END %]
93     [% IF ( loopelemen.ifchildren ) %]
94       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('[% loopelemen.loopauthid %]');">+</a></sub><br/>
95       [% FOREACH loopchildre IN loopelemen.loopchildren %]
96         <div name="[% loopchildre.loopauthid %]c" class="child"> <a href="opac-authoritiesdetail.pl?authid=[% loopchildre.childauthid %]">[% loopchildre.childvalue %]</a></div>
97       [% END %]
98     [% END %]
99     </div>
100   [% END %]
101
102   </div>
103 [% END %]
104 </div>
105 [% END %]
106 <h1>[% summary.mainentry %][% IF authtypetext %]([% authtypetext %])[% END %]</h1>
107 <div class="usedin">Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a></div>
108 <div class="authstanza">
109 [% FOREACH authorize IN summary.authorized %]
110 <div class="heading authorized auth[% seefro.field %]"><span class="label">Preferred form: </span><span class="authorized">[% authorize.heading %]</span></div>
111 [% END %]
112 [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
113 </div>
114 [% IF summary.seefrom.size %]
115     <div class="authstanza seefrom">
116     <div class="authstanzaheading">Used for/see from:</div>
117     <ul class="seefrom">
118     [% FOREACH seefro IN summary.seefrom %]
119         <li class="heading seefrom auth[% seefro.field %]">
120         [% IF seefro.type && seefro.type != 'seefrom' %]<span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>[% END %]
121         <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
122         </li>
123     [% END %]
124     [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
125     </div>
126 [% END %]
127 [% IF summary.seealso.size %]
128     <div class="authstanza seealso">
129     <div class="authstanzaheading">See also:</div>
130     <ul class="seelso">
131     [% FOREACH seeals IN summary.seealso %]
132         <li class="heading seealso auth[% seeals.field %]">[% IF seeals.type && seeals.type != 'seealso' %]<span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>[% END %]
133         <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
134         </li>
135     [% END %]
136     [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
137     </div>
138 [% END %]
139 [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
140     <div class="authstanza">
141     [% FOREACH otherscrip IN summary.otherscript %]
142         <div class="heading otherscript auth[% otherscrip.field %]"><span class="label">See also[% PROCESS language lang=otherscript.lang | trim %] term:</span>
143         <span class="otherscript">[% otherscrip.term %]</span>
144         </div>
145     [% END %]
146     </div>
147 [% END %]
148 <div id="authdescriptions" class="toptabs">
149 <ul>
150     <li id="tab_descriptions" class="ui-tabs-selected"><a href="#descriptions">Notes</a></li>
151 </ul>
152 <div id="descriptions">
153 <div class="content_set">
154 [% FOREACH note IN summary.notes %]
155 <p class="note auth[% note.field %]">[% note.note %]</p>
156 [% END %]
157 </div>
158 </div>
159 </div>
160 </div>
161 </div>
162
163 </div>
164 </div>
165 </div>
166 [% IF ( OpacNav ) %]
167 <div class="yui-b">
168 <div id="leftmenus" class="container">
169 [% INCLUDE 'navigation.inc' %]
170 </div>
171 </div>[% END %]
172 </div>
173 [% INCLUDE 'opac-bottom.inc' %]