/** * creates the METS:structMap element for an issue with multiple issues */ function generateStructMap(&$doc, &$root, &$journal, &$issues) { $structMap =& XMLCustomWriter::createElement($doc, 'METS:structMap'); XMLCustomWriter::setAttribute($structMap, 'TYPE', 'logical'); $sDiv =& XMLCustomWriter::createElement($doc, 'METS:div'); XMLCustomWriter::setAttribute($sDiv, 'TYPE', 'journal'); XMLCustomWriter::setAttribute($sDiv, 'DMDID', 'J-' . $journal->getId()); foreach ($issues as $issue) { MetsExportDom::generateIssueDiv($doc, $sDiv, $issue); } XMLCustomWriter::appendChild($structMap, $sDiv); XMLCustomWriter::appendChild($root, $structMap); }