/[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

Annotation of /trunk2/eurovoc/abecedno.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 596 - (hide annotations)
Tue Nov 16 17:59:54 2004 UTC (16 years, 5 months ago) by dpavlin
File MIME type: text/html
File size: 10818 byte(s)
lektura

1 dpavlin 484 <!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 dpavlin 551 <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 dpavlin 509 // <!--
17 dpavlin 539
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 dpavlin 484 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 dpavlin 548 // define some regexps
37 dpavlin 560 self.document.myfilter.star_regex = new RegExp(/ *#C# */i);
38 dpavlin 548 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 dpavlin 484 self.document.myfilter.result = function (arr) {
51 dpavlin 523 var r_div = element_id('results');
52     if (r_div) {
53     var li = self.document.createElement("li");
54 dpavlin 484 var e = self.document.createElement("a");
55 dpavlin 539 var pic = null;
56    
57 dpavlin 484 e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);
58 dpavlin 548 if (arr[0].match(this.star_regex)) {
59     e.appendChild(this.text_ent(arr[2].replace(this.star_regex,' ')));
60 dpavlin 539 pic = self.document.createElement("img");
61 dpavlin 524 pic.src = 'img/crovoc.png';
62     pic.border = 0;
63     e.appendChild(pic);
64     } else {
65 dpavlin 548 e.appendChild(this.text_ent(arr[2]));
66 dpavlin 524 }
67 dpavlin 523 li.appendChild(e);
68 dpavlin 484
69 dpavlin 523 li.appendChild(self.document.createTextNode(" "));
70 dpavlin 484
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 dpavlin 539 pic = self.document.createElement("img");
76 dpavlin 526 pic.src = 'img/listic.png';
77     pic.border = 0;
78     e.appendChild(pic);
79 dpavlin 523 li.appendChild(e);
80 dpavlin 484
81 dpavlin 523 li.appendChild(self.document.createElement("br"));
82 dpavlin 484
83 dpavlin 523 // append li
84     r_div.appendChild(li);
85    
86 dpavlin 484 } 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 dpavlin 524
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 dpavlin 596 html = "Upi¹ite najmanje "+this.min_len+" poèetna slova za pretra¾ivanje.";
112 dpavlin 524 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 dpavlin 550
121     // time timeout to 500ms
122     self.document.myfilter.timeout = 500;
123 dpavlin 484 }
124    
125 dpavlin 518 function load_lang(lang) {
126 dpavlin 509 // reset results
127 dpavlin 519 if (self.document.myfilter) element_id('results').innerHTML = "";
128 dpavlin 509
129 dpavlin 539 // 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 dpavlin 509 set_cookie('w2_lang', lang);
137 dpavlin 518 element_id('lang').disabled = true;
138     element_id('textfilter').disabled = true;
139 dpavlin 594 element_id('status').innerHTML = "Uèitavanje podataka za jezik. Molimo, prièekajte...";
140 dpavlin 518
141     self.document.myfilter = null;
142    
143     load_js(lang2thes[lang], 'headlines', 'load_lang_finished();' );
144     }
145    
146 dpavlin 531 function do_filter(filter) {
147 dpavlin 551 set_cookie('w2_lastsearch', filter);
148 dpavlin 546 var f = l2_unescape(filter);
149 dpavlin 571 if (! f) f='';
150     if (f.length > 2) f = f.substr(0,2) + unac(f.substr(2,f.length-2));
151 dpavlin 559 if (self.document.myfilter) {
152     element_id('status').innerHTML = "Pretra¾ivanje u tijeku...";
153     self.document.myfilter.filter(f);
154     }
155 dpavlin 531 }
156    
157 dpavlin 518 function load_lang_finished() {
158     //alert("loaded "+lang);
159     myfilter();
160 dpavlin 509 self.document.myfilter.arr=headlines;
161 dpavlin 518 element_id('lang').disabled = false;
162     element_id('textfilter').disabled = false;
163 dpavlin 559 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 dpavlin 518 return false;
170 dpavlin 509 }
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 dpavlin 484 </script>
179     <script type="text/javascript" src="js/hide.js"></script>
180     </head>
181    
182 dpavlin 518 <body onload="load_lang(lang);">
183 dpavlin 484 <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 dpavlin 569 <img src="img/euzajed.gif" border="0" alt="Europske zajednice">
191 dpavlin 484 </td>
192     <td class="logoHidra">
193 dpavlin 569 <img src="img/hidra.gif" border="0" alt="HIDRA logo">
194 dpavlin 484 </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 dpavlin 564 <table border="0" cellspacing="0" cellpadding="0" align="left" width="520">
232 dpavlin 484 <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 dpavlin 594 <table border="0" cellspacing="0" cellpadding="0" width="200">
296 dpavlin 484 <tr>
297     <td colspan="3">&nbsp;</td>
298     </tr>
299     <tr>
300     <td class="topLsv"></td>
301 dpavlin 594 <td class="middle2 bkgSv"></td>
302 dpavlin 484 <td class="topRsv"></td>
303     </tr>
304     <tr>
305 dpavlin 559 <td colspan="3" class="menuItem2">Upute za prikaz <br>abecednih kazala</td>
306 dpavlin 484 </tr>
307     <tr>
308     <td colspan="3" class="menuItem">
309 dpavlin 596 Odaberite jezik i upi¹ite najmanje <em>dva poèetna slova</em> tra¾enoga pojma.
310 dpavlin 484 </td>
311     </tr>
312     <tr>
313     <td colspan="3" class="menuItem">
314 dpavlin 596 Rezultat tra¾enja je popis pronaðenih deskriptora s pripadajuæim potpojmovnikom, te nedeskriptora koji znakom &gt;&gt; upuæuju na deskriptor. Navodi u popisu su ujedno veza prema hijerarhijski strukturiranomu prikazu.
315 dpavlin 484 </td>
316     </tr>
317     <tr>
318     <td colspan="3" class="menuItem">
319 dpavlin 594 Slièica <img src="img/listic.png"> otvara novi prozor s detaljnim prikazom deskriptora.
320 dpavlin 484 </td>
321     </tr>
322     <tr>
323 dpavlin 565 <td colspan="3" class="menuItem">
324 dpavlin 596 Slièica <img src="img/crovoc.png"> oznaèuje deskriptore i nedeskriptore Hrvatskoga dodatka.
325 dpavlin 565 </td>
326     </tr>
327     <tr>
328 dpavlin 484 <td class="bottomLsv"></td>
329 dpavlin 594 <td class="middle2 bkgSv"></td>
330 dpavlin 484 <td class="bottomRsv"></td>
331     </tr>
332     </table>
333    
334     </td>
335    
336    
337 dpavlin 594 <td class="bd2">
338 dpavlin 484
339     <h3>Abecedna kazala</h3>
340    
341 dpavlin 594 <!--
342 dpavlin 484 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
343 dpavlin 509 <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 dpavlin 484 </div>
347 dpavlin 594 -->
348 dpavlin 484
349 dpavlin 551 <form id="filterform" method="get" onsubmit="return false;" action="?" >
350 dpavlin 509 <div class="filters">
351     <script type="text/javascript">
352     // <!--
353 dpavlin 518 document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">');
354 dpavlin 509 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 dpavlin 551
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 dpavlin 509 // -->
362     </script>
363 dpavlin 484 <!-- this button is strictly for looks -->
364 dpavlin 565 <!--
365 dpavlin 518 <input class="filters" value="filter" type="button" disabled="true"/>
366 dpavlin 565 -->
367 dpavlin 551 <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 dpavlin 484 </div>
369     </form>
370    
371 dpavlin 565 <div id="status">
372 dpavlin 484 <!--
373     Enter few letters to filter by them
374     -->
375     </div>
376    
377 dpavlin 523 <ul id="results">
378     </ul>
379 dpavlin 484
380     </td>
381     </tr>
382     </table>
383    
384     </body>
385     </html>

  ViewVC Help
Powered by ViewVC 1.1.26