Ejemplo n.º 1
0
function exportTitle($exportType, $ibictID, $numberRegisters, $formatType, $registerID, $searchExpr, $indexes)
{
    $strInitialPosition = stripos($_SERVER["SERVER_SOFTWARE"], "Win32");
    $serverOS = substr($_SERVER["SERVER_SOFTWARE"], $strInitialPosition, "5");
    if ($serverOS == "Win32") {
        //Variaveis para Windows
        $pathMX = BVS_DIR . "\\cgi-bin\\mx.exe";
        $pathMXCP = BVS_DIR . "\\cgi-bin\\mxcp.exe";
        $pathTitleDB = BVS_DIR . "\\bases\\secs-web\\title";
        $pathTitleISO = BVS_DIR . "\\temp\\secs-web\\title-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $pathHldgDB = BVS_DIR . "\\bases\\secs-web\\" . $_SESSION["libraryDir"] . "\\holdings";
        $pathTempTitle = BVS_DIR . "\\temp\\secs-web\\temptitle-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $pathTempHldg = BVS_DIR . "\\temp\\secs-web\\tempholdings-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $titleFST = BVS_DIR . "\\bases\\secs-web\\title.fst";
        $tempTitleFST = BVS_DIR . "\\temp\\secs-web\\temptitle-" . $_SESSION["centerCode"] . date("Ymd-Gi") . ".fst";
        $hldgFST = BVS_DIR . "\\bases\\secs-web\\main\\holdings.fst";
        $tempHldgFST = BVS_DIR . "\\temp\\secs-web\\tempholdings-" . $_SESSION["centerCode"] . date("Ymd-Gi") . ".fst";
        $goTempDirectory = BVS_DIR . "\\temp\\secs-web\\";
        $pathISOTitle = BVS_DIR . "\\temp\\secs-web\\exported-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $newFile = BVS_DIR . "\\temp\\" . $_SESSION["centerCode"] . date("Ymd-Gi");
    } else {
        //Variaveis para Linux
        $pathMX = BVS_DIR . "/cgi-bin/mx";
        $pathMXCP = BVS_DIR . "/cgi-bin/mxcp";
        $pathTitleDB = BVS_DIR . "/bases/secs-web/title";
        $pathTitleISO = BVS_DIR . "/temp/secs-web/title-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $pathHldgDB = BVS_DIR . "/bases/secs-web/" . $_SESSION["libraryDir"] . "/holdings";
        $pathTempTitle = BVS_DIR . "/temp/secs-web/temptitle-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $pathTempHldg = BVS_DIR . "/temp/secs-web/tempholdings-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $titleFST = BVS_DIR . "/bases/secs-web/title.fst";
        $tempTitleFST = BVS_DIR . "/temp/secs-web/temptitle.fst";
        $hldgFST = BVS_DIR . "/bases/secs-web/main/holdings.fst";
        $tempHldgFST = BVS_DIR . "/temp/secs-web/tempholdings-" . $_SESSION["centerCode"] . date("Ymd-Gi") . ".fst";
        $goTempDirectory = BVS_DIR . "/temp/secs-web/";
        $pathISOTitle = BVS_DIR . "/temp/secs-web/exported-" . $_SESSION["centerCode"] . date("Ymd-Gi");
        $newFile = BVS_DIR . "/temp/" . $_SESSION["centerCode"] . date("Ymd-Gi");
    }
    switch ($exportType) {
        case "titWithoutCollection":
            if ($numberRegisters == "allRegisters") {
                if ($searchExpr != "" && $searchExpr != "null") {
                    $createTitleDB = $pathMX . " " . $pathTitleDB . " " . $indexes . "=" . $searchExpr . " create=" . $pathTempTitle . " -all now";
                    exec($createTitleDB);
                    $pathTitleDB = $pathTempTitle;
                }
                $executeCommand = $pathMX . " " . $pathTitleDB . " iso=" . $pathTitleISO . " -all now";
            } else {
                $findMfn = $pathMX . " " . $pathTitleDB . " pft=\" if v30='" . $registerID . "' then mfn fi\" -all now";
                $mfn = exec($findMfn);
                $executeCommand = $pathMX . " " . $pathTitleDB . " from=" . $mfn . " count=1 iso=" . $pathTitleISO . " -all now";
            }
            sortTitleByField37();
            $file = exec($executeCommand);
            if ($serverOS != "Win32") {
                $convert2unix = "unix2dos " . $pathTitleISO;
                exec($convert2unix);
            }
            return $pathTitleISO;
            break;
        case "titWithCollection":
            if ($formatType == "secsFormat") {
                //cria as bases temptitle e tempholdings
                if ($numberRegisters == "allRegisters") {
                    $createTitleDB = $pathMX . " " . $pathTitleDB . " create=" . $pathTempTitle . " -all now";
                    $createHldgDb = $pathMX . " " . $pathHldgDB . " create=" . $pathTempHldg . " -all now";
                } else {
                    $findTitleMfn = $pathMX . " " . $pathTitleDB . " pft=\" if v30='" . $registerID . "' then mfn fi\" -all now";
                    $mfnTitle = exec($findTitleMfn);
                    $createTitleDB = $pathMX . " " . $pathTitleDB . " from=" . $mfnTitle . " count=1 create=" . $pathTempTitle . " -all now";
                    $findHldgMfn = $pathMX . " " . $pathHldgDB . " pft=\" if v30='" . $registerID . "' then mfn fi\" -all now";
                    $mfnHldg = exec($findHldgMfn);
                    $createHldgDb = $pathMX . " " . $pathHldgDB . " from=" . $mfnHldg . " count=1 create=" . $pathTempHldg . " -all now";
                }
                exec($createTitleDB);
                exec($createHldgDb);
                copy($titleFST, $tempTitleFST);
                //copia facic.fst para novo diretorio
                copy($hldgFST, $tempHldgFST);
                $invertTitleDb = $pathMX . " " . $pathTempTitle . " fst=@" . $pathTempTitle . ".fst fullinv/ansi=" . $pathTempTitle . " -all now";
                $invertHldgDb = $pathMX . " " . $pathTempHldg . " fst=@" . $pathTempHldg . ".fst fullinv/ansi=" . $pathTempHldg . " -all now";
                exec($invertTitleDb);
                exec($invertHldgDb);
                //faz um join de temptitle e tempholdings
                $atualDirectory = getcwd();
                chdir($goTempDirectory);
                $joinHldgTitle = $pathMX . " " . $pathTempTitle . " \"join=tempholdings,970='TIT='v30\" \"proc='d32001'\" -all now copy=" . $pathTempTitle;
                exec($joinHldgTitle);
                chdir($atualDirectory);
                $executeCommand = $pathMX . " " . $pathTempTitle . " iso=" . $pathISOTitle . " -all now";
            }
            $file = exec($executeCommand);
            sortTitleByField37();
            return $pathISOTitle;
            break;
        case "sendToSeCS":
            list($field30Hlds, $field37Hlds, $field970Hlds) = getAllHoldings();
            //list($field37Title) = getField37Title();
            if ($field30Hlds[0] != "") {
                $content = "";
                for ($i = 0; $i < count($field30Hlds); $i++) {
                    //&& $field37Title[$i] != ""
                    if ($field970Hlds[$i] != "") {
                        $content .= $_SESSION["centerCode"] . "|" . $field30Hlds[$i] . "|" . $field970Hlds[$i] . "|\r\n";
                    }
                }
                if ($content != "") {
                    $file = $newFile . ".001";
                    if (!($openFile = fopen($file, "a"))) {
                        throw new Exception("Open File Error {$file}");
                        return "no content";
                    }
                    if (!fwrite($openFile, $content)) {
                        throw new Exception("Writing File Error {$file}");
                        return "no content";
                    }
                    fclose($openFile);
                    return $file;
                } else {
                    throw new Exception("no content");
                    return "no content";
                }
            } else {
                throw new Exception("Empty database");
                return "Empty database";
            }
            break;
        case "sendToSeCS-step2":
            list($field30, $field910, $field911, $field912, $field913, $field914, $field915) = getAllIssues();
            if ($field30[0] != "") {
                $content = "";
                for ($i = 0; $i < count($field30); $i++) {
                    $content .= $_SESSION["centerCode"] . "|" . $field30[$i] . "|" . $field910[$i] . "|" . $field911[$i] . "|" . $field912[$i] . "|" . $field913[$i] . "|" . $field914[$i] . "|" . $field915[$i] . "\r\n";
                }
                if ($content != "") {
                    //$file = BVS_DIR."/temp/".$_SESSION["centerCode"].date("Ymd-Gi").".002";
                    $file = $newFile . ".002";
                    if (!($openFile = fopen($file, "a"))) {
                        throw new Exception("Open File Error {$file}");
                        return "no content";
                    }
                    if (!fwrite($openFile, $content)) {
                        throw new Exception("Writing File Error {$file}");
                        return "no content";
                    }
                    fclose($openFile);
                    return $file;
                } else {
                    throw new Exception("no content");
                    return "no content";
                }
            } else {
                throw new Exception("Empty database");
                return "no content";
            }
            break;
        case "titFormatIBICT":
            list($field30Hlds, $field37Hlds, $field970Hlds) = getAllHoldings();
            list($field20Title) = getAllTitles();
            if ($field970Hlds[0] != "") {
                $content = "";
                for ($i = 0; $i < count($field970Hlds); $i++) {
                    if ($field20Title[$i] != "" && $field970Hlds[$i] != "") {
                        $content .= "!REC-ID\r\n!C010!" . $ibictID . "\r\n";
                        $content .= "!C020!" . $field20Title[$i] . "\r\n";
                        $content .= "!C030!" . $field970Hlds[$i] . "\r\n";
                    }
                }
                if ($content != "") {
                    //$file = BVS_DIR."/temp/".$_SESSION["centerCode"]."C".date("Ymd-Gi")."";
                    $file = $newFile . ".col";
                    if (!($openFile = fopen($file, "a"))) {
                        throw new Exception("Open File Error {$file}");
                        return "no content";
                    }
                    if (!fwrite($openFile, $content)) {
                        throw new Exception("Writing File Error {$file}");
                        return "no content";
                    }
                    fclose($openFile);
                    return $file;
                }
            } else {
                throw new Exception("Empty database");
                return "no content";
            }
            break;
        case "titFormatIBICT-step2":
            list($field20, $field100, $field400) = getAllTitles();
            if ($field400[0] != "") {
                $content = "";
                for ($i = 0; $i < count($field400); $i++) {
                    $content .= "!REC-ID\r\n!S001!" . $ibictID . "\r\n";
                    if ($field100[$i]) {
                        $content .= "!S200!" . $field100[$i] . "\r\n";
                    }
                    if ($field400[$i]) {
                        $content .= "!S440!" . $field400[$i] . "\r\n";
                    }
                }
                if ($content != "") {
                    //$file = BVS_DIR."/temp/".$_SESSION["centerCode"]."C".date("Ymd-Gi")."";
                    $file = $newFile . ".col";
                    if (!($openFile = fopen($file, "a"))) {
                        throw new Exception("Open File Error {$file}");
                        return "no content";
                    }
                    if (!fwrite($openFile, $content)) {
                        throw new Exception("Writing File Error {$file}");
                        return "no content";
                    }
                    fclose($openFile);
                    return $file;
                }
            } else {
                throw new Exception("Empty database");
                return "no content";
            }
            break;
    }
}
Ejemplo n.º 2
0
function displayTitle($dataModel, $editRequest, $format)
{
    global $BVS_LANG, $BVS_CONF, $configurator;
    $title = $dataModel->getRecordByMFN($editRequest);
    /* Head Information */
    $content = "";
    if ($title[30][0]) {
        $content .= '[ ' . $title[30][0] . ' ] ';
    }
    if ($title[100][0]) {
        $content .= strtoupper($title[100][0]);
    }
    if ($title[110][0]) {
        $content .= ": " . strtoupper($title[110][0]);
    }
    if ($title[120][0]) {
        $content .= ". " . $title[120][0];
    }
    if ($title[130][0]) {
        $content .= ", " . $title[130][0];
    }
    if ($title[140][0]) {
        $content .= " / " . $title[140][0];
    }
    if ($title[230][0]) {
        $content .= " = " . $title[230][0];
    }
    if ($title[301][0]) {
        $content .= ".-- Vol." . $title[302][0] . ',';
    }
    if ($title[303][0]) {
        $content .= " no." . $title[303][0];
    }
    if ($title[302][0]) {
        $content .= " ( " . $title[301][0] . ")";
    }
    if ($title[304][0] || $title[305][0] || $title[306][0]) {
        $content .= '- Vol.' . $title[305][0];
        if ($title[305][0] && $title[306][0]) {
            $content .= ', ';
        }
        $content .= ' no.' . $title[306][0];
        $content .= ' (' . $title[304][0] . ') ';
    } else {
        $content .= '- .';
    }
    if ($title[490][0]) {
        $content .= "-- " . $title[490][0];
    }
    if ($title[480][0]) {
        $content .= " : " . $title[480][0] . ". ";
    }
    $content .= " <br/><br/>";
    switch ($format) {
        case "short":
            if ($title[400][0]) {
                $content .= $BVS_LANG['lblissn'] . ": " . $title[400][0] . "<br/>";
            }
            if ($title[150][0]) {
                $content .= $BVS_LANG['lblabbreviatedTitle'] . ": " . $title[150][0] . "<br/>";
            }
            break;
        case "long":
            if ($title[200][0]) {
                $content .= $BVS_LANG['lblexpandedFormsOfTitle'] . ": " . $title[200][0] . "<br/>";
            }
            if ($title[240][0]) {
                $content .= $BVS_LANG['lblotherTitle'] . ": " . $title[240][0] . "<br/>";
            }
            if ($title[610][0]) {
                $content .= $BVS_LANG['lbltitleContinuationOf'] . ": " . $title[610][0] . "<br/>";
            }
            if ($title[620][0]) {
                $content .= $BVS_LANG['lbltitlePartialContinuationOf'] . ": " . $title[620][0] . "<br/>";
            }
            if ($title[650][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbed'] . ": " . $title[650][0] . "<br/>";
            }
            if ($title[660][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbedInPart'] . ": " . $title[660][0] . "<br/>";
            }
            if ($title[670][0]) {
                $content .= $BVS_LANG['lbltitleFormedByTheSplittingOf'] . ": " . $title[670][0] . "<br/>";
            }
            if ($title[680][0]) {
                $content .= $BVS_LANG['lbltitleMergeOfWith'] . ": " . $title[680][0] . "<br/>";
            }
            if ($title[710][0]) {
                $content .= $BVS_LANG['lbltitleContinuedBy'] . ": " . $title[710][0] . "<br/>";
            }
            if ($title[720][0]) {
                $content .= $BVS_LANG['lbltitleContinuedInPartBy'] . ": " . $title[720][0] . "<br/>";
            }
            if ($title[750][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbedBy'] . ": " . $title[750][0] . "<br/>";
            }
            if ($title[760][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbedInPartBy'] . ": " . $title[760][0] . "<br/>";
            }
            if ($title[770][0]) {
                $content .= $BVS_LANG['lbltitleSplitInto'] . ": " . $title[770][0] . "<br/>";
            }
            if ($title[780][0]) {
                $content .= $BVS_LANG['lbltitleMergedWith'] . ": " . $title[780][0] . "<br/>";
            }
            if ($title[790][0]) {
                $content .= $BVS_LANG['lbltitleToForm'] . ": " . $title[790][0] . "<br/>";
            }
            if ($title[510][0]) {
                $content .= $BVS_LANG['lbltitleHasOtherLanguageEditions'] . ": " . $title[510][0] . "<br/>";
            }
            if ($title[520][0]) {
                $content .= $BVS_LANG['lbltitleAnotherLanguageEdition'] . ": " . $title[520][0] . "<br/>";
            }
            if ($title[530][0]) {
                $content .= $BVS_LANG['lbltitleHasSubseries'] . ": " . $title[530][0] . "<br/>";
            }
            if ($title[540][0]) {
                $content .= $BVS_LANG['lbltitleIsSubseriesOf'] . ": " . $title[540][0] . "<br/>";
            }
            if ($title[550][0]) {
                $content .= $BVS_LANG['lbltitleHasSupplementInsert'] . ": " . $title[550][0] . "<br/>";
            }
            if ($title[560][0]) {
                $content .= $BVS_LANG['lbltitleIsSupplementInsertOf'] . ": " . $title[560][0] . "<br/>";
            }
            if ($title[400][0]) {
                $content .= $BVS_LANG['lblissn'] . ": " . $title[400][0] . "<br/>";
            }
            if ($title[150][0]) {
                $content .= $BVS_LANG['lblabbreviatedTitle'] . ": " . $title[150][0] . "<br/>";
            }
            break;
        case "full":
            $content = '';
            $content .= "MFN = " . $editRequest . "<br/>";
            if ($title[1][0]) {
                $content .= $BVS_LANG['lblDatabase'] . " [001] = " . $title[1][0] . "<br/>";
            }
            if ($title[5][0]) {
                $content .= $BVS_LANG['lblliteratureType'] . " [005] = " . $title[5][0] . "<br/>";
            }
            if ($title[6][0]) {
                $content .= $BVS_LANG['lbltreatmentLevel'] . " [006] = " . $title[6][0] . "<br/>";
            }
            if ($title[10][0]) {
                $content .= $BVS_LANG['lblCenterCod'] . " [010] = " . $title[10][0] . "<br/>";
            }
            if ($title[20][0]) {
                $content .= $BVS_LANG['lblnationalCode'] . " [020] = " . $title[20][0] . "<br/>";
            }
            if ($title[37][0]) {
                $content .= $BVS_LANG['lblsecsIdentification'] . " [037] = " . $title[37][0] . "<br/>";
            }
            if ($title[40][0]) {
                $content .= $BVS_LANG['lblrelatedSystems'] . " [040] = " . $title[40][0] . "<br/>";
            }
            if ($title[50][0]) {
                $content .= $BVS_LANG['lblpublicationStatus'] . " [050] = " . $title[50][0] . "<br/>";
            }
            if ($title[100][0]) {
                $content .= $BVS_LANG['lblpublicationTitle'] . " [100] = " . $title[100][0] . "<br/>";
            }
            if ($title[120][0]) {
                $content .= $BVS_LANG['lblsubtitle'] . " [120] = " . $title[120][0] . "<br/>";
            }
            if ($title[130][0]) {
                $content .= $BVS_LANG['lbltitleOfSectionPart'] . " [130] = " . $title[130][0] . "<br/>";
            }
            if ($title[140][0]) {
                $content .= $BVS_LANG['lblnameOfIssuingBody'] . " [140] = " . $title[140][0] . "<br/>";
            }
            if ($title[149][0]) {
                $content .= $BVS_LANG['lblkeyTitle'] . " [149] = " . $title[149][0] . "<br/>";
            }
            if ($title[150][0]) {
                $content .= $BVS_LANG['lblabbreviatedTitle'] . " [150] = " . $title[150][0] . "<br/>";
            }
            if ($title[180][0]) {
                $content .= $BVS_LANG['lblabbreviatedTitleMedline'] . " [180] = " . $title[180][0] . "<br/>";
            }
            if ($title[230][0]) {
                $content .= $BVS_LANG['lblparallelTitle'] . " [230] = " . $title[230][0] . "<br/>";
            }
            if ($title[240][0]) {
                $content .= $BVS_LANG['lblotherTitle'] . " [240] = " . $title[240][0] . "<br/>";
            }
            if ($title[301][0]) {
                $content .= $BVS_LANG['lblinitialDate'] . " [301] = " . $title[301][0] . "<br/>";
            }
            if ($title[302][0]) {
                $content .= $BVS_LANG['lblinitialVolume'] . " [302] = " . $title[302][0] . "<br/>";
            }
            if ($title[303][0]) {
                $content .= $BVS_LANG['lblinitialNumber'] . " [303] = " . $title[303][0] . "<br/>";
            }
            if ($title[304][0]) {
                $content .= $BVS_LANG['lblfinalDate'] . " [304] = " . $title[304][0] . "<br/>";
            }
            if ($title[305][0]) {
                $content .= $BVS_LANG['lblfinalVolume'] . " [305] = " . $title[305][0] . "<br/>";
            }
            if ($title[306][0]) {
                $content .= $BVS_LANG['lblfinalNumber'] . " [306] = " . $title[306][0] . "<br/>";
            }
            if ($title[310][0]) {
                $content .= $BVS_LANG['lblcountry'] . " [310] = " . $title[310][0] . "<br/>";
            }
            if ($title[320][0]) {
                $content .= $BVS_LANG['lblstate'] . " [320] = " . $title[320][0] . "<br/>";
            }
            if ($title[330][0]) {
                $content .= $BVS_LANG['lblpublicationLevel'] . " [330] = " . $title[330][0] . "<br/>";
            }
            if ($title[340][0]) {
                $content .= $BVS_LANG['lblalphabetTitle'] . " [340] = " . $title[340][0] . "<br/>";
            }
            if ($title[350][0]) {
                $content .= $BVS_LANG['lbllanguageText'] . " [350] = " . $title[350][0] . "<br/>";
            }
            if ($title[360][0]) {
                $content .= $BVS_LANG['lbllanguageAbstract'] . " [360] = " . $title[360][0] . "<br/>";
            }
            if ($title[380][0]) {
                $content .= $BVS_LANG['lblFrequency'] . " [380] = " . $title[380][0] . "<br/>";
            }
            if ($title[400][0]) {
                $content .= $BVS_LANG['lblissn'] . " [400] = " . $title[400][0] . "<br/>";
            }
            if ($title[410][0]) {
                $content .= $BVS_LANG['lblcoden'] . " [410] = " . $title[410][0] . "<br/>";
            }
            if ($title[420][0]) {
                $content .= $BVS_LANG['lblmedlineCode'] . " [420] = " . $title[420][0] . "<br/>";
            }
            if ($title[421][0]) {
                $content .= $BVS_LANG['lblclassificationCdu'] . " [421] = " . $title[421][0] . "<br/>";
            }
            if ($title[422][0]) {
                $content .= $BVS_LANG['lblclassificationDewey'] . " [422] = " . $title[422][0] . "<br/>";
            }
            if ($title[430][0]) {
                $content .= $BVS_LANG['lblclassification'] . " [430] = " . $title[430][0] . "<br/>";
            }
            if ($title[435][0]) {
                $content .= $BVS_LANG['lblthematicaArea'] . " [435] = " . $title[435][0] . "<br/>";
            }
            if ($title[436][0]) {
                $content .= $BVS_LANG['lblspecialtyVHL'] . " [436] = " . $title[436][0] . "<br/>";
            }
            if ($title[440][0]) {
                $content .= $BVS_LANG['lbldescriptors'] . " [440] = " . $title[440][0] . "<br/>";
            }
            if ($title[441][0]) {
                $content .= $BVS_LANG['lblotherDescriptors'] . " [441] = " . $title[441][0] . "<br/>";
            }
            if ($title[445][0]) {
                $content .= $BVS_LANG['lbluserVHL'] . " [445] = " . $title[445][0] . "<br/>";
            }
            if ($title[450][0]) {
                $content .= $BVS_LANG['lblindexingCoverage'] . " [450] = " . $title[450][0] . "<br/>";
            }
            if ($title[470][0]) {
                $content .= $BVS_LANG['lblmethodAcquisition'] . " [470] = " . $title[470][0] . "<br/>";
            }
            if ($title[480][0]) {
                $content .= $BVS_LANG['lblpublisher'] . " [480] = " . $title[480][0] . "<br/>";
            }
            if ($title[490][0]) {
                $content .= $BVS_LANG['lblplace'] . " [490] = " . $title[490][0] . "<br/>";
            }
            if ($title[510][0]) {
                $content .= $BVS_LANG['lbltitleHasOtherLanguageEditions'] . " [510] = " . $title[510][0] . "<br/>";
            }
            if ($title[520][0]) {
                $content .= $BVS_LANG['lbltitleAnotherLanguageEdition'] . " [520] = " . $title[520][0] . "<br/>";
            }
            if ($title[530][0]) {
                $content .= $BVS_LANG['lbltitleHasSubseries'] . " [530] = " . $title[530][0] . "<br/>";
            }
            if ($title[540][0]) {
                $content .= $BVS_LANG['lbltitleIsSubseriesOf'] . " [540] = " . $title[540][0] . "<br/>";
            }
            if ($title[550][0]) {
                $content .= $BVS_LANG['lbltitleHasSupplementInsert'] . " [550] = " . $title[550][0] . "<br/>";
            }
            if ($title[560][0]) {
                $content .= $BVS_LANG['lbltitleIsSupplementInsertOf'] . " [560] = " . $title[560][0] . "<br/>";
            }
            if ($title[610][0]) {
                $content .= $BVS_LANG['lbltitleContinuationOf'] . " [610] = " . $title[610][0] . "<br/>";
            }
            if ($title[620][0]) {
                $content .= $BVS_LANG['lbltitlePartialContinuationOf'] . " [620] = " . $title[620][0] . "<br/>";
            }
            if ($title[650][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbed'] . " [650] = " . $title[650][0] . "<br/>";
            }
            if ($title[660][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbedInPart'] . " [660] = " . $title[660][0] . "<br/>";
            }
            if ($title[670][0]) {
                $content .= $BVS_LANG['lbltitleFormedByTheSplittingOf'] . "  [670] = " . $title[670][0] . "<br/>";
            }
            if ($title[680][0]) {
                $content .= $BVS_LANG['lbltitleMergeOfWith'] . "[680] = " . $title[680][0] . "<br/>";
            }
            if ($title[710][0]) {
                $content .= $BVS_LANG['lbltitleContinuedBy'] . " [710] = " . $title[710][0] . "<br/>";
            }
            if ($title[720][0]) {
                $content .= $BVS_LANG['lbltitleContinuedInPartBy'] . " [720] = " . $title[720][0] . "<br/>";
            }
            if ($title[750][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbedBy'] . " [750] = " . $title[750][0] . "<br/>";
            }
            if ($title[760][0]) {
                $content .= $BVS_LANG['lbltitleAbsorbedInPartBy'] . " [760] = " . $title[760][0] . "<br/>";
            }
            if ($title[770][0]) {
                $content .= $BVS_LANG['lbltitleSplitInto'] . " [770] = " . $title[770][0] . "<br/>";
            }
            if ($title[780][0]) {
                $content .= $BVS_LANG['lbltitleMergedWith'] . " [780] = " . $title[780][0] . "<br/>";
            }
            if ($title[790][0]) {
                $content .= $BVS_LANG['lbltitleToForm'] . " [790] = " . $title[790][0] . "<br/>";
            }
            if ($title[860][0]) {
                $content .= $BVS_LANG['lblurlInformation'] . " [860] = " . $title[860][0] . "<br/>";
            }
            if ($title[900][0]) {
                $content .= $BVS_LANG['lblnotes'] . " [900] = " . $title[900][0] . "<br/>";
            }
            if ($title[910][0]) {
                $content .= $BVS_LANG['lblnotesBVS'] . " [910] = " . $title[910][0] . "<br/>";
            }
            if ($title[920][0]) {
                $content .= $BVS_LANG['lblwhoindex'] . " [920] = " . $title[920][0] . "<br/>";
            }
            if ($title[930][0]) {
                $content .= $BVS_LANG['lblcodepublisher'] . " [930] = " . $title[930][0] . "<br/>";
            }
            if ($title[999][0]) {
                $content .= $BVS_LANG['lblurlPortal'] . " [999] = " . $title[999][0] . "<br/>";
            }
            break;
        case "catalog":
            $allHoldings = getAllHoldings();
            $titleID = array_search($title[30][0], $allHoldings[0]);
            if ($title[550][0]) {
                $content .= $BVS_LANG['lbltitleHasSupplementInsert'] . ": " . $title[550][0] . "<br/>";
            }
            if ($title[400][0]) {
                $content .= $BVS_LANG['lblissn'] . ": " . $title[400][0] . "<br/>";
            }
            if ($title[150][0]) {
                $content .= $BVS_LANG['lblabbreviatedTitle'] . ": " . $title[150][0] . "<br/><br/>";
            }
            if ($titleID && $allHoldings[2][$titleID]) {
                $content .= $BVS_LANG['lblColection'] . ': ' . $allHoldings[2][$titleID] . "<br/><br/>";
            }
            break;
        case "titleplus":
            if ($title[301][0]) {
                $content .= $title[301][0] . "<br/>";
            }
            if ($title[302][0]) {
                $content .= $title[302][0] . "<br/>";
            }
            if ($title[303][0]) {
                $content .= $title[303][0] . "<br/>";
            }
            break;
    }
    if ($content == " <br/><br/>") {
        $content = "empty";
    }
    print $content;
}