This is in reference to https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/2000:
If |headers=plain is used in an ask query, the table head under "further results" is broken. See the 2nd example at https://sandbox.semantic-mediawiki.org/wiki/Modify_table_head. Also tested this on 2 of my own wikis.
Can this be fixed?
I think |headers=plain is actually doing what it is supposed to do but I also see the issue. I created an isolated page for this.
Can this be fixed?
@@ -75,11 +75,11 @@ class TableResultPrinter extends ResultPrinter {
$columnClasses[] = $columnClass;
- $text = $pr->getText( $outputMode, ( $this->mShowHeaders ==
SMW_HEADERS_PLAIN ? null : $this->mLinker ) );
+ $text = $pr->getText( SMW_OUTPUT_WIKI, ( $this->mShowHeaders ==
SMW_HEADERS_PLAIN ? null : $this->mLinker ) );
Above changes may correct the behaviour (I haven't tested it), if so,
please test carefully (to not introduce any regression) and send us a
PR.
In order to merge a PR, we would require another integration test that
verifies the modified behaviour.
Cheers
On 9/25/17, stefahn notifications@github.com wrote:
This is in reference to
https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/2000:If |headers=plain is used in an ask query, the table head under "further
results" is broken. See the 2nd example at
https://sandbox.semantic-mediawiki.org/wiki/Modify_table_head. Also tested
this on 2 of my own wikis.Can this be fixed?
--
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/SemanticMediaWiki/issues/2702
Just to be clear, I'm not going to provide a PR for this. I have outlined a possible solution with the important part being to verify that no regression is introduced and that any PR is adding an additional integration test to cover the use case.
I put this on my list. Pls poke if I forget about it.
Thanks for your feedback and possible solution.
I'm not familiar with integration testing, so hopefully you can manage this Karsten.