Commit 4917224e64e77279af670a2761f7391e70f94ed5

Authored by Edmar Moretti
1 parent 7c4bf9d8

$1

admin/js/estat_editor.js
@@ -527,9 +527,9 @@ i3GEOadmin.editor = { @@ -527,9 +527,9 @@ i3GEOadmin.editor = {
527 '</select></p>' + 527 '</select></p>' +
528 '<p class="paragrafo" >Tipo de opera&ccedil;&atilde;o:</p>' + 528 '<p class="paragrafo" >Tipo de opera&ccedil;&atilde;o:</p>' +
529 '<select id=i3GEOtipoOperacao name=tipoOperacao >' + 529 '<select id=i3GEOtipoOperacao name=tipoOperacao >' +
530 - '<option value=criar >Criar a tabela nova e incluir registros do CSV</option>' + 530 + '<option value=criar >Criar a tabela nova e incluir registros do SHP</option>' +
531 '<option value=incluir >Adicionar novos registros</option>' + 531 '<option value=incluir >Adicionar novos registros</option>' +
532 - '<option value=apagar >Apagar dados atuais e incluir do CSV</option>' + 532 + '<option value=apagar >Apagar dados atuais e incluir do SHP</option>' +
533 '</select></p>' + 533 '</select></p>' +
534 '<p class="paragrafo" >C&oacute;digo da proje&ccedil;&atilde;o (SRID) Assegure-se que o shapefile esteja na proje&ccedil;&atilde;o geogr&aacute;fica se voc&ecirc; for usar com o sistema de metadados estat&iacute;sticos :<br><input class=digitar type="text" value="4326" size=20 id="srid" name="srid" style="top:0px;left:0px;cursor:pointer;"></p>' + 534 '<p class="paragrafo" >C&oacute;digo da proje&ccedil;&atilde;o (SRID) Assegure-se que o shapefile esteja na proje&ccedil;&atilde;o geogr&aacute;fica se voc&ecirc; for usar com o sistema de metadados estat&iacute;sticos :<br><input class=digitar type="text" value="4326" size=20 id="srid" name="srid" style="top:0px;left:0px;cursor:pointer;"></p>' +
535 '<p class="paragrafo" ><input type="checkbox" id="incluiserialshp" name="incluiserialshp" style="cursor:pointer;position:relative;top:2px;">&nbsp;Inclui uma coluna gid do tipo serial e chave prim&aacute;ria com c&oacute;digo &uacute;nico</p>' + 535 '<p class="paragrafo" ><input type="checkbox" id="incluiserialshp" name="incluiserialshp" style="cursor:pointer;position:relative;top:2px;">&nbsp;Inclui uma coluna gid do tipo serial e chave prim&aacute;ria com c&oacute;digo &uacute;nico</p>' +
@@ -586,9 +586,9 @@ i3GEOadmin.editor = { @@ -586,9 +586,9 @@ i3GEOadmin.editor = {
586 '<p class="paragrafo" >Nome da nova tabela (n&atilde;o utilize caracteres incompat&iacute;veis com o banco de dados, como -, acentos ou espa&ccedil;os em branco):<br><input class=digitar type="text" size=20 id="tabelaDestinocsv" name="tabelaDestinocsv" style="top:0px;left:0px;cursor:pointer;"></p>' + 586 '<p class="paragrafo" >Nome da nova tabela (n&atilde;o utilize caracteres incompat&iacute;veis com o banco de dados, como -, acentos ou espa&ccedil;os em branco):<br><input class=digitar type="text" size=20 id="tabelaDestinocsv" name="tabelaDestinocsv" style="top:0px;left:0px;cursor:pointer;"></p>' +
587 '<p class="paragrafo" >Tipo de opera&ccedil;&atilde;o:</p>' + 587 '<p class="paragrafo" >Tipo de opera&ccedil;&atilde;o:</p>' +
588 '<select id=i3GEOtipoOperacaocsv name=tipoOperacao >' + 588 '<select id=i3GEOtipoOperacaocsv name=tipoOperacao >' +
589 - '<option value=criar >Criar a tabela nova e incluir registros do SHP</option>' + 589 + '<option value=criar >Criar a tabela nova e incluir registros do CSV</option>' +
590 '<option value=incluir >Adicionar novos registros</option>' + 590 '<option value=incluir >Adicionar novos registros</option>' +
591 - '<option value=apagar >Apagar dados atuais e incluir do SHP</option>' + 591 + '<option value=apagar >Apagar dados atuais e incluir do CSV</option>' +
592 '</select></p>' + 592 '</select></p>' +
593 '<p class="paragrafo" ><input type="checkbox" id="incluiserialcsv" name="incluiserialcsv" style="cursor:pointer;position:relative;top:2px;">&nbsp;Inclui uma coluna gid do tipo serial e chave prim&aacute;ria com c&oacute;digo &uacute;nico</p>' + 593 '<p class="paragrafo" ><input type="checkbox" id="incluiserialcsv" name="incluiserialcsv" style="cursor:pointer;position:relative;top:2px;">&nbsp;Inclui uma coluna gid do tipo serial e chave prim&aacute;ria com c&oacute;digo &uacute;nico</p>' +
594 '<p class="paragrafo" >Opcional: coluna que cont&eacute;m as latitudes (Y) <input class=digitar type="text" size=8 id="colunaycsv" name="colunaycsv" style="top:0px;left:0px;cursor:pointer;"> coluna que cont&eacute;m as longitudes (X) <input class=digitar type="text" size=8 id="colunaxcsv" name="colunaxcsv" style="top:0px;left:0px;cursor:pointer;"></p>' + 594 '<p class="paragrafo" >Opcional: coluna que cont&eacute;m as latitudes (Y) <input class=digitar type="text" size=8 id="colunaycsv" name="colunaycsv" style="top:0px;left:0px;cursor:pointer;"> coluna que cont&eacute;m as longitudes (X) <input class=digitar type="text" size=8 id="colunaxcsv" name="colunaxcsv" style="top:0px;left:0px;cursor:pointer;"></p>' +
classesjs/classe_arvoredetemas.js
@@ -119,7 +119,6 @@ i3GEO.arvoreDeTemas = { @@ -119,7 +119,6 @@ i3GEO.arvoreDeTemas = {
119 {Object} 119 {Object}
120 */ 120 */
121 OPCOESADICIONAIS: { 121 OPCOESADICIONAIS: {
122 - idonde: "",  
123 incluiArvore: true, 122 incluiArvore: true,
124 uploaddbf: true, 123 uploaddbf: true,
125 uploadlocal: true, 124 uploadlocal: true,
@@ -147,7 +146,8 @@ i3GEO.arvoreDeTemas = { @@ -147,7 +146,8 @@ i3GEO.arvoreDeTemas = {
147 googleearth: true, 146 googleearth: true,
148 carregaKml: true, 147 carregaKml: true,
149 flutuante: true, 148 flutuante: true,
150 - metaestat: true 149 + metaestat: true,
  150 + idonde: ""
151 }, 151 },
152 /* 152 /*
153 Propriedade: FATORESTRELA 153 Propriedade: FATORESTRELA
ferramentas/preferencias/dicionario.js
@@ -133,43 +133,43 @@ i3GEOF.preferencias.dicionario = { @@ -133,43 +133,43 @@ i3GEOF.preferencias.dicionario = {
133 it:"" 133 it:""
134 }], 134 }],
135 23: [{ 135 23: [{
136 - pt:"", 136 + pt:"&Aacute;rvore de temas",
137 en:"", 137 en:"",
138 es:"", 138 es:"",
139 it:"" 139 it:""
140 }], 140 }],
141 24: [{ 141 24: [{
142 - pt:"", 142 + pt:"Botões",
143 en:"", 143 en:"",
144 es:"", 144 es:"",
145 it:"" 145 it:""
146 }], 146 }],
147 25: [{ 147 25: [{
148 - pt:"", 148 + pt:"Inclui a lista de sistemas adicionais que adicionam camadas",
149 en:"", 149 en:"",
150 es:"", 150 es:"",
151 it:"" 151 it:""
152 }], 152 }],
153 26: [{ 153 26: [{
154 - pt:"", 154 + pt:"Inclui a lista de WMS cadastrados",
155 en:"", 155 en:"",
156 es:"", 156 es:"",
157 it:"" 157 it:""
158 }], 158 }],
159 27: [{ 159 27: [{
160 - pt:"", 160 + pt:"Inclui a lista de WMS cadastrados na INDE Brasileira",
161 en:"", 161 en:"",
162 es:"", 162 es:"",
163 it:"" 163 it:""
164 }], 164 }],
165 28: [{ 165 28: [{
166 - pt:"", 166 + pt:"Inclui a lista de WMS originados do sistema de metadados estatísticos",
167 en:"", 167 en:"",
168 es:"", 168 es:"",
169 it:"" 169 it:""
170 }], 170 }],
171 29: [{ 171 29: [{
172 - pt:"", 172 + pt:"Inclui as estrelas que classificam os temas com base no volume de acessos",
173 en:"", 173 en:"",
174 es:"", 174 es:"",
175 it:"" 175 it:""
@@ -179,5 +179,89 @@ i3GEOF.preferencias.dicionario = { @@ -179,5 +179,89 @@ i3GEOF.preferencias.dicionario = {
179 en:"", 179 en:"",
180 es:"", 180 es:"",
181 it:"" 181 it:""
  182 + }],
  183 + 31: [{
  184 + pt:"",
  185 + en:"",
  186 + es:"",
  187 + it:""
  188 + }],
  189 + 32: [{
  190 + pt:"",
  191 + en:"",
  192 + es:"",
  193 + it:""
  194 + }],
  195 + 33: [{
  196 + pt:"",
  197 + en:"",
  198 + es:"",
  199 + it:""
  200 + }],
  201 + 34: [{
  202 + pt:"",
  203 + en:"",
  204 + es:"",
  205 + it:""
  206 + }],
  207 + 35: [{
  208 + pt:"",
  209 + en:"",
  210 + es:"",
  211 + it:""
  212 + }],
  213 + 36: [{
  214 + pt:"",
  215 + en:"",
  216 + es:"",
  217 + it:""
  218 + }],
  219 + 37: [{
  220 + pt:"",
  221 + en:"",
  222 + es:"",
  223 + it:""
  224 + }],
  225 + 38: [{
  226 + pt:"",
  227 + en:"",
  228 + es:"",
  229 + it:""
  230 + }],
  231 + 39: [{
  232 + pt:"",
  233 + en:"",
  234 + es:"",
  235 + it:""
  236 + }],
  237 + 40: [{
  238 + pt:"",
  239 + en:"",
  240 + es:"",
  241 + it:""
  242 + }],
  243 + 41: [{
  244 + pt:"",
  245 + en:"",
  246 + es:"",
  247 + it:""
  248 + }],
  249 + 42: [{
  250 + pt:"",
  251 + en:"",
  252 + es:"",
  253 + it:""
  254 + }],
  255 + 43: [{
  256 + pt:"",
  257 + en:"",
  258 + es:"",
  259 + it:""
  260 + }],
  261 + 44: [{
  262 + pt:"",
  263 + en:"",
  264 + es:"",
  265 + it:""
182 }] 266 }]
183 }; 267 };
ferramentas/preferencias/index.js
@@ -124,6 +124,36 @@ i3GEOF.preferencias = { @@ -124,6 +124,36 @@ i3GEOF.preferencias = {
124 opcoes: i3GEO.arvoreDeCamadas.FUNCOES 124 opcoes: i3GEO.arvoreDeCamadas.FUNCOES
125 } 125 }
126 ] 126 ]
  127 + },{
  128 + titulo: $trad(23,i3GEOF.preferencias.dicionario),
  129 + props: [
  130 + {
  131 + titulo: $trad(24,i3GEOF.preferencias.dicionario),
  132 + tipo: "multiselect",
  133 + elemento: "i3GEO.arvoreDeTemas.OPCOESADICIONAIS",
  134 + opcoes: i3GEO.arvoreDeTemas.OPCOESADICIONAIS
  135 + },{
  136 + titulo: $trad(25,i3GEOF.preferencias.dicionario),
  137 + tipo: "boolean",
  138 + elemento: "i3GEO.arvoreDeTemas.INCLUISISTEMAS"
  139 + },{
  140 + titulo: $trad(26,i3GEOF.preferencias.dicionario),
  141 + tipo: "boolean",
  142 + elemento: "i3GEO.arvoreDeTemas.INCLUIWMS"
  143 + },{
  144 + titulo: $trad(27,i3GEOF.preferencias.dicionario),
  145 + tipo: "boolean",
  146 + elemento: "i3GEO.arvoreDeTemas.INCLUIINDIBR"
  147 + },{
  148 + titulo: $trad(28,i3GEOF.preferencias.dicionario),
  149 + tipo: "boolean",
  150 + elemento: "i3GEO.arvoreDeTemas.INCLUIWMSMETAESTAT"
  151 + },{
  152 + titulo: $trad(29,i3GEOF.preferencias.dicionario),
  153 + tipo: "boolean",
  154 + elemento: "i3GEO.arvoreDeTemas.INCLUIESTRELAS"
  155 + }
  156 + ]
127 } 157 }
128 ]; 158 ];
129 return lista; 159 return lista;
@@ -193,7 +223,8 @@ i3GEOF.preferencias = { @@ -193,7 +223,8 @@ i3GEOF.preferencias = {
193 String com o c&oacute;digo html 223 String com o c&oacute;digo html
194 */ 224 */
195 html:function(){ 225 html:function(){
196 - var lista = i3GEOF.preferencias.lista(), 226 + var temp,
  227 + lista = i3GEOF.preferencias.lista(),
197 n = lista.length, 228 n = lista.length,
198 i = 0, 229 i = 0,
199 ins = "<div id=i3GEOPreferenciasRaiz >", 230 ins = "<div id=i3GEOPreferenciasRaiz >",
@@ -206,13 +237,16 @@ i3GEOF.preferencias = { @@ -206,13 +237,16 @@ i3GEOF.preferencias = {
206 l=0, 237 l=0,
207 numl=0, 238 numl=0,
208 ids = [], 239 ids = [],
209 - valores,  
210 - nomes; 240 + valores = [],
  241 + nomes = [];
211 for(i=0;i<n;i++){ 242 for(i=0;i<n;i++){
212 ins += "<p onclick='javascript:i3GEOF.preferencias.expande("+i+")' class=paragrafo style=cursor:pointer;color:navy ><b>"+lista[i].titulo+"</b><p>"; 243 ins += "<p onclick='javascript:i3GEOF.preferencias.expande("+i+")' class=paragrafo style=cursor:pointer;color:navy ><b>"+lista[i].titulo+"</b><p>";
213 ins += "<div style=display:none id='listaPref"+i+"'>"; 244 ins += "<div style=display:none id='listaPref"+i+"'>";
214 props = lista[i].props; 245 props = lista[i].props;
215 nj = props.length; 246 nj = props.length;
  247 + valores = [];
  248 + nomes = [];
  249 + ids = [];
216 for(j=0;j<nj;j++){ 250 for(j=0;j<nj;j++){
217 ins += "<p class=paragrafo >"+props[j].titulo+"</p>"; 251 ins += "<p class=paragrafo >"+props[j].titulo+"</p>";
218 if(props[j].tipo === "numero" || props[j].tipo === "texto"){ 252 if(props[j].tipo === "numero" || props[j].tipo === "texto"){
@@ -237,14 +271,20 @@ i3GEOF.preferencias = { @@ -237,14 +271,20 @@ i3GEOF.preferencias = {
237 } 271 }
238 if(props[j].tipo === "multiselect"){ 272 if(props[j].tipo === "multiselect"){
239 valores = i3GEO.util.listaTodasChaves(props[j].opcoes); 273 valores = i3GEO.util.listaTodasChaves(props[j].opcoes);
  274 + var nvalores = [];
  275 + var nelementos;
240 numl = valores.length; 276 numl = valores.length;
241 for(l=0;l<numl;l++){ 277 for(l=0;l<numl;l++){
242 - ids.push(props[j].elemento+"."+valores[l]); 278 + temp = props[j].opcoes[valores[l]];
  279 + if(temp === true || temp === false){
  280 + ids.push(props[j].elemento+"."+valores[l]);
  281 + nvalores.push(valores[l]);
  282 + }
243 } 283 }
244 ins += i3GEO.util.checkCombo( 284 ins += i3GEO.util.checkCombo(
245 props[j].elemento, 285 props[j].elemento,
246 - valores,  
247 - valores, 286 + nvalores,
  287 + nvalores,
248 estilo+";overflow:auto;height:50px;border:1px solid gray;background-color:white", 288 estilo+";overflow:auto;height:50px;border:1px solid gray;background-color:white",
249 "", 289 "",
250 ids 290 ids