[Mapbender-commits] r7165 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 25 09:33:19 EST 2010


Author: verenadiewald
Date: 2010-11-25 06:33:19 -0800 (Thu, 25 Nov 2010)
New Revision: 7165

Modified:
   trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js
   trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php
Log:
changed creation of show metadata link

Modified: trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js	2010-11-25 13:16:37 UTC (rev 7164)
+++ trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js	2010-11-25 14:33:19 UTC (rev 7165)
@@ -99,7 +99,7 @@
 	}
 	
 	this.enableShowMetadataLink = function () {
-		var linkHref = $("#wmc_showMetadata").attr("href") + wmcId;
+		var linkHref = "../php/mod_showMetadata.php?languageCode=" + Mapbender.languageId + "&resource=wmc&id=" + wmcId;
 		$("#wmc_showMetadata").attr("href",linkHref);
 	}
 

Modified: trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php	2010-11-25 13:16:37 UTC (rev 7164)
+++ trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php	2010-11-25 14:33:19 UTC (rev 7165)
@@ -28,7 +28,7 @@
 	</p>
 -->	
 	<p>
-		<a id='wmc_showMetadata' class='cancelClickEvent' target='_blank' href='../php/mod_showMetadata.php?languageCode=<?php echo Mapbender::session()->get("mb_lang");?>&resource=wmc&id='><?php echo _mb("Metadata");?></a>
+		<a id='wmc_showMetadata' class='cancelClickEvent' target='_blank' href=''><?php echo _mb("Metadata");?></a>
 	</p>
 	<p>
 		<label for="wmc_title"><?php echo _mb("WMC Title (OWS)");?>:</label>



More information about the Mapbender_commits mailing list