Author: jwm
Description:
Limit>0 link fix.
Setting the limit parameter less than zero should produce only a “further results” link to a similar query via Special:Ask, however there are two problems:
- The resulting link is missing most of the parameters of the original inline query.
- Several result formats in the SemanticResultFormat extension override the getResult method from SMWResultPrinter in order to still print output even if there are no results, however they do so at the expense of the negative limit link feature, as well as a collection of other error handling code.
The attached patch fixes both problems:
- All parameters are added to the link. The limit is flipped to positive.
- An additional argument is added to getResult for printing zero result queries which defaults to false. Result formats that want to print zero result output can override the method by calling the parent method with printnoresults=True.
Version: unspecified
Severity: normal
Attached: