diff options
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-number.lua')
-rw-r--r-- | biblio/citation-style-language/citeproc-node-number.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/biblio/citation-style-language/citeproc-node-number.lua b/biblio/citation-style-language/citeproc-node-number.lua index 24b970edde..a3cf140aa5 100644 --- a/biblio/citation-style-language/citeproc-node-number.lua +++ b/biblio/citation-style-language/citeproc-node-number.lua @@ -22,6 +22,7 @@ end local Element = element.Element local Rendered = ir_node.Rendered +local GroupVar = ir_node.GroupVar local Number = Element:derive("number") @@ -54,20 +55,18 @@ function Number:build_ir(engine, state, context) end if not number then local ir = Rendered:new({}, self) - ir.group_var = "missing" + ir.group_var = GroupVar.Missing return ir end if type(number) == "number" then number = tostring(number) - number = self:format_number(number, self.variable, self.form, context) - elseif util.is_numeric(number) then - number = self:format_number(number, self.variable, self.form, context) end + number = self:format_number(number, self.variable, self.form, context) local inlines = self:render_text_inlines(number, context) local ir = Rendered:new(inlines, self) - ir.group_var = "important" + ir.group_var = GroupVar.Important -- Suppress substituted name variable if state.name_override and not context.sort_key then |