Changes

From BrineRIS Dataspace
128 bytes added ,  19:34, 12 March 2023
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)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.