summaryrefslogtreecommitdiff
path: root/tex/context/base/publ-tra.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-02-04 00:15:04 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-02-04 00:15:04 +0100
commit08128a9710f7a34e16f7487b3bccfe7feadb36f1 (patch)
tree3d733f318680915c9f381dad1fc72dc8fbba8d85 /tex/context/base/publ-tra.lua
parentb52a3ec06867c6722c0f6aeeeae57029235e53fb (diff)
downloadcontext-08128a9710f7a34e16f7487b3bccfe7feadb36f1.tar.gz
2015-02-03 23:57:00
Diffstat (limited to 'tex/context/base/publ-tra.lua')
-rw-r--r--tex/context/base/publ-tra.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/tex/context/base/publ-tra.lua b/tex/context/base/publ-tra.lua
index 1c39aef97..5f1610beb 100644
--- a/tex/context/base/publ-tra.lua
+++ b/tex/context/base/publ-tra.lua
@@ -327,6 +327,8 @@ function tracers.showdatasetauthors(settings)
local dataset = settings.dataset
local field = settings.field
+ local sortkey = publications.writers.author
+
if not dataset or dataset == "" then dataset = "standard" end
if not field or field == "" then field = "author" end
@@ -339,7 +341,16 @@ function tracers.showdatasetauthors(settings)
ctx_verbatim(k)
ctx_EQ()
if type(v) == "table" then
- ctx_verbatim(concat(v, " | "))
+ local t = { }
+ for i=1,#v do
+ local vi = v[i]
+ if type(vi) == "table" then
+ t[i] = concat(vi,"-")
+ else
+ t[i] = vi
+ end
+ end
+ ctx_verbatim(concat(t, " | "))
else
ctx_verbatim(v)
end
@@ -375,6 +386,7 @@ function tracers.showdatasetauthors(settings)
commonrow("tag",tag)
commonrow("field",field)
commonrow("content",getfield(dataset,tag,field))
+ commonrow("sortkey",sortkey(a))
for i=1,#a do
ctx_ML()
local ai = a[i]