https://bugzilla.wikimedia.org/show_bug.cgi?id=27885

           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
        AssignedTo: mar...@semantic-mediawiki.org
        ReportedBy: j...@angrymonkey.net.nz
                CC: jeroen_ded...@yahoo.com


Created attachment 8254
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=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
problems:

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

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
printnoresults=True.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to