summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua')
-rw-r--r--Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua b/Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua
index f0eb95b1e2d..385110c1e9f 100644
--- a/Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua
+++ b/Master/texmf-dist/scripts/citation-style-language/citeproc-node-names.lua
@@ -1,5 +1,5 @@
--
--- Copyright (c) 2021-2022 Zeping Lee
+-- Copyright (c) 2021-2023 Zeping Lee
-- Released under the MIT license.
-- Repository: https://github.com/zepinglee/citeproc-lua
--
@@ -69,7 +69,7 @@ function Names:from_node(node)
child.after_name = true
end
else
- util.warning(string.format('Unkown element "{}".', element_name))
+ util.warning(string.format('Unknown element "%s".', element_name))
end
end
o:get_delimiter_attribute(node)
@@ -182,7 +182,7 @@ function Names:build_ir(engine, state, context)
new_state.name_override = names_inheritance
for _, substitution in ipairs(self.substitute.children) do
local ir = substitution:build_ir(engine, new_state, context)
- if ir and ir.group_var ~= "missing" then
+ if ir and (ir.group_var == "important" or ir.group_var == "plain") then
if not ir.person_name_irs or #ir.person_name_irs == 0 then
-- In case of a <text variable="title"/> in <substitute>
local name_count = ir.name_count