/[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 594 - (show annotations)
Sat Nov 6 23:26:39 2004 UTC (15 years, 5 months ago) by dpavlin
File MIME type: text/html
File size: 10789 byte(s)
design

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" src="js/clear_last_search.js"></script>
15 <script type="text/javascript">
16 // <!--
17
18 var lang2thes = {
19 'hr' : 'DescriptorHR.js',
20 'en' : 'DescriptorEN.js',
21 'fr' : 'DescriptorFR.js',
22 'ge' : 'DescriptorGE.js'
23 };
24
25 var lang = get_cookie('w2_lang');
26
27 var headlines = null;
28 self.document.myfilter = null;
29
30 function myfilter() {
31 // self.document.getElementById('textfilter').focus();
32 // self.document.getElementById('textfilter').caretPos=1;
33 // self.document.getElementById('textfilter').select();
34 self.document.myfilter = new BFilter(headlines);
35
36 // define some regexps
37 self.document.myfilter.star_regex = new RegExp(/ *#C# */i);
38 self.document.myfilter.htmlent_regex = new RegExp(/(&[a-z][a-z]*;)/i);
39
40 self.document.myfilter.text_ent = function (str) {
41 if (str.match(this.htmlent_regex)) {
42 var e = self.document.createElement("span");
43 e.innerHTML = str;
44 return e;
45 } else {
46 return self.document.createTextNode(str);
47 }
48 }
49
50 self.document.myfilter.result = function (arr) {
51 var r_div = element_id('results');
52 if (r_div) {
53 var li = self.document.createElement("li");
54 var e = self.document.createElement("a");
55 var pic = null;
56
57 e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);
58 if (arr[0].match(this.star_regex)) {
59 e.appendChild(this.text_ent(arr[2].replace(this.star_regex,' ')));
60 pic = self.document.createElement("img");
61 pic.src = 'img/crovoc.png';
62 pic.border = 0;
63 e.appendChild(pic);
64 } else {
65 e.appendChild(this.text_ent(arr[2]));
66 }
67 li.appendChild(e);
68
69 li.appendChild(self.document.createTextNode(" "));
70
71 e = self.document.createElement("a");
72 e.setAttribute("href","thes/"+arr[1]+".html");
73 e.setAttribute("target","popup");
74 e.onclick = function() { return popup(e) };
75 pic = self.document.createElement("img");
76 pic.src = 'img/listic.png';
77 pic.border = 0;
78 e.appendChild(pic);
79 li.appendChild(e);
80
81 li.appendChild(self.document.createElement("br"));
82
83 // append li
84 r_div.appendChild(li);
85
86 } else {
87 alert("can't find results div!");
88 }
89 /*
90 return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
91 '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
92 '</li>';
93 */
94 return null;
95 }
96
97 // this function is called when updating innerHTML with results
98 self.document.myfilter.display = function (html) {
99 return null;
100 // return '<ul>'+html+'</ul>';
101 }
102
103 self.document.myfilter.show_status = function (status) {
104 var html;
105 if (this.hits > 0) {
106 html = "Pronaðeno "+this.hits+" zapisa";
107 } else {
108 html = "Nije pronaðen niti jedan zapis";
109 }
110 if (! status) {
111 html = "Unesite "+this.min_len+" znaka za pretra¾ivanje.";
112 status = "";
113 } else {
114 status = " za <em>"+status+"</em>.";
115 }
116
117 var el = this.element_id("status");
118 el.innerHTML = html+status+"\n";
119 }
120
121 // time timeout to 500ms
122 self.document.myfilter.timeout = 500;
123 }
124
125 function load_lang(lang) {
126 // reset results
127 if (self.document.myfilter) element_id('results').innerHTML = "";
128
129 // default language or fallback from all to hr
130 if (! lang || lang == 'all') lang = 'hr';
131
132 if (! lang2thes[lang]) {
133 alert("Jezik "+lang+" nije podr¾an");
134 }
135
136 set_cookie('w2_lang', lang);
137 element_id('lang').disabled = true;
138 element_id('textfilter').disabled = true;
139 element_id('status').innerHTML = "Uèitavanje podataka za jezik. Molimo, prièekajte...";
140
141 self.document.myfilter = null;
142
143 load_js(lang2thes[lang], 'headlines', 'load_lang_finished();' );
144 }
145
146 function do_filter(filter) {
147 set_cookie('w2_lastsearch', filter);
148 var f = l2_unescape(filter);
149 if (! f) f='';
150 if (f.length > 2) f = f.substr(0,2) + unac(f.substr(2,f.length-2));
151 if (self.document.myfilter) {
152 element_id('status').innerHTML = "Pretra¾ivanje u tijeku...";
153 self.document.myfilter.filter(f);
154 }
155 }
156
157 function load_lang_finished() {
158 //alert("loaded "+lang);
159 myfilter();
160 self.document.myfilter.arr=headlines;
161 element_id('lang').disabled = false;
162 element_id('textfilter').disabled = false;
163 var q = element_id('textfilter').value;
164 if (q && q.length >= self.document.myfilter.min_len) {
165 do_filter(q);
166 } else {
167 self.document.myfilter.show_status();
168 }
169 return false;
170 }
171
172 function select_option(value,text,selected) {
173 document.write('<option value="'+value+'"');
174 if (value == selected) document.write(' selected');
175 document.write('>'+text+'</option>');
176 }
177 // -->
178 </script>
179 <script type="text/javascript" src="js/hide.js"></script>
180 </head>
181
182 <body onload="load_lang(lang);">
183 <table width="100%" border="0" cellspacing="0" cellpadding="0">
184 <tr>
185 <td colspan="3" class="hdr" height="10">
186 </td>
187 </tr>
188 <tr>
189 <td class="logoHidra">
190 <img src="img/euzajed.gif" border="0" alt="Europske zajednice">
191 </td>
192 <td class="logoHidra">
193 <img src="img/hidra.gif" border="0" alt="HIDRA logo">
194 </td>
195 <td class="logoEUV">
196 <a href="index.html"><img src="img/eurovoc2.png" border="0" alt="Eurovoc"></a>
197 </td>
198 </tr>
199 <tr>
200 <td class="hdr2" height="10" colspan="3">
201 </td>
202
203 </tr>
204 </table>
205
206
207 <table border="0" cellspacing="0" cellpadding="0" width="100%">
208 <tr>
209 <td class="hMenuL hMenu">
210 <table width="160" cellspacing="0" cellpadding="0">
211 <tr><td>
212 <table border="0" cellspacing="0" cellpadding="0">
213 <tr>
214 <td class="topLpl"></td>
215 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="eurovoc.html">Pojmovnik Eurovoc</a></td>
216 <td nowrap class="topRpl"></td>
217 </tr>
218 <tr>
219 <td class="hMenuSide"></td>
220 <td class="hMenuSide"></td>
221 </tr>
222 <tr>
223 <td colspan="3" height="10"></td>
224 </tr>
225 </table>
226 </td></tr>
227 </table>
228 </td>
229
230 <td colspan="2" class="hMenu">
231 <table border="0" cellspacing="0" cellpadding="0" align="left" width="520">
232 <tr>
233 <td width="10">&nbsp;</td>
234 <td>
235 <table border="0" cellspacing="0" cellpadding="0">
236 <tr>
237 <td class="topLpl"></td>
238 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="pretrazivanje.html">Pretra¾ivanje</a></td>
239 <td class="topRpl"></td>
240 </tr>
241 <tr>
242 <td class="hMenuSide"></td>
243 <td class="hMenuSide"></td>
244 </tr>
245 <tr>
246 <td colspan="3" height="10"></td>
247 </tr>
248 </table>
249 </td>
250 <td width="10">&nbsp;</td>
251 <td>
252 <table border="0" cellspacing="0" cellpadding="0">
253 <tr>
254 <td class="topLpl"></td>
255 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="hijerarhija.html">Hijerarhijski prikaz</a></td>
256 <td class="topRpl"></td>
257 </tr>
258 <tr>
259 <td class="hMenuSide"></td>
260 <td class="hMenuSide"></td>
261 </tr>
262 <tr>
263 <td colspan="3" height="10"></td>
264 </tr>
265 </table>
266 </td>
267 <td width="10">&nbsp;</td>
268 <td>
269 <table border="0" cellspacing="0" cellpadding="0">
270 <tr>
271 <td class="topLpl"></td>
272 <td rowspan="2" class="ActMenu">Abecedna kazala</td>
273 <td class="topRpl"></td>
274 </tr>
275 <tr>
276 <td class="hMenuSide"></td>
277 <td class="hMenuSide"></td>
278 </tr>
279 <tr>
280 <td class="bottomLpl"></td>
281 <td class="bkgPl"></td>
282 <td class="bottomRpl"></td>
283 </tr>
284 </table>
285 </td>
286 <td width="10">&nbsp;</td>
287 </tr>
288 </table>
289
290 </td>
291 </tr>
292
293 <tr>
294 <td width="200" class="menu">
295 <table border="0" cellspacing="0" cellpadding="0" width="200">
296 <tr>
297 <td colspan="3">&nbsp;</td>
298 </tr>
299 <tr>
300 <td class="topLsv"></td>
301 <td class="middle2 bkgSv"></td>
302 <td class="topRsv"></td>
303 </tr>
304 <tr>
305 <td colspan="3" class="menuItem2">Upute za prikaz <br>abecednih kazala</td>
306 </tr>
307 <tr>
308 <td colspan="3" class="menuItem">
309 Odaberite jezik i upi¹ite najmanjei<em>dva poèetna slova</em> tra¾enog pojma.
310 </td>
311 </tr>
312 <tr>
313 <td colspan="3" class="menuItem">
314 Rezultat tra¾enja je popis pronaðenih deskriptora s pripadajuæim potpojmovnikom, te nedeskriptora koji znakom &quot;>>&quot; upuæuju na deskriptor. Navodi u popisu su ujedno veza prema hijerarhijski strukturiranom prikazu.
315 </td>
316 </tr>
317 <tr>
318 <td colspan="3" class="menuItem">
319 Slièica <img src="img/listic.png"> otvara novi prozor s detaljnim prikazom deskriptora.
320 </td>
321 </tr>
322 <tr>
323 <td colspan="3" class="menuItem">
324 Slièica <img src="img/crovoc.png"> oznaèava deskriptore Hrvatskog dodatka.
325 </td>
326 </tr>
327 <tr>
328 <td class="bottomLsv"></td>
329 <td class="middle2 bkgSv"></td>
330 <td class="bottomRsv"></td>
331 </tr>
332 </table>
333
334 </td>
335
336
337 <td class="bd2">
338
339 <h3>Abecedna kazala</h3>
340
341 <!--
342 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
343 <a href="#" onclick="toggle_display('debug');">debug</a>
344 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
345 </div>
346 </div>
347 -->
348
349 <form id="filterform" method="get" onsubmit="return false;" action="?" >
350 <div class="filters">
351 <script type="text/javascript">
352 // <!--
353 document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">');
354 select_option("hr","Hrvatski",lang);
355 select_option("en","Engleski",lang);
356 select_option("fr","Francuski",lang);
357 select_option("ge","Njemaèki",lang);
358 document.write('</select>');
359
360 document.write('<input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="do_filter(this.value);" value="'+get_cookie('w2_lastsearch')+'"/>');
361 // -->
362 </script>
363 <!-- this button is strictly for looks -->
364 <!--
365 <input class="filters" value="filter" type="button" disabled="true"/>
366 -->
367 <input class="submit" type="button" value="Obri¹i !" onClick="javascript:element_id('results').innerHTML = ''; self.document.myfilter.show_status(); return clear_last_search('filterform','textfilter');"/><br/>
368 </div>
369 </form>
370
371 <div id="status">
372 <!--
373 Enter few letters to filter by them
374 -->
375 </div>
376
377 <ul id="results">
378 </ul>
379
380 </td>
381 </tr>
382 </table>
383
384 </body>
385 </html>

  ViewVC Help
Powered by ViewVC 1.1.26