From 1c54b3a6c7c09429765930302816149fe7c50965 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 22 Sep 2011 00:41:06 +0000 Subject: [PATCH] --- pacotes/cswclient/csw-proxy.php | 11 +++++++++-- pacotes/cswclient/csw.html | 2 +- pacotes/cswclient/lib/css/cswclient.css | 7 +++++-- pacotes/cswclient/lib/scripts/cswclient.js | 9 ++++++--- pacotes/cswclient/lib/xml/csw-hosts.xml | 1 + pacotes/cswclient/lib/xsl/csw-results.xsl | 275 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------- 6 files changed, 246 insertions(+), 59 deletions(-) diff --git a/pacotes/cswclient/csw-proxy.php b/pacotes/cswclient/csw-proxy.php index 19c442e..eb1dfa9 100644 --- a/pacotes/cswclient/csw-proxy.php +++ b/pacotes/cswclient/csw-proxy.php @@ -99,9 +99,16 @@ curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Make the call -$xml = curl_exec($session); - +//$xml = curl_exec($session); // The web service returns XML. Set the Content-Type appropriately +if(file_exists("c:/temp/csw.xml")){ + $fp = fopen("c:/temp/csw.xml","r"); + $xml = fread($fp,filesize("c:/temp/csw.xml")); + fclose($fp); +} +else +{$xml = curl_exec($session);} + header("Content-Type: text/xml"); if ($logging) { diff --git a/pacotes/cswclient/csw.html b/pacotes/cswclient/csw.html index 36b3ffa..84ca83f 100644 --- a/pacotes/cswclient/csw.html +++ b/pacotes/cswclient/csw.html @@ -79,7 +79,7 @@ //var csw_client = new CSWClient(cswhost, host); // if not using default settings //var csw_client = new CSWClient("http://geonovum.nitg.tno.nl/geonetwork/srv/en/csw"); var csw_client = new CSWClient("http://www.metadados.inde.gov.br/geonetwork/srv/br/csw"); - //var csw_client = new CSWClient("http://127.0.0.1:8080/geonetwork/srv/en/csw"); + //var csw_client = new CSWClient("http://localhost:8080/geonetwork/srv/en/csw"); csw_client.writeClient("csw-wrapper"); //csw_client.useProxy(false); // default=true diff --git a/pacotes/cswclient/lib/css/cswclient.css b/pacotes/cswclient/lib/css/cswclient.css index ec45f6d..f587307 100644 --- a/pacotes/cswclient/lib/css/cswclient.css +++ b/pacotes/cswclient/lib/css/cswclient.css @@ -112,15 +112,18 @@ .meta-param { vertical-align: top; - color: #004393 + color: #004393; + font-size: 13px; + width:100px; } .meta-value { vertical-align: top; + font-size:13px; } h3 { - font-size: 1.1em; + font-size: 13px; color: #21507B; margin-top: 0.6em; } diff --git a/pacotes/cswclient/lib/scripts/cswclient.js b/pacotes/cswclient/lib/scripts/cswclient.js index 76c04f4..d50c87e 100644 --- a/pacotes/cswclient/lib/scripts/cswclient.js +++ b/pacotes/cswclient/lib/scripts/cswclient.js @@ -234,7 +234,8 @@ CSWClient.prototype.clearPage = function() CSWClient.prototype.overlayDiv = function(div) { - while (div.tagName !="DIV") { + div = document.getElementById("popup2"); + while (div.tagName !="DIV") { div = div.parentNode } @@ -300,7 +301,8 @@ CSWClient.prototype.positionPopUp = function(div1, div2) CSWClient.prototype.findPosX = function(obj) { - var curleft = 0; + return 0; + var curleft = 0; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; @@ -315,7 +317,8 @@ CSWClient.prototype.findPosX = function(obj) CSWClient.prototype.findPosY = function(obj) { - var curtop = 0; + return 0; + var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; diff --git a/pacotes/cswclient/lib/xml/csw-hosts.xml b/pacotes/cswclient/lib/xml/csw-hosts.xml index a3bb2e8..d443d4d 100644 --- a/pacotes/cswclient/lib/xml/csw-hosts.xml +++ b/pacotes/cswclient/lib/xml/csw-hosts.xml @@ -4,5 +4,6 @@ + diff --git a/pacotes/cswclient/lib/xsl/csw-results.xsl b/pacotes/cswclient/lib/xsl/csw-results.xsl index 5fe1ca8..ca4e888 100644 --- a/pacotes/cswclient/lib/xsl/csw-results.xsl +++ b/pacotes/cswclient/lib/xsl/csw-results.xsl @@ -1,8 +1,14 @@ - - + - + xmlns:dct="http://purl.org/dc/terms/" + xmlns:ows="http://www.opengis.net/ows" + xmlns:cat="http://www.esri.com/metadata/csw/"> + + + @@ -77,64 +83,231 @@
-
    - - - - -
  1. - Title: - - - javascript:(csw_client.getRecordById - (' - - ')) - - + +
    + +
    + -
    -
    - -
    - Keywords: - - - , - - - -
    -
  2. -
    -
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Mais info: + + + javascript:csw_client.getRecordById + (' + + ') + + + +
+
+ + + +
+ + + + + + + + + + + + +

Resumo: + +
- + + + + Organização: + + + + + + e-mail: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Download: + + + + + +
Esri ArcIms: + + + + + +
OGC-WMS: + + javascript:void(window.open(' + + ')) + + + +
OGC-WMS Capabilities: + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + +

+ + + + - x + - - Abstract: - - ... - - - javascript:(csw_client.getRecordById - (' - - ')) - - more - + + + + + + + + : + + + + + + + + + + + + + + + : + + + + + + + -- libgit2 0.21.2