| @@ 1557-1564 (lines=8) @@ | ||
| 1554 | // existing concept but no children |
|
| 1555 | ||
| 1556 | $label = null; |
|
| 1557 | if (isset($row->label)) { |
|
| 1558 | if ($row->label->getLang() == $lang) { |
|
| 1559 | $label = $row->label->getValue(); |
|
| 1560 | } else { |
|
| 1561 | $label = $row->label->getValue() . " (" . $row->label->getLang() . ")"; |
|
| 1562 | } |
|
| 1563 | ||
| 1564 | } |
|
| 1565 | $childArray = array( |
|
| 1566 | 'uri' => $row->child->getUri(), |
|
| 1567 | 'prefLabel' => $label, |
|
| @@ 1723-1729 (lines=7) @@ | ||
| 1720 | } |
|
| 1721 | ||
| 1722 | $label = null; |
|
| 1723 | if (isset($row->childlabel)) { |
|
| 1724 | $label = $row->childlabel->getValue(); |
|
| 1725 | if ($row->childlabel->getLang() !== $lang) { |
|
| 1726 | $label .= " (" . $row->childlabel->getLang() . ")"; |
|
| 1727 | } |
|
| 1728 | ||
| 1729 | } |
|
| 1730 | ||
| 1731 | $childArr = array( |
|
| 1732 | 'uri' => $row->children->getUri(), |
|