aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2023-08-22 12:31:47 +0200
committerPjotr Prins2023-08-22 12:31:47 +0200
commitd2e12c6e3cd695dee4aed39e481fd8c18424b278 (patch)
tree8056833bd45c8f3cbd9b9f1c777fee7655edb599
parentb1c309e3ca19f7557a3917f26f933d864c926c33 (diff)
downloadgn-guile-d2e12c6e3cd695dee4aed39e481fd8c18424b278.tar.gz
group links
-rw-r--r--gn/data/group.scm2
-rw-r--r--web/gn-uri.scm8
2 files changed, 7 insertions, 3 deletions
diff --git a/gn/data/group.scm b/gn/data/group.scm
index 003ac11..1505b21 100644
--- a/gn/data/group.scm
+++ b/gn/data/group.scm
@@ -18,6 +18,6 @@
[uri (mk-gnid gnid)])
(filter-map
(lambda (r) (if (string=? (second r) uri)
- (list ("ref" . (car r)))
+ `(("ref" . ,(mk-id (car r))))
#f)) recs)
))
diff --git a/web/gn-uri.scm b/web/gn-uri.scm
index c0a440a..951b24d 100644
--- a/web/gn-uri.scm
+++ b/web/gn-uri.scm
@@ -81,10 +81,14 @@
(mk-html (string-append "term" "/" postfix)))
(define (mk-id postfix)
- (mk-html (string-append "id" "/" postfix)))
+ "Expand URL to make $api/id/identifier.
+ If postfix is a path it will only apply the last element"
+ (mk-url (string-append "id" "/" (url-parse-id postfix))))
(define (mk-gnid postfix)
- (mk-uri (string-append "id" "/" postfix)))
+ "Expand URL to make http://genenetwork.org/id/identifier.
+ If postfix is a path it will only apply the last element"
+ (mk-uri (string-append "id" "/" (url-parse-id postfix))))
(define (mk-predicate postfix)
(mk-html (string-append "predicate" "/" postfix)))