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; }
$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(); displayErrorPage($marcSubfldDmQ); } $marcSubfldDmQ->execSelect(); if ($marcSubfldDmQ->errorOccurred()) { $marcSubfldDmQ->close(); displayErrorPage($marcSubfldDmQ); } $marcSubflds = $marcSubfldDmQ->fetchRows(); $marcSubfldDmQ->close(); ?> <h1><?php echo $loc->getText('CSVloadHeader'); ?> </h1>