-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
24 lines (24 loc) · 947 Bytes
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
layout: none
---
[
{% assign sorted_pathways = site.pathways | sort: "last-edited" | reverse %}
{% for pw in sorted_pathways %}
{% for org in site.organisms %}
{% if pw.organisms contains org.latin %}
{% assign common-org = org.common %}
{% endif %}
{% endfor %}
{
"title" : {{ pw.title | jsonify }},
"wpid" : {{ pw.wpid | jsonify }},
"description": {{ pw.description | jsonify }},
"organisms" : {{ pw.organisms | join: ', ' | jsonify }},
"common" : {{ common-org | jsonify }},
"keywords" : {{ pw.schema-jsonld | map: "keywords" | uniq | join: ', ' | jsonify }},
"annotations": {{ pw.annotations | map: "value" | uniq | join: ', ' | jsonify }},
"url" : {{ site.baseurl | append: pw.url | jsonify }},
"last-edited": {{ pw.last-edited | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]