+ "?" + RequestParameter.ParameterVersion
+ "=" + version.number();
if (_request.node().identifier().equals(version.provenance().identifier())) {
targetName = "this";
} else {
DatabaseNode targetNode = _request.node().find(version.provenance().identifier());
if (targetNode != null) {
RequestParameterVersionSingle versionParameter = new RequestParameterVersionSingle(version.number());
DatabaseNode node = targetNode;
while (!node.identifier().equals(_request.node().identifier())) {
if (node.isElement()) {
DatabaseElementNode element = (DatabaseElementNode)node;
String elementName = _layouter.get(element.schema()).getShortLabel(element, versionParameter);
if (targetName != null) {
targetName = elementName + "/" + targetName;
} else {
targetName = elementName;
}
}
node = node.parent();
}
if ((targetName == null) && (targetNode.isText())) {
targetName = "\'" + ((DatabaseTextNode)targetNode).getValue() + "\'";
//targetName = "this";
}