224
edits
(Update package: OSW Core) |
(handle statements: default named after relation) |
||
Line 647: | Line 647: | ||
if (jsondata[p.keys.name] ~= nil) then properties['Display title of'] = jsondata[p.keys.name] | if (jsondata[p.keys.name] ~= nil) then properties['Display title of'] = jsondata[p.keys.name] | ||
elseif (jsondata[p.keys.label] ~= nil and jsondata[p.keys.label][1] ~= nil) then properties['Display title of'] = p.splitString(jsondata[p.keys.label][1], '@')[1] | elseif (jsondata[p.keys.label] ~= nil and jsondata[p.keys.label][1] ~= nil) then properties['Display title of'] = p.splitString(jsondata[p.keys.label][1], '@')[1] | ||
-- handle statements: default named after relation | |||
elseif (jsondata['property'] ~= nil) then properties['Display title of'] = ".." .. jsondata['property']:gsub(p.keys.property_ns_prefix .. ":","") .. ".." | |||
elseif (jsondata['predicate'] ~= nil) then properties['Display title of'] = ".." .. jsondata['predicate']:gsub(p.keys.property_ns_prefix .. ":","") .. ".." | |||
elseif (jsondata['quantity'] ~= nil) then properties['Display title of'] = ".." .. jsondata['quantity']:gsub(p.keys.property_ns_prefix .. ":","") .. ".." | |||
else properties['Display title of'] = p.defaultArg(parent_schema_property.schema_data['title'], "") end | else properties['Display title of'] = p.defaultArg(parent_schema_property.schema_data['title'], "") end | ||
if (p.tableLength(properties) > 0) then | if (p.tableLength(properties) > 0) then |