function exportSchedConf(&$conference, &$schedConf) { $this->import('MetsExportDom'); $doc =& XMLCustomWriter::createDocument(); $root =& XMLCustomWriter::createElement($doc, 'METS:mets'); XMLCustomWriter::setAttribute($root, 'xmlns:METS', 'http://www.loc.gov/METS/'); XMLCustomWriter::setAttribute($root, 'xmlns:xlink', 'http://www.w3.org/TR/xlink'); XMLCustomWriter::setAttribute($root, 'xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); XMLCustomWriter::setAttribute($root, 'PROFILE', 'Australian METS Profile 1.0'); XMLCustomWriter::setAttribute($root, 'TYPE', 'conference'); XMLCustomWriter::setAttribute($root, 'OBJID', 'C-' . $conference->getId()); XMLCustomWriter::setAttribute($root, 'xsi:schemaLocation', 'http://www.loc.gov/METS/ http://www.loc.gov/mets/mets.xsd'); $headerNode =& MetsExportDom::createmetsHdr($doc); XMLCustomWriter::appendChild($root, $headerNode); MetsExportDom::generateConfDmdSecDom($doc, $root, $conference); MetsExportDom::generateSchedConfDmdSecDom($doc, $root, $conference, $schedConf); $amdSec =& MetsExportDom::createmetsamdSec($doc, $root, $conference); XMLCustomWriter::appendChild($root, $amdSec); $fileSec =& XMLCustomWriter::createElement($doc, 'METS:fileSec'); $fileGrp =& XMLCustomWriter::createElement($doc, 'METS:fileGrp'); XMLCustomWriter::setAttribute($fileGrp, 'USE', 'original'); MetsExportDom::generateSchedConfFileSecDom($doc, $fileGrp, $conference, $schedConf); XMLCustomWriter::appendChild($fileSec, $fileGrp); XMLCustomWriter::appendChild($root, $fileSec); MetsExportDom::generateConfstructMapWithSchedConf($doc, $root, $conference, $schedConf); XMLCustomWriter::appendChild($doc, $root); header("Content-Type: application/xml"); header("Cache-Control: private"); header("Content-Disposition: attachment; filename=\"" . $conference->getPath() . "_" . $schedConf->getPath() . "-mets.xml\""); XMLCustomWriter::printXML($doc); return true; }