function getTagDesc($tag, $subfldCd, &$tagDesc, &$subfldDesc, &$ind1Desc, &$ind2Desc) { $tagDesc = ""; $subfldDesc = ""; $ind1Desc = ""; $ind2Desc = ""; if ($tag != "") { $marcTagDmQ = new UsmarcTagDmQuery(); $marcTagDmQ->connect(); if ($marcTagDmQ->errorOccurred()) { $marcTagDmQ->close(); displayErrorPage($marcTagDmQ); } $marcTag = $marcTagDmQ->doQuery($tag); if ($marcTagDmQ->errorOccurred()) { $marcTagDmQ->close(); displayErrorPage($marcTagDmQ); } $marcTagDmQ->close(); if ($marcTag) { $tagDesc = $marcTag->getDescription(); $ind1Desc = $marcTag->getInd1Description(); $ind2Desc = $marcTag->getInd2Description(); # reading for subfield description $marcSubfldDmQ = new UsmarcSubfieldDmQuery(); $marcSubfldDmQ->connect(); if ($marcSubfldDmQ->errorOccurred()) { $marcSubfldDmQ->close(); displayErrorPage($marcSubfldDmQ); } $marcSubfld = $marcSubfldDmQ->doQuery($tag, $subfldCd); if ($marcSubfldDmQ->errorOccurred()) { $marcSubfldDmQ->close(); displayErrorPage($marcSubfldDmQ); } $marcSubfldDmQ->close(); if (!$marcSubfld) { $subfldDesc = ""; } else { $subfldDesc = $marcSubfld->getDescription(); } } } return true; }
$nav = "upload_csv"; $helpPage = "CsvImport"; include "../shared/logincheck.php"; include "../shared/header.php"; require_once "../classes/UsmarcTagDm.php"; require_once "../classes/UsmarcTagDmQuery.php"; require_once "../classes/UsmarcSubfieldDm.php"; require_once "../classes/UsmarcSubfieldDmQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../functions/marcFuncs.php"; require_once "../catalog/inputFuncs.php"; require_once "../functions/inputFuncs.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); $marcTagDmQ = new UsmarcTagDmQuery(); $marcTagDmQ->connect(); if ($marcTagDmQ->errorOccurred()) { $marcTagDmQ->close(); displayErrorPage($marcTagDmQ); } $marcTagDmQ->execSelect(); if ($marcTagDmQ->errorOccurred()) { $marcTagDmQ->close(); displayErrorPage($marcTagDmQ); } $marcTags = $marcTagDmQ->fetchRows(); $marcTagDmQ->close(); $marcSubfldDmQ = new UsmarcSubfieldDmQuery(); $marcSubfldDmQ->connect(); if ($marcSubfldDmQ->errorOccurred()) { $marcSubfldDmQ->close();