Describe the bug
Work aspect list of publication does not show publication if ordinal number for author is not set
To Reproduce
Steps to reproduce the behavior:
- Go tohttps://scholia.toolforge.org/author/Q50390494#list-of-publications
- No publications are shown in the table
Expected behavior
Three publications should be shown.
Screenshots
Additional context
Make ordinal optional:
# By standard GROUP_CONCAT does not sort, but BlazeGraph seems to sort.
SELECT
?work ?author ?author_label
WHERE {
?work wdt:P50 target: .
?work p:P50 ?work_statement .
?work_statement ps:P50 ?author .
OPTIONAL {
?work_statement pq:P1545 ?order .
BIND(xsd:integer(?order) AS ?n)
}
OPTIONAL {
?author rdfs:label ?author_label_ . FILTER (LANG(?author_label_) = 'en')
}
BIND(COALESCE(?author_label_, SUBSTR(STR(?author), 32)) AS ?author_label)
}
ORDER BY ?n