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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 24 01:42:31 PST 2017


Author: armin11
Date: 2017-01-24 01:42:31 -0800 (Tue, 24 Jan 2017)
New Revision: 9672

Modified:
   trunk/mapbender/http/plugins/mb_metadata_manager_server.php
Log:
Add column for origin of metadata

Modified: trunk/mapbender/http/plugins/mb_metadata_manager_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_manager_server.php	2017-01-24 09:42:07 UTC (rev 9671)
+++ trunk/mapbender/http/plugins/mb_metadata_manager_server.php	2017-01-24 09:42:31 UTC (rev 9672)
@@ -77,21 +77,23 @@
 		$numberFeaturetypes++;
 	}
 	$row[$coupledResourceRow+1] = rtrim($row[$coupledResourceRow+1], ', ');
+	//origin
+	
 	//add column for defining searchability
-	if ($row[7] == "t") {
-		$row[7] = "<input style='cursor:pointer;' class='toggleSearchability' title='"._mb("Toggle searchability")."' type='checkbox' checked/>";
+	if ($row[8] == "t") {
+		$row[8] = "<input style='cursor:pointer;' class='toggleSearchability' title='"._mb("Toggle searchability")."' type='checkbox' checked/>";
 	} else {
-		$row[7] = "<input style='cursor:pointer;' class='toggleSearchability' title='"._mb("Toggle searchability")."' type='checkbox'/>";
+		$row[8] = "<input style='cursor:pointer;' class='toggleSearchability' title='"._mb("Toggle searchability")."' type='checkbox'/>";
 	}
-	if ($row[8] == "t") {
-		$row[8] = "<input style='cursor:pointer;' class='toggleExport' title='"._mb("Toggle catalogue export")."' type='checkbox' checked/>";
+	if ($row[9] == "t") {
+		$row[9] = "<input style='cursor:pointer;' class='toggleExport' title='"._mb("Toggle catalogue export")."' type='checkbox' checked/>";
 	} else {
-		$row[8] = "<input style='cursor:pointer;' class='toggleExport' title='"._mb("Toggle catalogue export")."' type='checkbox'/>";
+		$row[9] = "<input style='cursor:pointer;' class='toggleExport' title='"._mb("Toggle catalogue export")."' type='checkbox'/>";
 	}
 	//add column for deleting metadata
 	$row[] = "<img style='cursor:pointer;' class='deleteImg' title='"._mb("Delete")."' src='../img/cross.png' />";
 	if ($withOutFirstColumn == true) {
-		$newRow = array($row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9]);
+		$newRow = array($row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[10]);
 		$row = $newRow;
 	}
 	return $row;
@@ -272,6 +274,7 @@
 			_mb("Last changed"),
 			_mb("Layers"),
 			_mb("Featuretypes"),
+			_mb("Origin"),
 			_mb("Searchability"),
 			_mb("Catalogue export"),
 			_mb("Delete")
@@ -319,7 +322,7 @@
 
 $sqlAll = <<<SQL
 
-	SELECT metadata_id as metadata_id, metadata_id as id, uuid, title, lastchanged, f_get_coupled_resources(metadata_id), searchable, export2csw FROM mb_metadata WHERE  (mb_metadata.metadata_id IN ($metadataList)
+	SELECT metadata_id as metadata_id, metadata_id as id, uuid, title, lastchanged, f_get_coupled_resources(metadata_id), origin, searchable, export2csw FROM mb_metadata WHERE (mb_metadata.metadata_id IN ($metadataList)
 
 SQL;
 		if (isset($sSearch)) {



More information about the Mapbender_commits mailing list