[Mapbender-commits] r7819 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 17 06:04:08 EDT 2011
Author: armin11
Date: 2011-05-17 03:04:08 -0700 (Tue, 17 May 2011)
New Revision: 7819
Modified:
trunk/mapbender/http/php/mod_dataISOMetadata.php
Log:
Extension to show uploaded metadata
Modified: trunk/mapbender/http/php/mod_dataISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_dataISOMetadata.php 2011-05-17 10:03:36 UTC (rev 7818)
+++ trunk/mapbender/http/php/mod_dataISOMetadata.php 2011-05-17 10:04:08 UTC (rev 7819)
@@ -134,6 +134,23 @@
}
//if xml has been harvested - push this xml from database, if not just harvest it and push the result
break;
+ case 'upload':
+ if ($mb_metadata['harvestresult'] == 1) {
+ if ($_REQUEST['VALIDATE'] != "true") {
+ header("Content-type: text/xml");
+ echo $mb_metadata['data'];
+ die();
+ } else {
+ validateInspireMetadataFromData($row['data']);
+ die();
+ }
+ } else {
+ //send error report - metadata has not been harvested - maybe
+ $errMsg = "Metadata should have been harvested, but some unkown error occured";
+ echo $errMsg;
+ die();
+ }
+ break;
case 'capabilities':
//do the same as for the external case but all from caps should be harvested
if ($mb_metadata['harvestresult'] == 1) {
More information about the Mapbender_commits
mailing list