[Mapbender-commits] r10107 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Apr 17 23:59:36 PDT 2019
Author: armin11
Date: 2019-04-17 23:59:35 -0700 (Wed, 17 Apr 2019)
New Revision: 10107
Modified:
trunk/mapbender/http/classes/class_metadata.php
Log:
Integrate loadCount field in json result from searchInterface for wmc and dataset
Modified: trunk/mapbender/http/classes/class_metadata.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata.php 2019-04-17 13:16:13 UTC (rev 10106)
+++ trunk/mapbender/http/classes/class_metadata.php 2019-04-18 06:59:35 UTC (rev 10107)
@@ -558,6 +558,7 @@
$this->wmcJSON->wmc->srv[$i]->title = $wmcMatrix[$i]['wmc_title'];
$this->wmcJSON->wmc->srv[$i]->abstract = $wmcMatrix[$i]['wmc_abstract'];
$this->wmcJSON->wmc->srv[$i]->date = date("d.m.Y",$wmcMatrix[$i]['wmc_timestamp']);
+ $this->wmcJSON->wmc->srv[$i]->loadCount = $wmcMatrix[$i]['load_count'];
$this->wmcJSON->wmc->srv[$i]->respOrg = $wmcMatrix[$i]['mb_group_name'];
$this->wmcJSON->wmc->srv[$i]->logoUrl = $wmcMatrix[$i]['mb_group_logo_path'];
$this->wmcJSON->wmc->srv[$i]->mdLink = "http://".$this->hostName."/mapbender/php/mod_showMetadata.php?languageCode=".$this->languageCode."&resource=wmc&layout=tabs&id=".$wmcMatrix[$i]['wmc_id'];
@@ -614,6 +615,7 @@
$this->datasetJSON->dataset->srv[$i]->uuid = $datasetMatrix[$i]['fileidentifier'];
$this->datasetJSON->dataset->srv[$i]->abstract = $datasetMatrix[$i]['dataset_abstract'];
$this->datasetJSON->dataset->srv[$i]->date = date("Y-m-d",strtotime($datasetMatrix[$i]['dataset_timestamp']));
+ $this->datasetJSON->dataset->srv[$i]->loadCount = $datasetMatrix[$i]['load_count'];
$this->datasetJSON->dataset->srv[$i]->respOrg = $datasetMatrix[$i]['mb_group_name'];
$this->datasetJSON->dataset->srv[$i]->logoUrl = $datasetMatrix[$i]['mb_group_logo_path'];
list($hasConstraints, $symbolLink) = $this->hasConstraints("dataset", $datasetMatrix[$i]['dataset_id']);
More information about the Mapbender_commits
mailing list