Page MenuHomePhabricator

Forceshow parameter of Semantic Maps no longer works
Closed, DeclinedPublic

Description

SMW 1.9 alpha, SM 3.0 alpha.

Example: http://localhost/phase3/index.php/Forecshow

Report by Andy Chow:

The forceshow parameter in Semantic Maps doesn't work, so which means that if
the query has zero result, the map doesn't show. It is a problem because I want
a map whether there's a query result or not. So far I don't have a good
workaround. The default parameter (to show a map with display_point) seemed to
work when there's no query, but a map won't show if there's a query. The next
best thing I can think of is to use #if parser functions, which would mean
running the query twice (first is to test whether it is valid) and then run
again to show the query. I think this is rather an inefficient way to do it.

  • end report --

Code in SM looks to be correct though is never executed when there are no results. Caused by changes in SMW result printer. Probably in 1.8. Method buildResult no longer calls getResultText when there are no results, thus preventing any "forceshow" functionality.


Version: master
Severity: normal

Details

Reference
bz45608

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:38 AM
bzimport set Reference to bz45608.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.