annotate xul/content/astrosearch.js @ 248:6b1d5d9f9aa0

servlet version 1.19b5 - filename and dpi in request - filename and dpi in dlInfo-*
author robcast
date Wed, 25 Aug 2004 01:06:30 +0200
parents 49cb8a445126
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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+'&cent='+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 }