[Mapbender-commits] r4521 - branches/mifan_dev/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Aug 13 18:12:40 EDT 2009


Author: mifan
Date: 2009-08-13 18:12:39 -0400 (Thu, 13 Aug 2009)
New Revision: 4521

Modified:
   branches/mifan_dev/mapbender/http/javascripts/mod_searchCSW_ajax.php
Log:
handle search image on/off

Modified: branches/mifan_dev/mapbender/http/javascripts/mod_searchCSW_ajax.php
===================================================================
--- branches/mifan_dev/mapbender/http/javascripts/mod_searchCSW_ajax.php	2009-08-13 21:58:48 UTC (rev 4520)
+++ branches/mifan_dev/mapbender/http/javascripts/mod_searchCSW_ajax.php	2009-08-13 22:12:39 UTC (rev 4521)
@@ -191,7 +191,8 @@
 	
 	
 	// Load service
-
+	
+	/*
 	function mod_addWMSfromDB(gui_id,wms_id) {
 		parent.mod_addWMSById_load(gui_id,wms_id);
 	}
@@ -264,6 +265,7 @@
 			displayWMS(json.wms);
 		});
 	}
+	*/
 
 	// -----------------  Display results --------------------
 
@@ -473,6 +475,8 @@
 
 	//Build CSW query and search
 	function mod_searchCSW(){
+		imageOn();
+		
 		var simplesearchterm = document.getElementById('basic_search').value;
 		try{
 			getrecords_media = document.getElementById('opt_getrecords_media').value;
@@ -499,10 +503,11 @@
 		}
 		else{
 			//handle simple search
-			//imageOn();
+			//imageOff();
 			parent.mb_ajax_json(phpUrl, {"command":"getrecordssimple", "search":simplesearchterm, "getrecordsmedia":getrecords_media,"getrecordsquery":getrecords_query }, function (json, status) {
-				//imageOff();
-				displayRecords(json.cats);
+			//imageOn();	
+			displayRecords(json.cats);
+			imageOff();
 			});
 				
 		}	
@@ -534,7 +539,7 @@
 
 </head>
 
-<body onLoad="setButtons();">
+<body onLoad="imageOff();">
 <h1><?php echo _mb("Catalog Service for Web Client"); ?></h1>
 <div class='note'>
 	<?php echo _mb("Do a Basic or Advanced Search of Catalogs in the system. Please visit the Catalog Admin to add a Catalog"); ?>
@@ -544,13 +549,7 @@
 <form id="capabilitiesForm" name="addURLForm" method="post" action="">
 	<fieldset id="container_capabilities">
 		<legend>Capabilities</legend>
-			<p>
-				<!-- 
-				<label for="CapURL"><?php echo _mb("Capabilities-URL"); ?>:</label> 
-				<input type="text" id="CapURL" name="CapURL" /> 
-				<input type="button" id="addCapURL" name="addCapURL" value="<?php echo _mb("Add WMS"); ?>" onclick="mod_addWmsfromURL();" />
-				 -->
-				 
+			<p> 
 				<label for="basic_search"><?php echo _mb("Search for "); ?>:</label> 
 				<input type="text" id="basic_search" name="basic_search" />
 				<br /> 
@@ -574,19 +573,6 @@
 		<input type="button" id="basic_search_submit" name="addCapURL" value="<?php echo _mb("Search CSW"); ?>" onclick="mod_searchCSW();" />
 </form>
 </div>
-
-<!-- 
-<form id="addWMSForm" name="addWMSForm" method="post" action="">
-<fieldset id="container_buttons">
-<legend>WMS list(s)</legend>
-	<p>
-		<input type="button" name="button_dbAll"   id="button_dbAll"   value="<?php echo _mb("List all WMS"); ?>" onclick="setSource('db');getWMSByGUI(gui_list)">
-		<input type="button" name="button_dbGroup" id="button_dbGroup" value="<?php echo _mb("List WMS by Group"); ?>"   onclick="setSource('db');getGroups()"> 
-		<input type="button" name="button_dbGui"   id="button_dbGui"   value="<?php echo _mb("List WMS by Application"); ?>"     onclick="setSource('db');getGUIs()"> 
-	</p>
-</fieldset>
-</form>
- -->
  
   
 <p id="progressIndicator" name="progressIndicator">



More information about the Mapbender_commits mailing list