[Mapbender-commits] r9291 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Oct 2 03:01:02 PDT 2015
Author: armin11
Date: 2015-10-02 03:01:02 -0700 (Fri, 02 Oct 2015)
New Revision: 9291
Modified:
trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php
Log:
Bugfix to solve schema validation issues with Govdata.de
Modified: trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php
===================================================================
--- trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php 2015-09-28 14:03:15 UTC (rev 9290)
+++ trunk/mapbender/http/php/mod_exportMapbenderLayer2CkanObjects.php 2015-10-02 10:01:02 UTC (rev 9291)
@@ -133,6 +133,7 @@
//
$package->timestamp = $maxDate;
$package->point_of_contact_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->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"; //
@@ -223,6 +224,15 @@
$package->terms_of_use->license_id = $mbArray['tou_licence_id'];// "ger-name-nc"; //termsofuse.name - OK
$package->terms_of_use->license_title = $mbArray['tou_licence_title'];// "Datenlizenz Deutschland – Namensnennung – nicht kommerziell"; //termsofuse.description OK
$package->terms_of_use->license_url = $mbArray['tou_licence_url'];// null; //termsofuse.descriptionlink OK
+ //********************************************
+ //new for solving schema problems with govdata 2015-10-02
+ //********************************************
+ $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]->role = "veroeffentlicht";
+ //********************************************
if ($mbArray['service_fees'] != "" || strtoupper($mbArray['service_fees']) != "NONE" || strtoupper($mbArray['service_fees']) != "KEINE") {
$package->terms_of_use->other = $mbArray['service_fees'];//$mbArray['mb_user_id'];// null; // null?
} else {
More information about the Mapbender_commits
mailing list