Page MenuHomePhabricator

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


Author: info

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



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


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.