Page MenuHomePhabricator

Eventline: each pop-up's title has a garbled link to the date heading
Closed, DeclinedPublic

Description

Author: info

Description:
The awesome query format=eventline and timeline show page properties in a pop-up window. This pop-up has the page title above a horizontal rule. But if you use format=eventline, the page title is a garbled link to {SERVERNAME}/{Heading_title_of_date_property}. You can see the problem on the URL above: click one of the dots, then in the pop-up click the title.

You can also reproduce the problem if you edit http://semanticweb.org/wiki/Events and change format=timeline to format=eventline. It must be something to do with determining the title URL for the item.

  1. With format=eventline, the title in the pop-up is <a href="start"> (the heading title given to the date property, not set up as a wiki link).
  2. With format=timeline, the title in the pop-up is <a href="/wiki/TRIPLE-I_2008">

Version: unspecified
Severity: normal
URL: http://wiki.laptop.org/go/Deployment_query_examples#Timeline

Details

Reference
bz15277

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:20 PM
bzimport set Reference to bz15277.

I cannot reproduce. The XO-Wiki URL fails to load JavaScript (another bug?). The semantic-web.org page does not show this error. I have created as testpage on the sandbox to investigate: http://sandbox.semantic-mediawiki.org/wiki/Testing_eventline

However, the eventline there works as expected on my browser. If this is a JavaScript issue, then we possibly should specify our browsers too. I tried Firefox 2.0.0.8. On Konqueror 3.5.9, the eventline fails to display on the sandbox, but works on semanticweb.org. Maybe some server configuration issue.

Setting bug to "worksforme" until it can be reproduced somewhere.

info wrote:

I'm running Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080903034741 Minefield/3.1b1pre ID:20080903034741

Your sandbox test page shows the same bug. I click on the dot on the eventline for HICSS2006 and the title in the pop-up is a hyperlink to "start". If I click-and-drag to select the pop-up's title then choose View Selection Source from the context menu, the HTML contains:

<div class="timeline-event-bubble-title"><a href="start">HICSS2006 </a></div>

I tried in Firefox 2.0.0.7 and in spiffy new Google Chrome and saw exactly the same problem and the same HTML in View > Source and Chrome's inspector.

I tried in MSIE7 and just got a blank window; MSIE's useless error window reported "Line: 52 Char: 9 Error: 'null' is null or not an object."

I don't see how I could have messed up three different browsers, so I'm reopening. I hope it's not just me.

I think I misunderstood your report. I thought the link was somehow garbled with wrong symbols etc. The fact that it links to the property can surely be explained from the code. I assume that this can be modified (but there should also be some indication that this is the bullet for "start" while the other is the bullet for "end" and so on.

Feel free to create a patch if you find the time.

info wrote:

Yes the link is garbled, it's a 404. In your sandbox test page, the heading title in the pop-up is "HICSS2006", and the href in its hyperlink is "/start". This is not a valid wiki URL, and there is no such property, the actual property is Property:Start_date.

Indeed, if (time) then {patch} :-)

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki 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/SemanticResultFormats/issues . We are sorry for the inconvenience.