Commit f56ebbb7b9339563d806573c965b25b77a24a034

Authored by Edmar Moretti
1 parent 07983720

--no commit message

pacotes/cswclient/csw-proxy.php
@@ -53,7 +53,6 @@ if ($_POST['csw_request']) { @@ -53,7 +53,6 @@ if ($_POST['csw_request']) {
53 53
54 //if (substr($_POST['csw_request'],0,5) == "<?xml") { 54 //if (substr($_POST['csw_request'],0,5) == "<?xml") {
55 if (substr($_POST['csw_request'],0,1) == "<") { 55 if (substr($_POST['csw_request'],0,1) == "<") {
56 -  
57 // Is magic quotes on? 56 // Is magic quotes on?
58 if (get_magic_quotes_gpc()) 57 if (get_magic_quotes_gpc())
59 $xmlpost = stripslashes($_POST['csw_request']); 58 $xmlpost = stripslashes($_POST['csw_request']);
pacotes/cswclient/lib/scripts/cswclient.js
@@ -31,6 +31,10 @@ CSWClient.prototype.abreINDE = function(id) @@ -31,6 +31,10 @@ CSWClient.prototype.abreINDE = function(id)
31 { 31 {
32 window.open("http://metadados.inde.gov.br/geonetwork/srv/por/main.home?uuid="+id,"new"); 32 window.open("http://metadados.inde.gov.br/geonetwork/srv/por/main.home?uuid="+id,"new");
33 } 33 }
  34 +CSWClient.prototype.adicionaI3geo = function(wms)
  35 +{
  36 + alert(wms);
  37 +}
34 CSWClient.prototype.setCSWHost = function(host) 38 CSWClient.prototype.setCSWHost = function(host)
35 { 39 {
36 this.cswhost = host; 40 this.cswhost = host;
pacotes/cswclient/lib/xsl/csw-metadata.xsl
@@ -404,29 +404,46 @@ @@ -404,29 +404,46 @@
404 <xsl:template match="dc:URI"> 404 <xsl:template match="dc:URI">
405 <div class="captioneddiv"> 405 <div class="captioneddiv">
406 <br></br> 406 <br></br>
407 - <xsl:choose>  
408 - <xsl:when test="@description = 'WMS'">  
409 - <a> 407 + <xsl:choose>
  408 + <xsl:when test="@description = 'WMS'">
  409 + <div class='paragrafo' style='cursor:pointer;'>
  410 + <xsl:attribute name="onclick">
  411 + csw_client.adicionaI3geo('<xsl:value-of select="."/>');
  412 + </xsl:attribute>
  413 + <img style="cursor:pointer;text-align:left" src="../imagens/branco.gif" class="conectarwms iconeMini iconeGuiaMovelMouseOut" />
  414 +
  415 + <label style='top:-5px;position:relative'>Adiciona ao mapa</label>
  416 + </div>
  417 + <a target='_blank'>
410 <xsl:attribute name="href"> 418 <xsl:attribute name="href">
411 <xsl:value-of select="."/> 419 <xsl:value-of select="."/>
412 </xsl:attribute> 420 </xsl:attribute>
413 <xsl:value-of select="@description" /> 421 <xsl:value-of select="@description" />
414 </a> 422 </a>
415 - </xsl:when>  
416 - <xsl:otherwise>  
417 - <a> 423 +
  424 + </xsl:when>
  425 + <xsl:when test="contains(@protocol,'get-map')">
  426 + <div class='paragrafo' style='cursor:pointer;'>
  427 + <xsl:attribute name="onclick">
  428 + csw_client.adicionaI3geo('<xsl:value-of select="."/>');
  429 + </xsl:attribute>
  430 + <img style="cursor:pointer;text-align:left" src="../imagens/branco.gif" class="conectarwms iconeMini iconeGuiaMovelMouseOut" />
  431 +
  432 + <label style='top:-5px;position:relative;cursor:pointer;'>Adiciona ao mapa</label>
  433 + </div>
  434 + <a target='_blank'>
418 <xsl:attribute name="href"> 435 <xsl:attribute name="href">
419 <xsl:value-of select="."/> 436 <xsl:value-of select="."/>
420 </xsl:attribute> 437 </xsl:attribute>
421 - <xsl:value-of select="@description" /> 438 + <xsl:value-of select="@protocol" />
422 </a> 439 </a>
423 - </xsl:otherwise>  
424 - </xsl:choose>  
425 -  
426 - 440 + </xsl:when>
  441 + </xsl:choose>
427 442
428 </div> 443 </div>
  444 +
429 </xsl:template> 445 </xsl:template>
  446 +
430 <!-- End Metadata Dublin Core --> 447 <!-- End Metadata Dublin Core -->
431 448
432 <!-- Start Utills --> 449 <!-- Start Utills -->