diff options
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-bibliography.lua')
-rw-r--r-- | biblio/citation-style-language/citeproc-node-bibliography.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/biblio/citation-style-language/citeproc-node-bibliography.lua b/biblio/citation-style-language/citeproc-node-bibliography.lua index 93797196a2..df0db20576 100644 --- a/biblio/citation-style-language/citeproc-node-bibliography.lua +++ b/biblio/citation-style-language/citeproc-node-bibliography.lua @@ -35,6 +35,7 @@ local Element = element.Element local IrNode = ir_node.IrNode local Rendered = ir_node.Rendered local SeqIr = ir_node.SeqIr +local GroupVar = ir_node.GroupVar local PlainText = output.PlainText local DisamStringFormat = output.DisamStringFormat local YearSuffix = ir_node.YearSuffix @@ -176,7 +177,7 @@ function Bibliography:build_ir(engine, state, context, active_layout) end function Bibliography:substitute_subsequent_authors(engine, ir) - ir.first_name_ir = self:find_first_name_ir(ir) -- should be a SeqIr wiht _element = "names" + ir.first_name_ir = self:find_first_name_ir(ir) -- should be a SeqIr wiht _element_name = "names" if not ir.first_name_ir then engine.previous_bib_names_ir = nil return @@ -231,7 +232,7 @@ function Bibliography:substitute_subsequent_authors_complete_all(engine, ir) local text = self.subsequent_author_substitute if text == "" then ir.first_name_ir.children = {} - ir.first_name_ir.group_var = "missing" + ir.first_name_ir.group_var = GroupVar.Missing else -- the output of label is not substituted -- util.debug(ir.first_name_ir) @@ -270,7 +271,7 @@ function Bibliography:substitute_subsequent_authors_complete_each(engine, ir) -- In case of a <text variable="title"/> in <substitute> if text == "" then ir.first_name_ir.children = {} - ir.first_name_ir.group_var = "missing" + ir.first_name_ir.group_var = GroupVar.Missing else ir.first_name_ir.children = {Rendered:new({PlainText:new(text)}, self)} end @@ -310,7 +311,7 @@ function Bibliography:substitute_subsequent_authors_partial_each(engine, ir) local text = self.subsequent_author_substitute if text == "" then ir.first_name_ir.children = {} - ir.first_name_ir.group_var = "missing" + ir.first_name_ir.group_var = GroupVar.Missing else ir.first_name_ir.children = {Rendered:new({PlainText:new(text)}, self)} end @@ -343,7 +344,7 @@ function Bibliography:add_bibliography_year_suffix(ir, engine) for _, year_suffix_ir in ipairs(ir.year_suffix_irs) do year_suffix_ir.inlines = {PlainText:new(ir.reference["year-suffix"])} - year_suffix_ir.group_var = "important" + year_suffix_ir.group_var = GroupVar.Important end end |