Last modified: 2013-08-14 10:37:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47608, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45608 - Forceshow parameter of Semantic Maps no longer works
Forceshow parameter of Semantic Maps no longer works
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-01 15:48 UTC by Jeroen De Dauw
Modified: 2013-08-14 10:37 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jeroen De Dauw 2013-03-01 15:48:35 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links