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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Oct 23 22:28:25 PDT 2019


Author: armin11
Date: 2019-10-23 22:28:25 -0700 (Wed, 23 Oct 2019)
New Revision: 10298

Modified:
   trunk/mapbender/http/classes/class_metadata.php
Log:
Add boolean attribute internal for application metadata result list in searchInterface

Modified: trunk/mapbender/http/classes/class_metadata.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata.php	2019-10-23 08:43:28 UTC (rev 10297)
+++ trunk/mapbender/http/classes/class_metadata.php	2019-10-24 05:28:25 UTC (rev 10298)
@@ -864,11 +864,11 @@
 				$applicationMatrix[$i][$notNullElement] = false;
 			    }
 			}
-/*if (($applicationMatrix[$i]['fkey_gui_id'] != false && $applicationMatrix[$i]['fkey_mapviewer_id'] != false) || ($applicationMatrix[$i]['fkey_wmc_serial_id'] != false && $applicationMatrix[$i]['fkey_mapviewer_id'] != false)) {
-$accessUrl = $admin->getMapviewerInvokeUrl($applicationMatrix[$i]['fkey_mapviewer_id'], $applicationMatrix[$i]['fkey_gui_id'], $applicationMatrix[$i]['fkey_wmc_serial_id']);
+if (($applicationMatrix[$i]['fkey_gui_id'] != false && $applicationMatrix[$i]['fkey_mapviewer_id'] != false) || ($applicationMatrix[$i]['fkey_wmc_serial_id'] != false && $applicationMatrix[$i]['fkey_mapviewer_id'] != false)) {
+   $this->applicationJSON->application->srv[$i]->internal = true;
 } else {
-$accessUrl = $applicationMatrix[$i]['link'];
-}*/
+   $this->applicationJSON->application->srv[$i]->internal = false;
+}
 $previewUrl = $admin->getMetadataPreviewUrl($applicationMatrix[$i]['metadata_id']);
 $this->applicationJSON->application->srv[$i]->accessURL = $accessUrl;
 			$this->applicationJSON->application->srv[$i]->previewURL = $previewUrl;



More information about the Mapbender_commits mailing list