Mercurial > hg > digilib
annotate xul/content/astrosearch.js @ 265:cfd5899eb2f5
Servlet version 1.21b3
- searching in directories got faster (real binarySearch now!)
- cached file lists get disposed
- some code cleaning (Map types instead of HashMap)
| author | robcast |
|---|---|
| date | Tue, 12 Oct 2004 16:06:43 +0200 |
| parents | 49cb8a445126 |
| children |
| rev | line source |
|---|---|
|
199
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
1 var key=''; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
2 |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
3 function start_search(){ |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
4 var target_iframe=document.getElementById('astro_resultframe'); |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
5 var boolIsManuscript=document.getElementById("manuscript").selected==true; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
6 var strDocType="image"; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
7 if (boolIsManuscript){ |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
8 strDocType="manuscript"; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
9 } |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
10 var strLibrary=document.getElementById("bibliothek").label; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
11 var strCentury=document.getElementById("century").label; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
12 var strAuthor=document.getElementById('autorenkontext').label; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
13 var strImageType=document.getElementById('bildtyp').label; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
14 |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
15 //target_iframe.setAttribute('src','astro_search.jsp?key='+key+'&cat='+search_category+'&str='+search_string); |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
16 //target_iframe.setAttribute('src','result.htm'); |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
17 target_iframe.setAttribute('src','http://hera.unibe.ch:8080/alcatraz/xul/astro_search.jsp?doctype='+strDocType+'&lib='+strLibrary+'&aut='+strAuthor+'¢='+strCentury+'&type='+strImageType); |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
18 } |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
19 |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
20 |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
21 function changeRadioGroup(sel){ |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
22 key=sel.id; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
23 if (key=="image"){ |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
24 document.getElementById("bildtyp").disabled=false; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
25 document.getElementById("lblbildtyp").disabled=false; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
26 document.getElementById("bildtyp").label="all"; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
27 }else{ |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
28 document.getElementById("bildtyp").disabled=true; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
29 document.getElementById("lblbildtyp").disabled=true; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
30 document.getElementById("bildtyp").label=""; |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
31 } |
|
49cb8a445126
restarting with version control of xul sidebar/toolbar
luginbue
parents:
diff
changeset
|
32 } |
