SemanticResultFormats icon indicating copy to clipboard operation
SemanticResultFormats copied to clipboard

Listwidget format: Pickup sorting from DEFAULTSORT

Open kghbln opened this issue 5 years ago • 8 comments

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".

kghbln avatar Dec 03 '19 22:12 kghbln

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.

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 the DEFAULTSORT variable.

-- 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 avatar Dec 07 '19 19:12 mwjames

@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.

kghbln avatar Jan 11 '20 17:01 kghbln

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.

mwjames avatar Jan 11 '20 17:01 mwjames

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.

kghbln avatar Jan 11 '20 17:01 kghbln

Now tracked with https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4392

kghbln avatar Jan 11 '20 18:01 kghbln

@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"?

kghbln avatar Jan 11 '20 18:01 kghbln

Thus it is probably indeed an issue just for "listwidget"?

I guess so.

mwjames avatar Jan 11 '20 19:01 mwjames

I guess so.

Ok, now that we are sure I will reopen this. Not a front burner issue though.

kghbln avatar Jan 11 '20 19:01 kghbln