472
edits
(Update package: OSW Core) |
(Update package: OSW Core) |
||
Line 255: | Line 255: | ||
local display_label = p.defaultArgPath(jsondata, {p.keys.name}, "") | local display_label = p.defaultArgPath(jsondata, {p.keys.name}, "") | ||
if (display_label == "") then display_label = p.defaultArgPath(jsondata, {p.keys.label, 1, p.keys.text}, "") end | if (display_label == "" or (title.nsText ~= "Category" and title.nsText ~= "Property")) then | ||
display_label = p.defaultArgPath(jsondata, {p.keys.label, 1, p.keys.text}, "") --prefere label for all non-category and non-property pages | |||
end | |||
local jsonld = p.copy(jsondata) | local jsonld = p.copy(jsondata) |
edits