diff options
author | Pjotr Prins | 2023-08-20 13:09:03 +0200 |
---|---|---|
committer | Pjotr Prins | 2023-08-20 13:09:03 +0200 |
commit | 66c26676c938e6ba35440bcb2e851fb025549ed0 (patch) | |
tree | 3b30b828563188802f6ed81ab2cd5eb5e33f0415 /gn/data | |
parent | dcc41148727ec5f68fbeb0504a295981728327a1 (diff) | |
download | gn-guile-66c26676c938e6ba35440bcb2e851fb025549ed0.tar.gz |
Add gnid to species - still a bug
Diffstat (limited to 'gn/data')
-rw-r--r-- | gn/data/species.scm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gn/data/species.scm b/gn/data/species.scm index 98ea1b1..e06931e 100644 --- a/gn/data/species.scm +++ b/gn/data/species.scm @@ -16,6 +16,12 @@ get-expanded-taxon-data )) +(define (gn-species short-name) + "Find the GN identifier from shortname" + (let ([rec (get-expanded-taxon-data short-name)]) + rec + )) + (define (get-species) (receive (names res) (memo-sparql-species-meta) (let* ([table (get-rows names res)] @@ -62,13 +68,6 @@ ) -(define (get-expanded-species) - "Here we add information related to each species" - (map (lambda (rec) - (expand-species rec) - ) (get-species) -)) - (define (get-expanded-taxon-data short-name) "Here we add information related to one taxonomy species" (call/cc (lambda (return) @@ -121,4 +120,5 @@ ("meta" . ,(mk-meta id)) ("data" . ,(mk-data id)) ("up" . ,(mk-meta "species")) + ("links" . ,(get-group-links (gn-species id))) )) |