aboutsummaryrefslogtreecommitdiff
path: root/gn/data/species.scm
diff options
context:
space:
mode:
authorPjotr Prins2023-08-19 12:27:34 +0200
committerPjotr Prins2023-08-19 12:27:34 +0200
commitdcc41148727ec5f68fbeb0504a295981728327a1 (patch)
tree67982ada1c32c7f17421f178b41745b050d32e4e /gn/data/species.scm
parentafd3d25530401569a5953dc1c411f43a56ebd02c (diff)
downloadgn-guile-dcc41148727ec5f68fbeb0504a295981728327a1.tar.gz
Adding test infrastructure and reorganizing modules
Diffstat (limited to 'gn/data/species.scm')
-rw-r--r--gn/data/species.scm14
1 files changed, 13 insertions, 1 deletions
diff --git a/gn/data/species.scm b/gn/data/species.scm
index a1eb15f..98ea1b1 100644
--- a/gn/data/species.scm
+++ b/gn/data/species.scm
@@ -12,6 +12,8 @@
get-species-meta
get-species-data
get-species-shortnames
+ get-expanded-taxon-meta
+ get-expanded-taxon-data
))
(define (get-species)
@@ -67,7 +69,7 @@
) (get-species)
))
-(define (get-expanded-species1 short-name)
+(define (get-expanded-taxon-data short-name)
"Here we add information related to one taxonomy species"
(call/cc (lambda (return)
(for-each (lambda (rec)
@@ -110,3 +112,13 @@
("up" . ,(string-append (prefix) "/"))
("meta-links" . ,(get-species-meta2 recs))
("links" . ,(get-species-links recs)))))
+
+
+(define (get-expanded-taxon-meta id)
+ "Get information on a specific species, e.g. mouse"
+ `(("info" . ,id)
+ ("doc" . ,(mk-doc id))
+ ("meta" . ,(mk-meta id))
+ ("data" . ,(mk-data id))
+ ("up" . ,(mk-meta "species"))
+ ))