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 53  
54 54 //if (substr($_POST['csw_request'],0,5) == "<?xml") {
55 55 if (substr($_POST['csw_request'],0,1) == "<") {
56   -
57 56 // Is magic quotes on?
58 57 if (get_magic_quotes_gpc())
59 58 $xmlpost = stripslashes($_POST['csw_request']);
... ...
pacotes/cswclient/lib/scripts/cswclient.js
... ... @@ -31,6 +31,10 @@ CSWClient.prototype.abreINDE = function(id)
31 31 {
32 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 38 CSWClient.prototype.setCSWHost = function(host)
35 39 {
36 40 this.cswhost = host;
... ...
pacotes/cswclient/lib/xsl/csw-metadata.xsl
... ... @@ -404,29 +404,46 @@
404 404 <xsl:template match="dc:URI">
405 405 <div class="captioneddiv">
406 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 418 <xsl:attribute name="href">
411 419 <xsl:value-of select="."/>
412 420 </xsl:attribute>
413 421 <xsl:value-of select="@description" />
414 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 435 <xsl:attribute name="href">
419 436 <xsl:value-of select="."/>
420 437 </xsl:attribute>
421   - <xsl:value-of select="@description" />
  438 + <xsl:value-of select="@protocol" />
422 439 </a>
423   - </xsl:otherwise>
424   - </xsl:choose>
425   -
426   -
  440 + </xsl:when>
  441 + </xsl:choose>
427 442  
428 443 </div>
  444 +
429 445 </xsl:template>
  446 +
430 447 <!-- End Metadata Dublin Core -->
431 448  
432 449 <!-- Start Utills -->
... ...