예제 #1
0
 /**
  *  creates the METS:div element for a Scheduled Conferences
  */
 function generateSchedConfDiv(&$doc, &$root, &$schedConf)
 {
     $sDiv =& XMLCustomWriter::createElement($doc, 'METS:div');
     XMLCustomWriter::setAttribute($sDiv, 'TYPE', 'conference');
     XMLCustomWriter::setAttribute($sDiv, 'DMDID', 'SCHC-' . $schedConf->getId());
     MetsExportDom::generateOverViewDiv($doc, $sDiv, $schedConf);
     $publishedPaperDao = DAORegistry::getDAO('PublishedPaperDAO');
     $publishedPapersIterator =& $publishedPaperDao->getPublishedPapers($schedConf->getId());
     $publishedPaperArray =& $publishedPapersIterator->toArray();
     $i = 0;
     while ($i < sizeof($publishedPaperArray)) {
         MetsExportDom::generatePublishedPaperDiv($doc, $sDiv, $publishedPaperArray[$i], $schedConf);
         $i++;
     }
     XMLCustomWriter::appendChild($root, $sDiv);
 }