SemanticResultFormats
SemanticResultFormats copied to clipboard
Listwidget format: Pickup sorting from DEFAULTSORT
Setup
- SRF version: 3.1.0
Issue
When I add e.g. {{DEFAULTSORT:Doe, John}} the John Doe page and print the query results with the "listwidget" result format the page still gets added in the "J" tab rather than in the "D" section. It will be nice if this result format also follows the setting with the DEFAULTSORT variable.
Example
See the example pages on sandbox. Working for "list", "ol", "ul" but not for "listwidget".
When I add e.g.
{{DEFAULTSORT:Doe, John}}the John Doe page and print the query results with the "listwidget" result format the page still gets added in the "J" tab rather than in the "D" section. It will be nice if this result format also follows the setting with theDEFAULTSORTvariable.
The ListWidget borrows the result from the ul/li printer and unless
the sort information is exposed as part of the text/html output there
is nothing much the ListWidget printer can do about it getting any
information related to a different sort representation.
Cheers
On 12/4/19, Karsten Hoffmeyer [email protected] wrote:
Setup
- SRF version: 3.1.0
Issue
When I add e.g.
{{DEFAULTSORT:Doe, John}}the John Doe page and print the query results with the "listwidget" result format the page still gets added in the "J" tab rather than in the "D" section. It will be nice if this result format also follows the setting with theDEFAULTSORTvariable.-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/559
@mwjames Ouch, now we are getting a nasty ArgumentCountError count error. I wonder where this comes from. Apart from that I will create a feature request for the list format.
Ouch, now we are getting a nasty ArgumentCountError count error.
Do we have a stack trace? I'm not sure what ArgumentCountError means and in which context it appears.
Do we have a stack trace? I'm not sure what ArgumentCountError means and in which context it appears.
Yes, will create a separate issue for this.
Now tracked with https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4392
@mwjames Hmm, after creating examples on sandbox I see that the list formats are all sorting John at D. Thus it is probably indeed an issue just for "listwidget"?
Thus it is probably indeed an issue just for "listwidget"?
I guess so.
I guess so.
Ok, now that we are sure I will reopen this. Not a front burner issue though.