Page MenuHomePhabricator

service links don't work for many-valued properties
Closed, ResolvedPublic

Description

Author: info

Description:
It would be nice to grab pieces of a many-valued property in service links. For example, a document with a Property:Version composed of filename + revision number could link to the right version in a VCS.

But it seems many-valued properties don't implement getServiceLinkParams(), so even if you specify [[Provides service::xyz]], no service link shows up.

The simplest approach might be for SMW_DV_NAry.php to invoke getServiceLinkParams() for each element. That file notes " * TODO: support outputformat", maybe that's the same as this bug.


Version: unspecified
Severity: normal
URL: http://sandbox.semantic-mediawiki.org/wiki/Property:Many-valued_test

Details

Reference
bz14426

Event Timeline

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

info wrote:

implement getServiceLinks() for NAry, seems to work

Attached:

I am sure that this patch was implemented upon creation of datatype "Record" in 2010. Thus closing this as RESOLVED FIXED. Please reopen in case this was not considered.