|
@@ 1879-1881 (lines=3) @@
|
| 1876 |
|
foreach ($result as $row) { |
| 1877 |
|
if (isset($row->top) && isset($row->label)) { |
| 1878 |
|
$label = $row->label->getValue(); |
| 1879 |
|
if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) { |
| 1880 |
|
$label .= ' (' . $row->label->getLang() . ')'; |
| 1881 |
|
} |
| 1882 |
|
$top = array('uri' => $row->top->getUri(), 'topConceptOf' => $row->topuri->getUri(), 'label' => $label, 'hasChildren' => filter_var($row->children->getValue(), FILTER_VALIDATE_BOOLEAN)); |
| 1883 |
|
if (isset($row->notation)) { |
| 1884 |
|
$top['notation'] = $row->notation->getValue(); |
|
@@ 1986-1988 (lines=3) @@
|
| 1983 |
|
$label = null; |
| 1984 |
|
if (isset($row->childlabel)) { |
| 1985 |
|
$label = $row->childlabel->getValue(); |
| 1986 |
|
if ($row->childlabel->getLang() !== $lang && strpos($row->childlabel->getLang(), $lang . "-") !== 0) { |
| 1987 |
|
$label .= " (" . $row->childlabel->getLang() . ")"; |
| 1988 |
|
} |
| 1989 |
|
|
| 1990 |
|
} |
| 1991 |
|
|
|
@@ 2008-2010 (lines=3) @@
|
| 2005 |
|
} |
| 2006 |
|
if (isset($row->label)) { |
| 2007 |
|
$preflabel = $row->label->getValue(); |
| 2008 |
|
if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) { |
| 2009 |
|
$preflabel .= ' (' . $row->label->getLang() . ')'; |
| 2010 |
|
} |
| 2011 |
|
|
| 2012 |
|
$ret[$uri]['prefLabel'] = $preflabel; |
| 2013 |
|
} |