function makeULContent($toc, $nameCat, $type)
{
    $result = '';
    foreach ($toc as $category) {
        $result .= '<li><a href="' . $nameCat . '-' . $type . '.html#' . translateAnchor($category) . '">' . $category . '</a></li>';
    }
    return $result;
}
function makeULContent($toc, $nameCat, $type)
{
    $result = '';
    foreach ($toc as $entry) {
        $displayLabel = $entry['quantifiedLabel'];
        if ($type == 'persName') {
            $displayLabel = $entry['label'];
        }
        $result .= '<li><a href="' . $nameCat . '-' . $type . '.html#' . translateAnchor($entry['label']) . '">' . $displayLabel . '</a></li>';
    }
    return $result;
}
Exemple #3
0
function makeProof($item)
{
    include 'targetData.php';
    $system = '';
    if (isset($item->manifestation['systemManifestation'])) {
        $system = $item->manifestation['systemManifestation'];
    }
    $id = '';
    if (isset($item->manifestation['idManifestation'])) {
        $id = $item->manifestation['idManifestation'];
    }
    $result = '';
    $systemClean = translateAnchor($system);
    $systemClean = strtolower(str_replace(' ', '', $systemClean));
    $hay = strtolower('#' . $system . $id);
    if (strrpos($hay, 'bestimm') != 0 or $system == '' and $id == '') {
        $result = 'Ausgabe nicht bestimmbar<br/>';
    } elseif (strrpos($hay, 'nach') != 0) {
        $result = 'Ausgabe nicht nachgewiesen<br/>';
    } elseif (array_key_exists($systemClean, $bases)) {
        if ($systemClean == 'parisbnf' and substr($id, 5, 0 == 'FRBNF')) {
            $id = substr($id, 5);
        }
        if ($systemClean == 'buva') {
            $id = str_pad($id, 9, '0');
        }
        $translateID = array('{ID}' => $id);
        $link = strtr($bases[$systemClean], $translateID);
        $result = '<span class="heading_info">Nachweis: </span><a href="' . $link . '" target="_blank">' . $system . '</a><br/>';
    } else {
        $page = '';
        if ($id != '') {
            $page = ', ' . $id;
        }
        $result = '<span class="heading_info">Nachweis: </span>' . $system . $page . '<br/>';
    }
    return $result;
}
Exemple #4
0
function resolveManifestation($row)
{
    include 'targetData.php';
    if (isset($row['systemManifestation']) and isset($row['idManifestation'])) {
        $systemClean = translateAnchor($row['systemManifestation']);
        $systemClean = strtolower(str_replace(' ', '', $systemClean));
        if (isset($bases[$systemClean])) {
            $link = makeBeaconLink($row['idManifestation'], $bases[$systemClean]);
            $row['titleManifestation'] = $row['systemManifestation'];
            $row['linkManifestation'] = $link;
            unset($row['systemManifestation'], $row['idManifestation']);
        }
    }
    return $row;
}
Exemple #5
0
function makeHeadline($level, $text, $info, $anchor)
{
    $result = '';
    if ($anchor == '') {
        $anchor = translateAnchor($text);
    }
    if ($level == 2) {
        $result = '<h3 id="' . $anchor . '">' . $text . $info . '</h3>';
    } elseif ($level == 1) {
        $result = '<h2 id="' . translateAnchor($text) . '">' . $text . $info . '</h2>';
    }
    return $result;
}