[Mapbender-commits] r8193 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 2 09:12:48 EDT 2011


Author: armin11
Date: 2011-11-02 06:12:48 -0700 (Wed, 02 Nov 2011)
New Revision: 8193

Modified:
   trunk/mapbender/http/plugins/mb_metadata_server.php
Log:
Bugfix for Metadataeditor

Modified: trunk/mapbender/http/plugins/mb_metadata_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_server.php	2011-10-27 09:30:19 UTC (rev 8192)
+++ trunk/mapbender/http/plugins/mb_metadata_server.php	2011-11-02 13:12:48 UTC (rev 8193)
@@ -911,8 +911,7 @@
 				abort(_mb("Problem with parsing the XML structure with SimpleXML! Record was not inserted into database! Ask your administrator."));
 				//give back error message - cause parsing has problems
 			}
-		}/* else { //fill only links into db - do not try to load data
-			//TODO: Extract the information from the link - this should include datasetid!
+		} else { //fill only links or the edited information into db 
 			$sql = <<<SQL
 
 INSERT INTO mb_metadata (link, uuid, origin, title, abstract, format, ref_system, export2csw, inspire_top_consistence, tmp_reference_1, tmp_reference_2, lineage, spatial_res_type, spatial_res_value, inspire_charset, createdate, randomid, update_frequency) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, now(), $16, $17)
@@ -925,9 +924,9 @@
 				$res = db_prep_query($sql,$v,$t);
 			}
 			catch (Exception $e){
-				abort(_mb("Insert of link into database failed!"));
+				abort(_mb("Insert of edited metadata into database failed!"));
 			}
-		}*/
+		}
 		//set relation into relation table
 		//get metadata_id of record which have been inserted before
 		$sql = <<<SQL



More information about the Mapbender_commits mailing list