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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jul 1 03:33:29 PDT 2015


Author: armin11
Date: 2015-07-01 03:33:29 -0700 (Wed, 01 Jul 2015)
New Revision: 9231

Modified:
   trunk/mapbender/http/php/mod_inspireAtomFeedISOMetadata.php
Log:
Bugfix for uuid generator of atom feed service metadata

Modified: trunk/mapbender/http/php/mod_inspireAtomFeedISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireAtomFeedISOMetadata.php	2015-06-29 12:27:37 UTC (rev 9230)
+++ trunk/mapbender/http/php/mod_inspireAtomFeedISOMetadata.php	2015-07-01 10:33:29 UTC (rev 9231)
@@ -479,15 +479,15 @@
 	$identifier = $iso19139->createElement("gmd:fileIdentifier");
 	$identifierString = $iso19139->createElement("gco:CharacterString");
 	//How to generate UUIDs for INSPIRE Download Service Metadata records (not really needed for INSPIRE!!! See DB Metadata)
-	//12-4-4-4-8
+	//8-4-4-4-12
 	//dataurl
-	//LAYER uuid (12-4), Type (4) - 0001, MD uuid (4-8)
+	//LAYER uuid (8-4), Type (4) - 0001, MD uuid (4-12)
 	//wfs
-	//WFS uuid (12-4), MD uuid (4-4-8)
+	//WFS uuid (8-4), MD uuid (4-4-12)
 	//wmsgetmap
-	//WMS uuid (12-4), Type (4) - 0002, MD uuid (4-8)
+	//WMS uuid (8-4), Type (4) - 0002, MD uuid (4-12)
 	//metadata
-	//metadata uuid (12-4),hash(downloadLink) (4-8);
+	//metadata uuid (8-4),hash(downloadLink) (4-12);
 
 	if (isset($mapbenderMetadata['serviceUuid']) && $mapbenderMetadata['serviceUuid'] != '' ) {
 		$servicePart = explode('-',$mapbenderMetadata['serviceUuid']);
@@ -508,7 +508,7 @@
 				//$dlsFileIdentifier = $servicePart[0]."-".$servicePart[1]."-".$mdPart[2]."-".$mdPart[3]."-".$mdPart[4];
 				//generate hash from downloadLink
 				$linkPart = md5($mapbenderMetadata['downloadLink']);
-				$dlsFileIdentifier = $mdPart[0]."-".$mdPart[1]."-".$mdPart[2]."-".substr($linkPart, -12, 4)."-".substr($linkPart, -8, 8);
+				$dlsFileIdentifier = $mdPart[0]."-".$mdPart[1]."-".$mdPart[2]."-".substr($linkPart, -12, 4)."-".substr($linkPart, -12, 12);
 			break;
 		}
 		$identifierText = $iso19139->createTextNode($dlsFileIdentifier);



More information about the Mapbender_commits mailing list