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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 18 07:28:34 EDT 2011


Author: armin11
Date: 2011-10-18 04:28:34 -0700 (Tue, 18 Oct 2011)
New Revision: 8188

Modified:
   trunk/mapbender/http/php/mod_layerISOMetadata.php
Log:
Rewind global exchange of comments # :-( - they are needed for xml

Modified: trunk/mapbender/http/php/mod_layerISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_layerISOMetadata.php	2011-10-18 11:14:27 UTC (rev 8187)
+++ trunk/mapbender/http/php/mod_layerISOMetadata.php	2011-10-18 11:28:34 UTC (rev 8188)
@@ -138,7 +138,7 @@
 	$MD_Metadata->setAttribute("xmlns:gco", "http://www.isotc211.org/2005/gco");
 	$MD_Metadata->setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
 	$MD_Metadata->setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
-	$MD_Metadata->setAttribute("xsi:schemaLocation", "http://www.isotc211.org/2005/gmd ./xsd/gmd/gmd.xsd://www.isotc211.org/2005/srv ./xsd/srv/srv.xsd");
+	$MD_Metadata->setAttribute("xsi:schemaLocation", "http://www.isotc211.org/2005/gmd ./xsd/gmd/gmd.xsd http://www.isotc211.org/2005/srv ./xsd/srv/srv.xsd");
 
 	//generate identifier part 
 	$identifier = $iso19139->createElement("gmd:fileIdentifier");
@@ -156,7 +156,7 @@
 	//generate language part B 10.3 (if available) of the inspire metadata regulation
 	$language = $iso19139->createElement("gmd:language");
 	$languagecode = $iso19139->createElement("gmd:LanguageCode");
-	$languagecode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//LanguageCode");
+	$languagecode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#LanguageCode");
 	if (isset($mapbenderMetadata['metadata_language'])) {
 		$languageText = $iso19139->createTextNode($mapbenderMetadata['metadata_language']);
 		$languagecode->setAttribute("codeListValue", $mapbenderMetadata['metadata_language']);
@@ -180,7 +180,7 @@
 	//generate MD_Scope part B 1.3 (if available)
 	$hierarchyLevel = $iso19139->createElement("gmd:hierarchyLevel");
 	$scopecode = $iso19139->createElement("gmd:MD_ScopeCode");
-	$scopecode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//MD_ScopeCode");
+	$scopecode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#MD_ScopeCode");
 	if (isset($mapbenderMetadata['hierarchy_level'])) {
 		$scopecode->setAttribute("codeListValue", $mapbenderMetadata['hierarchy_level']);//if such a metadata exists in the mapbender metadata view
 		$scopeText = $iso19139->createTextNode($mapbenderMetadata['hierarchy_level']);
@@ -229,7 +229,7 @@
 	}
 	$role=$iso19139->createElement("gmd:role");
 	$CI_RoleCode=$iso19139->createElement("gmd:CI_RoleCode");
-	$CI_RoleCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//CI_RoleCode");
+	$CI_RoleCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_RoleCode");
 	$CI_RoleCode->setAttribute("codeListValue", "pointOfContact");
 	$CI_RoleCodeText=$iso19139->createTextNode("pointOfContact");
 
@@ -309,7 +309,7 @@
 		$gcoDate=$iso19139->createElement("gco:Date");
 		$dateType=$iso19139->createElement("gmd:dateType");
 		$dateTypeCode=$iso19139->createElement("gmd:CI_DateTypeCode");
-		$dateTypeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//CI_DateTypeCode");
+		$dateTypeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode");
 		$dateTypeCode->setAttribute("codeListValue", "publication");
 		$dateTypeCodeText=$iso19139->createTextNode('publication');
 		$dateText= $iso19139->createTextNode(date('Y-m-d',$mapbenderMetadata['wms_timestamp_create']));
@@ -330,7 +330,7 @@
 		$gcoDate=$iso19139->createElement("gco:Date");
 		$dateType=$iso19139->createElement("gmd:dateType");
 		$dateTypeCode=$iso19139->createElement("gmd:CI_DateTypeCode");
-		$dateTypeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//CI_DateTypeCode");
+		$dateTypeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode");
 		$dateTypeCode->setAttribute("codeListValue", "revision");
 		$dateTypeCodeText=$iso19139->createTextNode('revision');
 		$dateText= $iso19139->createTextNode(date('Y-m-d',$mapbenderMetadata['wms_timestamp']));
@@ -351,7 +351,7 @@
 		$gcoDate=$iso19139->createElement("gco:Date");
 		$dateType=$iso19139->createElement("gmd:dateType");
 		$dateTypeCode=$iso19139->createElement("gmd:CI_DateTypeCode");
-		$dateTypeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//CI_DateTypeCode");
+		$dateTypeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode");
 		$dateTypeCode->setAttribute("codeListValue", "creation");
 		$dateTypeCodeText=$iso19139->createTextNode('creation');
 		$dateText= $iso19139->createTextNode(date('Y-m-d',$mapbenderMetadata['wms_timestamp_creation']));
@@ -394,7 +394,7 @@
 	$email_cs=$iso19139->createElement("gco:CharacterString");
 	$role=$iso19139->createElement("gmd:role");
 	$CI_RoleCode=$iso19139->createElement("gmd:CI_RoleCode");
-	$CI_RoleCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//CI_RoleCode");
+	$CI_RoleCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_RoleCode");
 	$CI_RoleCode->setAttribute("codeListValue", "publisher");
 	if (isset($mapbenderMetadata['contactorganization'])) {
 		$resOrgaText = $iso19139->createTextNode($mapbenderMetadata['contactorganization']);
@@ -452,7 +452,7 @@
 		$MD_BrowseGraphic=$iso19139->createElement("gmd:MD_BrowseGraphic");
 		$fileName=$iso19139->createElement("gmd:fileName");
 		$fileName_cs=$iso19139->createElement("gco:CharacterString");
-		$previewFilenameText = $iso19139->createTextNode("http://www.geoportal.rlp.de/mapbender/geoportal/preview/".$mapbenderMetadata['layer_id']."_layer_map_preview.jpg");
+		$previewFilenameText = $iso19139->createTextNode("http://www.geoportal.rlp.de/mapbender/geoportal/preview/".$mapbenderMetadata['layer_id']."_layer_map_preview.jpg"); //TODO use constant for absolute path
 		$fileName_cs->appendChild($previewFilenameText);
 		$fileName->appendChild($fileName_cs);
 
@@ -557,7 +557,7 @@
 	$MD_LegalConstraints=$iso19139->createElement("gmd:MD_LegalConstraints");
 	$accessConstraints=$iso19139->createElement("gmd:accessConstraints");
 	$MD_RestrictionCode=$iso19139->createElement("gmd:MD_RestrictionCode");
-	$MD_RestrictionCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//MD_RetrictionCode");
+	$MD_RestrictionCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#MD_RetrictionCode");
 	$MD_RestrictionCode->setAttribute("codeListValue", "otherRestrictions");
 	$MD_RestrictionCodeText=$iso19139->createTextNode("otherRestrictions");
 	$otherConstraints=$iso19139->createElement("gmd:otherConstraints");
@@ -680,7 +680,7 @@
 </srv:couplingType>
 <srv:couplingType gco:nilReason="missing"/>
 <srv:containsOperations gco:nilReason="missing"/>
-<srv:operatesOn xlink:href="http://image2000.jrc.it//image2000_1_nl2_multi"/>*/
+<srv:operatesOn xlink:href="http://image2000.jrc.it#image2000_1_nl2_multi"/>*/
 	
 	//to the things which have to be done for integrating the service into a client like portalu ... they have defined another location to put the GetCap URL than INSPIRE does it
 
@@ -732,7 +732,7 @@
 	$SV_ServiceIdentification->appendChild($containsOperation);
 
 	//fill in operatesOn fields with datasetid if given
-	/*INSPIRE example: <srv:operatesOn xlink:href="http://image2000.jrc.it//image2000_1_nl2_multi"/>*/
+	/*INSPIRE example: <srv:operatesOn xlink:href="http://image2000.jrc.it#image2000_1_nl2_multi"/>*/
 	while ($row_metadata = db_fetch_array($res_metadataurl)) {
 			switch ($row_metadata['origin']) {
 				case 'capabilities':
@@ -841,7 +841,7 @@
 	$gmd_level=$iso19139->createElement("gmd:level");
 	$MD_ScopeCode=$iso19139->createElement("gmd:MD_ScopeCode");
 	$MD_ScopeCodeText=$iso19139->createTextNode("service");
-	$MD_ScopeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//MD_ScopeCode");
+	$MD_ScopeCode->setAttribute("codeList", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#MD_ScopeCode");
 	$MD_ScopeCode->setAttribute("codeListValue", "service");
 	$MD_ScopeCode->appendChild($MD_ScopeCodeText);
 	$gmd_level->appendChild($MD_ScopeCode);
@@ -868,7 +868,7 @@
 	
 	$gmd_dateType=$iso19139->createElement("gmd:dateType");
 	$CI_DateTypeCode=$iso19139->createElement("gmd:CI_DateTypeCode");
-	$CI_DateTypeCode->setAttribute("codeList","http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml//CI_DateTypeCode");
+	$CI_DateTypeCode->setAttribute("codeList","http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode");
 	$CI_DateTypeCode->setAttribute("codeListValue","publication");
 	$CI_DateTypeCodeText=$iso19139->createTextNode("publication");
 	



More information about the Mapbender_commits mailing list