/[webpac]/trunk2/eurovoc/abecedno.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk2/eurovoc/abecedno.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 546 - (show annotations)
Tue Oct 26 18:59:38 2004 UTC (17 years, 3 months ago) by dpavlin
File MIME type: text/html
File size: 9545 byte(s)
Removed all unaccented letters except in bfilter for characters in "part".
This solves problem of different browsers sorting differently according to
current locale setting. This way, only US ASCII characters are used and
everything is (hopefully) fine.

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <title>HIDRA - Pojmovnik Eurovoc</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
6 <link rel="stylesheet" href="eurovoc.css" type="text/css">
7
8 <script type="text/javascript" src="js/bfilter.js"></script>
9 <script type="text/javascript" src="js/popup.js"></script>
10 <script type="text/javascript" src="js/load_js.js"></script>
11 <script type="text/javascript" src="js/cookies.js"></script>
12 <script type="text/javascript" src="js/l2_unescape.js"></script>
13 <script type="text/javascript" src="js/unac.js"></script>
14 <script type="text/javascript">
15 // <!--
16
17 var lang2thes = {
18 'hr' : 'DescriptorHR.js',
19 'en' : 'DescriptorEN.js',
20 'fr' : 'DescriptorFR.js',
21 'ge' : 'DescriptorGE.js'
22 };
23
24 var lang = get_cookie('w2_lang');
25
26 var headlines = null;
27 self.document.myfilter = null;
28
29 function myfilter() {
30 // self.document.getElementById('textfilter').focus();
31 // self.document.getElementById('textfilter').caretPos=1;
32 // self.document.getElementById('textfilter').select();
33 self.document.myfilter = new BFilter(headlines);
34
35 self.document.myfilter.result = function (arr) {
36 var r_div = element_id('results');
37 if (r_div) {
38 var li = self.document.createElement("li");
39 var e = self.document.createElement("a");
40 var pic = null;
41
42 e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);
43 var regex = new RegExp(/ *\* */);
44 if (arr[0].match(regex)) {
45 e.appendChild(self.document.createTextNode(arr[2].replace(regex,' ')));
46 pic = self.document.createElement("img");
47 pic.src = 'img/crovoc.png';
48 pic.border = 0;
49 e.appendChild(pic);
50 } else {
51 e.appendChild(self.document.createTextNode(arr[2]));
52 }
53 li.appendChild(e);
54
55 li.appendChild(self.document.createTextNode(" "));
56
57 e = self.document.createElement("a");
58 e.setAttribute("href","thes/"+arr[1]+".html");
59 e.setAttribute("target","popup");
60 e.onclick = function() { return popup(e) };
61 pic = self.document.createElement("img");
62 pic.src = 'img/listic.png';
63 pic.border = 0;
64 e.appendChild(pic);
65 li.appendChild(e);
66
67 li.appendChild(self.document.createElement("br"));
68
69 // append li
70 r_div.appendChild(li);
71
72 } else {
73 alert("can't find results div!");
74 }
75 /*
76 return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
77 '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
78 '</li>';
79 */
80 return null;
81 }
82
83 // this function is called when updating innerHTML with results
84 self.document.myfilter.display = function (html) {
85 return null;
86 // return '<ul>'+html+'</ul>';
87 }
88
89 self.document.myfilter.show_status = function (status) {
90 var html;
91 if (this.hits > 0) {
92 html = "Pronaðeno "+this.hits+" zapisa";
93 } else {
94 html = "Nije pronaðen niti jedan zapis";
95 }
96 if (! status) {
97 html = "Unesite "+this.min_len+" znaka za pretra¾ivanje.";
98 status = "";
99 } else {
100 status = " za <em>"+status+"</em>.";
101 }
102
103 var el = this.element_id("status");
104 el.innerHTML = html+status+"\n";
105 }
106 }
107
108 function load_lang(lang) {
109 // reset results
110 if (self.document.myfilter) element_id('results').innerHTML = "";
111
112 // default language or fallback from all to hr
113 if (! lang || lang == 'all') lang = 'hr';
114
115 if (! lang2thes[lang]) {
116 alert("Jezik "+lang+" nije podr¾an");
117 }
118
119 set_cookie('w2_lang', lang);
120 element_id('lang').disabled = true;
121 element_id('textfilter').disabled = true;
122 element_id('status').innerHTML = "Uèitavanje podataka za jezik. Molimo, prièekate...";
123
124 self.document.myfilter = null;
125
126 load_js(lang2thes[lang], 'headlines', 'load_lang_finished();' );
127 }
128
129 function do_filter(filter) {
130 element_id('status').innerHTML = "Pretra¾ivanje u tijeku...";
131 var f = l2_unescape(filter);
132 f = f.substr(0,2) + unac(f.substr(2,f.length-2));
133 if (self.document.myfilter) self.document.myfilter.filter(f);
134 }
135
136 function load_lang_finished() {
137 //alert("loaded "+lang);
138 myfilter();
139 self.document.myfilter.arr=headlines;
140 element_id('lang').disabled = false;
141 element_id('textfilter').disabled = false;
142 do_filter(element_id('textfilter').value);
143 return false;
144 }
145
146 function select_option(value,text,selected) {
147 document.write('<option value="'+value+'"');
148 if (value == selected) document.write(' selected');
149 document.write('>'+text+'</option>');
150 }
151 // -->
152 </script>
153 <script type="text/javascript" src="js/hide.js"></script>
154 </head>
155
156 <body onload="load_lang(lang);">
157 <table width="100%" border="0" cellspacing="0" cellpadding="0">
158 <tr>
159 <td colspan="3" class="hdr" height="10">
160 </td>
161 </tr>
162 <tr>
163 <td class="logoHidra">
164 <img src="img/euzajed.png" border="0" alt="Europske zajednice">
165 </td>
166 <td class="logoHidra">
167 <img src="img/hidra.png" border="0" alt="HIDRA logo">
168 </td>
169 <td class="logoEUV">
170 <a href="index.html"><img src="img/eurovoc2.png" border="0" alt="Eurovoc"></a>
171 </td>
172 </tr>
173 <tr>
174 <td class="hdr2" height="10" colspan="3">
175 </td>
176
177 </tr>
178 </table>
179
180
181 <table border="0" cellspacing="0" cellpadding="0" width="100%">
182 <tr>
183 <td class="hMenuL hMenu">
184 <table width="160" cellspacing="0" cellpadding="0">
185 <tr><td>
186 <table border="0" cellspacing="0" cellpadding="0">
187 <tr>
188 <td class="topLpl"></td>
189 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="eurovoc.html">Pojmovnik Eurovoc</a></td>
190 <td nowrap class="topRpl"></td>
191 </tr>
192 <tr>
193 <td class="hMenuSide"></td>
194 <td class="hMenuSide"></td>
195 </tr>
196 <tr>
197 <td colspan="3" height="10"></td>
198 </tr>
199 </table>
200 </td></tr>
201 </table>
202 </td>
203
204 <td colspan="2" class="hMenu">
205 <table border="0" cellspacing="0" cellpadding="0" align="right" width="520">
206 <tr>
207 <td width="10">&nbsp;</td>
208 <td>
209 <table border="0" cellspacing="0" cellpadding="0">
210 <tr>
211 <td class="topLpl"></td>
212 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="pretrazivanje.html">Pretra¾ivanje</a></td>
213 <td class="topRpl"></td>
214 </tr>
215 <tr>
216 <td class="hMenuSide"></td>
217 <td class="hMenuSide"></td>
218 </tr>
219 <tr>
220 <td colspan="3" height="10"></td>
221 </tr>
222 </table>
223 </td>
224 <td width="10">&nbsp;</td>
225 <td>
226 <table border="0" cellspacing="0" cellpadding="0">
227 <tr>
228 <td class="topLpl"></td>
229 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="hijerarhija.html">Hijerarhijski prikaz</a></td>
230 <td class="topRpl"></td>
231 </tr>
232 <tr>
233 <td class="hMenuSide"></td>
234 <td class="hMenuSide"></td>
235 </tr>
236 <tr>
237 <td colspan="3" height="10"></td>
238 </tr>
239 </table>
240 </td>
241 <td width="10">&nbsp;</td>
242 <td>
243 <table border="0" cellspacing="0" cellpadding="0">
244 <tr>
245 <td class="topLpl"></td>
246 <td rowspan="2" class="ActMenu">Abecedna kazala</td>
247 <td class="topRpl"></td>
248 </tr>
249 <tr>
250 <td class="hMenuSide"></td>
251 <td class="hMenuSide"></td>
252 </tr>
253 <tr>
254 <td class="bottomLpl"></td>
255 <td class="bkgPl"></td>
256 <td class="bottomRpl"></td>
257 </tr>
258 </table>
259 </td>
260 <td width="10">&nbsp;</td>
261 </tr>
262 </table>
263
264 </td>
265 </tr>
266
267 <tr>
268 <td width="200" class="menu">
269 <table border="0" cellspacing="0" cellpadding="0" width="160">
270 <tr>
271 <td colspan="3">&nbsp;</td>
272 </tr>
273 <tr>
274 <td class="topLsv"></td>
275 <td class="middle bkgSv"></td>
276 <td class="topRsv"></td>
277 </tr>
278 <tr>
279 <td colspan="3" class="menuItem2">Upute za prikaz abecednih kazala</td>
280 </tr>
281 <tr>
282 <td colspan="3" class="menuItem">
283 Upi¹ite najmanje <em>dva poèetna slova</em> tra¾enog
284 pojma.
285 </td>
286 </tr>
287 <tr>
288 <td colspan="3" class="menuItem">
289 Klik na pojam u abecednom kazalu pozicionira pojam u
290 hijerarhijkoij strukturi pojmovnika.
291 </td>
292 </tr>
293 <tr>
294 <td colspan="3" class="menuItem">
295 Klik na znak <img src="img/listic.png" border="0"> otvara novi prozor u kojem
296 se pojavljuje detaljan prikaz tra¾enog pojma.
297 </td>
298 </tr>
299 <tr>
300 <td class="bottomLsv"></td>
301 <td class="middle bkgSv"></td>
302 <td class="bottomRsv"></td>
303 </tr>
304 </table>
305
306 </td>
307
308
309 <td class="bd">
310
311 <h3>Abecedna kazala</h3>
312
313
314 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
315 <a href="#" onclick="toggle_display('debug');">debug</a>
316 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
317 </div>
318 </div>
319
320 <form method="get" onsubmit="return false;" action="?">
321 <div class="filters">
322 <script type="text/javascript">
323 // <!--
324 document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">');
325 select_option("hr","Hrvatski",lang);
326 select_option("en","Engleski",lang);
327 select_option("fr","Francuski",lang);
328 select_option("ge","Njemaèki",lang);
329 document.write('</select>');
330 // -->
331 </script>
332
333 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="do_filter(this.value);" />
334 <!-- this button is strictly for looks -->
335 <input class="filters" value="filter" type="button" disabled="true"/>
336 </div>
337 </form>
338
339 <div id="status" style="font-size: 80%; color: gray;">
340 <!--
341 Enter few letters to filter by them
342 -->
343 </div>
344
345 <ul id="results">
346 </ul>
347
348 </td>
349 </tr>
350 </table>
351
352 </body>
353 </html>

  ViewVC Help
Powered by ViewVC 1.1.26