Last modified: 2010-06-27 03:08:29 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 T25896, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23896 - Results of SM/SF queries are not shown in map
Results of SM/SF queries are not shown in map
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
http://www.bluewater-info.net/wiki_/T...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-11 00:15 UTC by tkrueger73
Modified: 2010-06-27 03:08 UTC (History)
1 user (show)

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


Attachments

Description tkrueger73 2010-06-11 00:15:28 UTC
The results of geographical queries done through semantic forms are not shown in a result map.
The result map hangs at "Loading map".

The effect can be tested at the following side:
http://www.bluewater-info.net/wiki_/Test_SF_query
1. Klick on TestQueryForm
2. enter "hamburg" at "Look up coordinates" and klick on "lookup coordinates"
3. enter "15 km" at "Maximum distance to the harbour you are looking for to the choosen coordinates:"
4. klick on "Run query"
The result map hangs at "Loading map ..."

The form and template were functional before the upgrade to SMW1.5.

corresponding form code:
<includeonly>
{{{for template|TestQuery}}}
Please specify the desired characteristics below. Additionally to the minimum depth and the maximum distance, only maximum three problerties are allowed to mark, to ensure the correctness of the query!

{| class="formtable"
! Coordinates:
| colspan="3" | {{{field|Coordinates|input type=map|service=googlemaps|type=physical|width=800|height=500|zoom=8}}}
|-
|}
{| class="formtable"
! colspan="2" | Maximum distance to the harbour you are looking for to the choosen coordinates:
| colspan="2" | {{{field|distance}}}  in km, miles or nautical miles, eg.: "50 km", "50 mi" or "50 nm"
|-
! colspan="2" | Minimum depth of the habour:
| colspan="2" | {{{field|Depth max|property=Depth max|default=0}}} Please use the dot instead of a komma as the decimal separator. Attach the unit (m for meter, ft for feet) at the end of the value. For example: "2.7 m"
|-
! Nighttime approach possible:
| {{{field|Nighttime approach|property=Nighttime approach|default=false}}}
|-
! Drinking water:
| {{{field|Drinking water|property=Drinking water|default=false}}}
! non potable Water:
| {{{field|Water|property=Water|default=false}}}
|-
! Electrical current:
| {{{field|Electrical current|property=Electrical current|default=false}}}
! Internet wlan:
| {{{field|Internet wlan|property=Internet wlan|default=false}}}
|-
! Washing facility:
| {{{field|Washing facility|property=Washing facility|default=false}}}
! Toilets:
| {{{field|Toilets|property=Toilets|default=false}}}
|-
! Shower:
| {{{field|Shower|property=Shower|default=false}}}
! Washing machine/trumbler:
| {{{field|Washing machine/trumbler|property=Washing machine/trumbler|default=false}}}
|-
! Waste disposal:
| {{{field|Waste disposal|property=Waste disposal|default=false}}}
! Waste water extraction:
| {{{field|Waste water extraction|property=Waste water extraction|default=false}}}
|-
! BBQ area:
| {{{field|BBQ area|property=BBQ area|default=false}}}
! Parking area:
| {{{field|Parking area|property=Parking area|default=false}}}
|-
! Diesel:
| {{{field|Diesel|property=Diesel|default=false}}}
! Gasoline:
| {{{field|Gasoline|property=Gasoline|default=false}}}
|-
! Gas:
| {{{field|Gas|property=Gas|default=false}}}
|-
! Crane:
| {{{field|Crane|property=Crane|default=false}}}
! Crane for masts:
| {{{field|Crane for masts|property=Crane for masts|default=false}}}
|-
! Slip:
| {{{field|Slip|property=Slip|default=false}}}
! Repair shop:
| {{{field|Repair shop|property=Repair shop|default=false}}}
|-
! Ship chandler:
| {{{field|Ship chandler|property=Ship chandler|default=false}}}
! Sail maker:
| {{{field|Sail maker|property=Sail maker|default=false}}}
|-
! Baker:
| {{{field|Baker|property=Baker|default=false}}}
! Supermarket:
| {{{field|Supermarket|property=Supermarket|default=false}}}
|-
! Restaurant:
| {{{field|Restaurant|property=Restaurant|default=false}}}
! Pharmacy:
| {{{field|Pharmacy|property=Pharmacy|default=false}}}
|-
! Post:
| {{{field|Post|property=Post|default=false}}}
! Bank:
| {{{field|Bank|property=Bank|default=false}}}
|-
! Doctor:
| {{{field|Doctor|property=Doctor|default=false}}}
|-
! Public transportation:
| {{{field|Public transportation|property=Public transportation|default=false}}}
! Places of interest:
| {{{field|Places of interest|property=Places of interest|default=false}}}
|-
|}
{{{end template}}}
</includeonly>

corresponding template code:
<includeonly>
{{#compound_query:[[Category:Hafen de||Hafen]]
[[Depth max::>{{{Depth max}}}]]
{{#ifeq: {{{Nighttime approach}}} | Yes | [[Nighttime approach::>{{{Nighttime approach}}}]] | }}
{{#ifeq: {{{Drinking water}}} | Yes | [[Drinking water::>{{{Drinking water}}}]] | }}
{{#ifeq: {{{Water}}} | Yes | [[Water::>{{{Water}}}]] | }}
{{#ifeq: {{{Electrical current}}} | Yes | [[Electrical current::>{{{Electrical current}}}]] | }}
{{#ifeq: {{{Internet wlan}}} | Yes | [[Internet wlan::>{{{Internet wlan}}}]] | }}
{{#ifeq: {{{Washing facility}}} | Yes | [[Washing facility::>{{{Washing facility}}}]] | }}
{{#ifeq: {{{Toilets}}} | Yes | [[Toilets::>{{{Toilets}}}]] | }}
{{#ifeq: {{{Shower}}} | Yes | [[Shower::>{{{Shower}}}]] | }}
{{#ifeq: {{{Washing machine/trumbler}}} | Yes | [[Washing machine/trumbler::>{{{Washing machine/trumbler}}}]] | }}
{{#ifeq: {{{Waste disposal}}} | Yes | [[Waste disposal::>{{{Waste disposal}}}]] | }}
{{#ifeq: {{{Waste water extraction}}} | Yes | [[Waste water extraction::>{{{Waste water extraction}}}]] | }}
{{#ifeq: {{{BBQ area}}} | Yes | [[BBQ area::>{{{BBQ area}}}]] | }}
{{#ifeq: {{{Parking area}}} | Yes | [[Parking area::>{{{Parking area}}}]] | }}
{{#ifeq: {{{Diesel}}} | Yes | [[Diesel::>{{{Diesel}}}]] | }}
{{#ifeq: {{{Gasoline}}} | Yes | [[Gasoline::>{{{Gasoline}}}]] | }}
{{#ifeq: {{{Gas}}} | Yes | [[Gas::>{{{Gas}}}]] | }}
{{#ifeq: {{{Crane}}} | Yes | [[Crane::>{{{Crane}}}]] | }}
{{#ifeq: {{{Crane for masts}}} | Yes | [[Crane for masts::>{{{Crane for masts}}}]] | }}
{{#ifeq: {{{Slip}}} | Yes | [[Slip::>{{{Slip}}}]] | }}
{{#ifeq: {{{Repair shop}}} | Yes | [[Repair shop::>{{{Repair shop}}}]] | }}
{{#ifeq: {{{Ship chandler}}} | Yes | [[Ship chandler::>{{{Ship chandler}}}]] | }}
{{#ifeq: {{{Sail maker}}} | Yes | [[Sail maker::>{{{Sail maker}}}]] | }}
{{#ifeq: {{{Baker}}} | Yes | [[Baker::>{{{Baker}}}]] | }}
{{#ifeq: {{{Supermarket}}} | Yes | [[Supermarket::>{{{Supermarket}}}]] | }}
{{#ifeq: {{{Restaurant}}} | Yes | [[Restaurant::>{{{Restaurant}}}]] | }}
{{#ifeq: {{{Pharmacy}}} | Yes | [[Pharmacy::>{{{Pharmacy}}}]] | }}
{{#ifeq: {{{Post}}} | Yes | [[Post::>{{{Post}}}]] | }}
{{#ifeq: {{{Bank}}} | Yes | [[Bank::>{{{Bank}}}]] | }}
{{#ifeq: {{{Doctor}}} | Yes | [[Doctor::>{{{Doctor}}}]] | }}
{{#ifeq: {{{Public transportation}}} | Yes | [[Public transportation::>{{{Public transportation}}}]] | }}
{{#ifeq: {{{Places of interest}}} | Yes | [[Places of interest::>{{{Places of interest}}}]] | }}
[[Coordinates::{{{Coordinates}}} ({{{distance}}})]]
;?coordinates;?depth max;icon=NChart-Symbol_INT_Harbour24.png|format=openlayers|width=900|height=600|layers=osm,bing}}
</includeonly>

The enviroment:
MediaWiki  	1.16.0beta3
PHP 	5.2.4-2ubuntu5.10 (apache2handler)
MySQL 	5.0.51a-3ubuntu5.7
Lookup User (Version 1.1)
Semantic Forms (Version 1.9.1) 	(r67766)
anysite extension
HTMLets
MagicNoCache (Version 1.1)
Maps (Version 0.6.3 alpha) 	(r67766)
ParserFunctions (Version 1.2.0)
Semantic Compound Queries (Version 0.2.5) 	(r67488)
Semantic MediaWiki (Version 1.5.2 alpha-1) 	(r67524)
URL Get Parameters parser extension (Version 1.0.0)
Winter (Wiki INTERpreter) (Version 2.2.0)
AllowGetParamsInWikilinks (Version 0.4)
DynamicTabs (Version 0.5.3)
Google AdSense (Version 1.1)
Google Analytics Integration (Version 2.0.1)
Language Selector
Lockdown
MetaTags (Version 1.1.0)
PagesOnDemand (Version 0.1)
Semantic Maps (Version 0.6.3 alpha) 	(r67766)
StubManager (Version 1.3.2)
Validator (Version 0.3.3 alpha) 	(r67766)
Comment 1 Jeroen De Dauw 2010-06-11 23:02:49 UTC
I identified the source of this issue and am working on a solution. Will be part of 0.6.3.
Comment 2 Jeroen De Dauw 2010-06-13 16:16:35 UTC
I think I fixed this issue. Can you confirm this by trying out the latest SVN code?
Comment 3 tkrueger73 2010-06-13 23:58:40 UTC
It´s not fixed. I Updated SM, Maps, Validator, SF and SMW to r67965 and there is no visible improvement (result map is still stucking at "Loading Map ..."
Comment 4 tkrueger73 2010-06-16 23:18:54 UTC
Jeroen,
I´m sorry, but still no change. I updated SMW, SM and Maps to r68141.
You can verify the result at: http://www.bluewater-info.net/wiki_/Test_SF_query
Best regards, Thomas
Comment 5 Jeroen De Dauw 2010-06-17 15:01:47 UTC
Can you try with a non-openlayers map? I think the problem is OL specific. I'll attempt to fix this though.
Comment 6 tkrueger73 2010-06-17 23:06:23 UTC
Now I changed the result template, but still no change:
The relevant line:
;?coordinates;?depth max;icon=NChart-Symbol_INT_Harbour24.png|format=map|width=800|height=500

The complete template, just in case it´s helpful:
<noinclude>
This is the 'TestQuery' template.
next line has to be attached right at the and of the last line, if SM bug is gone
;icon=NChart-Symbol_INT_Harbour24.png|format=openlayers|width=900|height=600|layers=osm,bing
;icon=NChart-Symbol_INT_Harbour24.png|format=openlayers|layers=osm-mapnik,osm,google|width=800|height=500|controls=panzoombar,scaleline,overviewmap,keyboarddefaults,navigation,layerswitcher
It should be called in the following format:
<pre>
{{TestQuery}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly>
{{#compound_query:[[Category:Hafen de||Hafen]]
[[Depth max::>{{{Depth max}}}]]
{{#ifeq: {{{Nighttime approach}}} | Yes | [[Nighttime approach::>{{{Nighttime approach}}}]] | }}
{{#ifeq: {{{Drinking water}}} | Yes | [[Drinking water::>{{{Drinking water}}}]] | }}
{{#ifeq: {{{Water}}} | Yes | [[Water::>{{{Water}}}]] | }}
{{#ifeq: {{{Electrical current}}} | Yes | [[Electrical current::>{{{Electrical current}}}]] | }}
{{#ifeq: {{{Internet wlan}}} | Yes | [[Internet wlan::>{{{Internet wlan}}}]] | }}
{{#ifeq: {{{Washing facility}}} | Yes | [[Washing facility::>{{{Washing facility}}}]] | }}
{{#ifeq: {{{Toilets}}} | Yes | [[Toilets::>{{{Toilets}}}]] | }}
{{#ifeq: {{{Shower}}} | Yes | [[Shower::>{{{Shower}}}]] | }}
{{#ifeq: {{{Washing machine/trumbler}}} | Yes | [[Washing machine/trumbler::>{{{Washing machine/trumbler}}}]] | }}
{{#ifeq: {{{Waste disposal}}} | Yes | [[Waste disposal::>{{{Waste disposal}}}]] | }}
{{#ifeq: {{{Waste water extraction}}} | Yes | [[Waste water extraction::>{{{Waste water extraction}}}]] | }}
{{#ifeq: {{{BBQ area}}} | Yes | [[BBQ area::>{{{BBQ area}}}]] | }}
{{#ifeq: {{{Parking area}}} | Yes | [[Parking area::>{{{Parking area}}}]] | }}
{{#ifeq: {{{Diesel}}} | Yes | [[Diesel::>{{{Diesel}}}]] | }}
{{#ifeq: {{{Gasoline}}} | Yes | [[Gasoline::>{{{Gasoline}}}]] | }}
{{#ifeq: {{{Gas}}} | Yes | [[Gas::>{{{Gas}}}]] | }}
{{#ifeq: {{{Crane}}} | Yes | [[Crane::>{{{Crane}}}]] | }}
{{#ifeq: {{{Crane for masts}}} | Yes | [[Crane for masts::>{{{Crane for masts}}}]] | }}
{{#ifeq: {{{Slip}}} | Yes | [[Slip::>{{{Slip}}}]] | }}
{{#ifeq: {{{Repair shop}}} | Yes | [[Repair shop::>{{{Repair shop}}}]] | }}
{{#ifeq: {{{Ship chandler}}} | Yes | [[Ship chandler::>{{{Ship chandler}}}]] | }}
{{#ifeq: {{{Sail maker}}} | Yes | [[Sail maker::>{{{Sail maker}}}]] | }}
{{#ifeq: {{{Baker}}} | Yes | [[Baker::>{{{Baker}}}]] | }}
{{#ifeq: {{{Supermarket}}} | Yes | [[Supermarket::>{{{Supermarket}}}]] | }}
{{#ifeq: {{{Restaurant}}} | Yes | [[Restaurant::>{{{Restaurant}}}]] | }}
{{#ifeq: {{{Pharmacy}}} | Yes | [[Pharmacy::>{{{Pharmacy}}}]] | }}
{{#ifeq: {{{Post}}} | Yes | [[Post::>{{{Post}}}]] | }}
{{#ifeq: {{{Bank}}} | Yes | [[Bank::>{{{Bank}}}]] | }}
{{#ifeq: {{{Doctor}}} | Yes | [[Doctor::>{{{Doctor}}}]] | }}
{{#ifeq: {{{Public transportation}}} | Yes | [[Public transportation::>{{{Public transportation}}}]] | }}
{{#ifeq: {{{Places of interest}}} | Yes | [[Places of interest::>{{{Places of interest}}}]] | }}
[[Coordinates::{{{Coordinates}}} ({{{distance}}})]]
;?coordinates;?depth max;icon=NChart-Symbol_INT_Harbour24.png|format=map|width=800|height=500}}
</includeonly>
Comment 7 Jeroen De Dauw 2010-06-18 00:00:24 UTC
I fixed the OpenLayers issue I found. This will not fix your problem though. I figure it's originating from SF itself, as SM now correctly adds the header items, which is proven by the fact that the maps work on special:ask.

Poking Yaron about this, as the issue seems to be coming from the biggest method I've ever seen o_O
Comment 8 Jeroen De Dauw 2010-06-18 15:39:19 UTC
Re-assigned to Yaron as this appears to be an SF issue.
Comment 9 tkrueger73 2010-06-27 03:08:29 UTC
Fixed by Yaron Koren ;-)

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


Navigation
Links