Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
epi-species
front
Commits
dc294ffc
Commit
dc294ffc
authored
Mar 13, 2023
by
vida092
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grupo
parent
0cf52e72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
geoportal_v0.1.html
+1
-0
javascripts/variable_module.js
+7
-3
No files found.
geoportal_v0.1.html
View file @
dc294ffc
...
...
@@ -312,6 +312,7 @@
<div
id=
"taxon_tree_root"
class=
"col-md-6 col-sm-12 col-xs-12"
>
<label
class =
"text-sm"
>
Raiz taxonómica
</label>
<select
id=
"taxon_tree_root_value"
class=
"form-control"
>
<option
value=
"alert"
selected
>
Seleccione Grupo
</option>
<option
value=
"familia"
>
Familia
</option>
<option
value=
"genero"
>
Genero
</option>
<option
value=
"nombrecientifico"
>
Especie
</option>
...
...
javascripts/variable_module.js
View file @
dc294ffc
...
...
@@ -283,7 +283,7 @@ var variable_module = (function (verbose, url_zacatuche) {
});
$
(
'#disease_selected'
).
change
(
function
(
e
){
_module_toast
.
showToast_CenterCenter
(
"El árbol taxonómico se está cargando, espere unos segundos..."
,
"info"
)
var
agent_selected
=
$
(
'#agent_selected'
).
val
()
var
disease_text_selected
=
$
(
"#disease_selected option:selected"
).
text
();
var
tax_root
=
$
(
"#taxon_tree_root_value"
).
val
()
...
...
@@ -299,6 +299,7 @@ var variable_module = (function (verbose, url_zacatuche) {
console
.
log
(
"-*/-*/-*/-*/-*/-*/-*/-*/-*/"
)
switch
(
tax_root
){
case
"familia"
:
_module_toast
.
showToast_CenterCenter
(
"El árbol taxonómico se está cargando, espere unos segundos..."
,
"info"
)
var
query
=
"query{occurrences_by_taxon_"
+
nodo
+
"(query:
\"
nombreenfermedad='"
+
disease_text_selected
+
"'
\"
){familia genero nombrecientifico}}"
$
.
ajax
({
url
:
_url
,
...
...
@@ -367,6 +368,7 @@ var variable_module = (function (verbose, url_zacatuche) {
})
break
;
case
"genero"
:
_module_toast
.
showToast_CenterCenter
(
"El árbol taxonómico se está cargando, espere unos segundos..."
,
"info"
)
var
query
=
"query{occurrences_by_taxon_"
+
nodo
+
"(query:
\"
nombreenfermedad='"
+
disease_text_selected
+
"'
\"
){genero nombrecientifico}}"
$
.
ajax
({
url
:
_url
,
...
...
@@ -427,6 +429,7 @@ var variable_module = (function (verbose, url_zacatuche) {
})
break
case
"nombrecientifico"
:
_module_toast
.
showToast_CenterCenter
(
"El árbol taxonómico se está cargando, espere unos segundos..."
,
"info"
)
var
query
=
"query{occurrences_by_taxon_"
+
nodo
+
"(query:
\"
nombreenfermedad='"
+
disease_text_selected
+
"'
\"
){nombrecientifico}}"
$
.
ajax
({
url
:
"https://covid19.c3.unam.mx/gateway/api/nodes/"
,
...
...
@@ -474,8 +477,9 @@ var variable_module = (function (verbose, url_zacatuche) {
}
})
break
default
:
_module_toast
.
showToast_CenterCenter
(
"Seleccione una Raíz"
,
"error"
)
break
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment