TABLE join(aliases, ", ") AS "Aliases",
join(
unique(
map(
filter(
file.tags,
(t) => startswith(t, "#mathematics/definitions/")
),
(t) => regexreplace(t, "^#mathematics/definitions/([^/]+).*", "$1")
)
),
", "
) AS "Categories",
join(
map(
filter(
file.tags,
(t) => contains(t, "#mathematics/definitions/" + this.category + "/")
),
(t) => regexreplace(t, "^#mathematics/definitions/" + this.category + "/", "")
),
", "
) AS "Sub-categories"
FROM #mathematics/definitions
WHERE contains(file.tags, "#mathematics/definitions/" + this.category)
SORT file.name ASC
TABLE
join(
unique(
map(
filter(
file.tags,
(t) => startswith(t, "#mathematics/equations/")
),
(t) => regexreplace(t, "^#mathematics/equations/([^/]+).*", "$1")
)
),
", "
) AS "Categories",
join(
map(
filter(
file.tags,
(t) => contains(t, "#mathematics/equations/" + this.category + "/")
),
(t) => regexreplace(t, "^#mathematics/equations/" + this.category + "/", "")
),
", "
) AS "Sub-categories"
FROM #mathematics/equations
WHERE contains(file.tags, "#mathematics/equations/" + this.category)
SORT file.name ASC