[Mapbender-commits] r9294 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 9 04:47:53 PDT 2015


Author: armin11
Date: 2015-10-09 04:47:53 -0700 (Fri, 09 Oct 2015)
New Revision: 9294

Modified:
   trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php
Log:
Enhance export to govdata

Modified: trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php
===================================================================
--- trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php	2015-10-05 13:07:31 UTC (rev 9293)
+++ trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php	2015-10-09 11:47:53 UTC (rev 9294)
@@ -133,9 +133,10 @@
 	//
 	$package->timestamp = $maxDate;
 	$package->point_of_contact_email = $mbArray['group_email'];//"poststelle at lvermgeo.rlp"; //mb_group.mb_group_email
-		
+	$package->maintainer_email = $mbArray['group_email'];//"poststelle at lvermgeo.rlp"; //mb_group.mb_group_email
 	$package->license = $mbArray['tou_licence_title'];//"Datenlizenz Deutschland – Namensnennung – nicht kommerziell"; // termsofuse.description
 	$package->author = $mbArray['mb_user_id'];//""; //mb_group.mb_group_name
+	$package->url = 'http://www.geoportal.rlp.de';//""; //mb_group.mb_group_name
 	$package->download_url = $mapbenderUrl."/php/wms.php?layer_id=".$mbArray['resource_id']."&REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS";//$mbArray['mb_user_id'];//"http://www.geoportal.rlp.de/portal/karten.html?LAYER[zoom]=1&LAYER[id]=36699"; //
 	$package->version = "";//$mbArray['mb_user_id'];//""; //		
 	$package->groups = array();
@@ -230,7 +231,7 @@
 	$package->extras->terms_of_use->license_url = $mbArray['tou_licence_url'];
 	$package->maintainer_email = $mbArray['group_email'];//"poststelle at lvermgeo.rlp"; //mb_group.mb_group_email
 	$package->url = $wrapperUrl."?LAYER[zoom]=1&LAYER[id]=".$mbArray['resource_id'];// "http://www.geoportal.rlp.de/portal/karten.html?LAYER[zoom]=1&LAYER[id]=36699"; //constant .. ids
-	$package->extras->dates[0]->date = date("Y-m-d H:i:s",strtotime($mbArray['service_timestamp']));//example from Hamburg: "dates": "[{\"date\": \"2014-09-01T00:00:00\", \"role\": \"veroeffentlicht\"}]"
+	$package->extras->dates[0]->date = date("Y-m-dTH:i:s",strtotime($mbArray['service_timestamp']));//example from Hamburg: "dates": "[{\"date\": \"2014-09-01T00:00:00\", \"role\": \"veroeffentlicht\"}]"
 	$package->extras->dates[0]->role = "veroeffentlicht";
 	//********************************************
 	if ($mbArray['service_fees'] != "" || strtoupper($mbArray['service_fees']) != "NONE" || strtoupper($mbArray['service_fees']) != "KEINE") {



More information about the Mapbender_commits mailing list