function parseIdentifier($element, $submissionFile)
{
$deployment = $this->getDeployment();
$advice = $element->getAttribute('advice');
switch ($element->getAttribute('type')) {
case 'internal':
// "update" advice not supported yet.
assert(!$advice || $advice == 'ignore');
break;
case 'public':
if ($advice == 'update') {
$submissionFile->setStoredPubId('publisher-id', $element->textContent);
}
break;
default:
if ($advice == 'update') {
// Load pub id plugins
$pubIdPlugins = PluginRegistry::loadCategory('pubIds', true, $deployment->getContext()->getId());
$submissionFile->setStoredPubId($element->getAttribute('type'), $element->textContent);
}
}
}