[Mapbender-commits] r8454 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Aug 16 05:29:45 PDT 2012


Author: armin11
Date: 2012-08-16 05:29:45 -0700 (Thu, 16 Aug 2012)
New Revision: 8454

Modified:
   trunk/mapbender/http/classes/class_iso19139.php
Log:
Bugfix for metadata editor addon

Modified: trunk/mapbender/http/classes/class_iso19139.php
===================================================================
--- trunk/mapbender/http/classes/class_iso19139.php	2012-08-10 12:00:24 UTC (rev 8453)
+++ trunk/mapbender/http/classes/class_iso19139.php	2012-08-16 12:29:45 UTC (rev 8454)
@@ -589,7 +589,7 @@
 
 	public function isLinkAlreadyInDB(){
 		$sql = <<<SQL
-SELECT metadata_id FROM mb_metadata WHERE link = $1 ORDER BY lastchanged DESC
+SELECT metadata_id FROM mb_metadata WHERE link = $1 AND link <> '' ORDER BY lastchanged DESC
 SQL;
 		$v = array(
 			$this->href
@@ -608,7 +608,7 @@
 	
 	public function isFileIdentifierAlreadyInDB(){
 		$sql = <<<SQL
-SELECT metadata_id, createdate FROM mb_metadata WHERE uuid = $1 ORDER BY lastchanged DESC
+SELECT metadata_id, createdate FROM mb_metadata WHERE uuid = $1 AND uuid <> '' ORDER BY lastchanged DESC
 SQL;
 		if (!isset($this->fileIdentifier) || $this->fileIdentifier == '') {
 			$e = new mb_exception("class_Iso19139:"."Empty or no fileIdentifier found in the metadata! No metadataset will be updated");



More information about the Mapbender_commits mailing list