|
@@ 1896-1898 (lines=3) @@
|
| 1893 |
|
foreach ($result as $row) { |
| 1894 |
|
if (isset($row->top) && isset($row->label)) { |
| 1895 |
|
$label = $row->label->getValue(); |
| 1896 |
|
if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) { |
| 1897 |
|
$label .= ' (' . $row->label->getLang() . ')'; |
| 1898 |
|
} |
| 1899 |
|
$top = array('uri' => $row->top->getUri(), 'topConceptOf' => $row->topuri->getUri(), 'label' => $label, 'hasChildren' => filter_var($row->children->getValue(), FILTER_VALIDATE_BOOLEAN)); |
| 1900 |
|
if (isset($row->notation)) { |
| 1901 |
|
$top['notation'] = $row->notation->getValue(); |
|
@@ 2003-2005 (lines=3) @@
|
| 2000 |
|
$label = null; |
| 2001 |
|
if (isset($row->childlabel)) { |
| 2002 |
|
$label = $row->childlabel->getValue(); |
| 2003 |
|
if ($row->childlabel->getLang() !== $lang && strpos($row->childlabel->getLang(), $lang . "-") !== 0) { |
| 2004 |
|
$label .= " (" . $row->childlabel->getLang() . ")"; |
| 2005 |
|
} |
| 2006 |
|
|
| 2007 |
|
} |
| 2008 |
|
|
|
@@ 2025-2027 (lines=3) @@
|
| 2022 |
|
} |
| 2023 |
|
if (isset($row->label)) { |
| 2024 |
|
$preflabel = $row->label->getValue(); |
| 2025 |
|
if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) { |
| 2026 |
|
$preflabel .= ' (' . $row->label->getLang() . ')'; |
| 2027 |
|
} |
| 2028 |
|
|
| 2029 |
|
$ret[$uri]['prefLabel'] = $preflabel; |
| 2030 |
|
} |