[Mapbender-commits] r1088 - trunk/mapbender/http/html
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Feb 6 12:29:07 EST 2007
Author: nimix
Date: 2007-02-06 12:29:07 -0500 (Tue, 06 Feb 2007)
New Revision: 1088
Modified:
trunk/mapbender/http/html/mod_treefolder2.php
Log:
new metadata link
Modified: trunk/mapbender/http/html/mod_treefolder2.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder2.php 2007-02-06 16:05:50 UTC (rev 1087)
+++ trunk/mapbender/http/html/mod_treefolder2.php 2007-02-06 17:29:07 UTC (rev 1088)
@@ -487,12 +487,8 @@
controls='<input type="checkbox" '+((temp.gui_layer_visible=='1')?'checked ':'')+(temp.gui_layer_selectable!='1'?'disabled ':'')+"onclick=\"handleSelectedLayer('"+mod_treeGDE_map+"','"+parent.mb_mapObj[i].wms[ii].wms_id+"','"+temp.layer_name+"','visible',this.checked?1:0);updateParent('"+parentObj+"');"+((ficheckbox == 'false')?"handleSelectedLayer('"+mod_treeGDE_map+"','"+parent.mb_mapObj[i].wms[ii].wms_id+"','"+temp.layer_name+"','querylayer',this.checked?1:0)":"")+"\" />";
if(ficheckbox == 'true')controls+='<input type="checkbox" '+(temp.gui_layer_querylayer=='1'?'checked ':'')+(temp.gui_layer_queryable!='1'?'disabled ':'')+"onclick=\"handleSelectedLayer('"+mod_treeGDE_map+"','"+parent.mb_mapObj[i].wms[ii].wms_id+"','"+temp.layer_name+"','querylayer',this.checked?1:0)\" />";
- if(wmsbuttons == 'true'&&metadatalink == 'true')controls+='<a href="'+(temp.layer_metadataurl!=''?temp.layer_metadataurl:'../metadata/'+temp.layer_name+".html")+'" target="'+defaultTarget+'"><img src="'+imagedir+'/info.png" /></a>';
- if(temp.layer_metadataurl!=''){
- addNode(parentObj, [temp.layer_name,[temp.layer_title,((metadatalink=='true'&&wmsbuttons != 'true')?temp.layer_metadataurl:"javascript:select("+i+","+ii+","+iii+");"),((metadatalink=='true'&&wmsbuttons != 'true')?defaultTarget:null),(c_menu!='[]'?'menu.png':null),,eval(c_menu),controls,[i,ii,iii]]],false,false);
- }else{
- addNode(parentObj, [temp.layer_name,[temp.layer_title,((metadatalink=='true'&&wmsbuttons != 'true')?'../metadata/'+temp.layer_name+".html":"javascript:select("+i+","+ii+","+iii+");"),((metadatalink=='true'&&wmsbuttons != 'true')?defaultTarget:null),(c_menu!='[]'?'menu.png':null),,eval(c_menu),controls,[i,ii,iii]]],false, false);
- }
+ if(wmsbuttons == 'true'&&metadatalink == 'true')controls+='<a href="'+'javascript:openwindow(\'../php/mod_layerMetadata.php?id='+temp.layer_uid+'\');'+'"><img src="'+imagedir+'/info.png" /></a>';
+ addNode(parentObj, [temp.layer_name,[temp.layer_title,((metadatalink=='true'&&wmsbuttons != 'true')?('javascript:openwindow(\"../php/mod_layerMetadata.php?id='+temp.layer_uid+'\");'):"javascript:select("+i+","+ii+","+iii+");"),,(c_menu!='[]'?'menu.png':null),,eval(c_menu),controls,[i,ii,iii]]],false,false);
}
}
}
More information about the Mapbender_commits
mailing list