| @@ 1427-1434 (lines=8) @@ | ||
| 1424 | // existing concept but no children |
|
| 1425 | ||
| 1426 | $label = null; |
|
| 1427 | if (isset($row->label)) { |
|
| 1428 | if ($row->label->getLang() == $lang) { |
|
| 1429 | $label = $row->label->getValue(); |
|
| 1430 | } else { |
|
| 1431 | $label = $row->label->getValue() . " (" . $row->label->getLang() . ")"; |
|
| 1432 | } |
|
| 1433 | ||
| 1434 | } |
|
| 1435 | $child_array = array( |
|
| 1436 | 'uri' => $row->child->getUri(), |
|
| 1437 | 'prefLabel' => $label, |
|
| @@ 1595-1601 (lines=7) @@ | ||
| 1592 | } |
|
| 1593 | ||
| 1594 | $label = null; |
|
| 1595 | if (isset($row->childlabel)) { |
|
| 1596 | $label = $row->childlabel->getValue(); |
|
| 1597 | if ($row->childlabel->getLang() !== $lang) { |
|
| 1598 | $label .= " (" . $row->childlabel->getLang() . ")"; |
|
| 1599 | } |
|
| 1600 | ||
| 1601 | } |
|
| 1602 | ||
| 1603 | $child_arr = array( |
|
| 1604 | 'uri' => $row->children->getUri(), |
|