Summary: limit>0 query fail to produce proper links.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Semantic MediaWiki

Created attachment 8254
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

1) The resulting link is missing most of the parameters of the original inline

2) 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:

1) All parameters are added to the link. The limit is flipped to positive.

2) 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

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to