get_parms(
"bid"
, "piv"
, "tid"
);
?>
get_databox((int) $parm['bid']);
$domstruct = $databox->get_dom_structure();
$domth = $databox->get_dom_thesaurus();
if ($domstruct && $domth) {
$xpathth = new DOMXPath($domth);
$xpathstruct = new DOMXPath($domstruct);
if ($parm["tid"] !== "")
$q = "//te[@id='" . $parm["tid"] . "']";
else
$q = "//te[not(@id)]";
$nodes = $xpathth->query($q);
$fullBranch = "";
if ($nodes->length == 1) {
for ($n = $nodes->item(0); $n && $n->nodeType == XML_ELEMENT_NODE && $n->getAttribute("id") !== ""; $n = $n->parentNode) {
$sy = $xpathth->query("sy", $n)->item(0);
$sy = $sy ? $sy->getAttribute("v") : "";
if ( ! $sy)
$sy = $sy = "...";
$fullBranch = " / " . $sy . $fullBranch;
}
}
?>