function addIdentifiers($doc, $revisionNode, $submissionFile)
{
$deployment = $this->getDeployment();
// Ommiting the internal ID here because it is in the submission_file attribute
// Add public ID
if ($pubId = $submissionFile->getStoredPubId('publisher-id')) {
$revisionNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'id', htmlspecialchars($pubId, ENT_COMPAT, 'UTF-8')));
$node->setAttribute('type', 'public');
$node->setAttribute('advice', 'update');
}
// Add pub IDs by plugin
$pubIdPlugins = PluginRegistry::loadCategory('pubIds', true, $deployment->getContext()->getId());
foreach ((array) $pubIdPlugins as $pubIdPlugin) {
$this->addPubIdentifier($doc, $revisionNode, $submissionFile, $pubIdPlugin);
}
}