/** * @see DOIExportDom::getObjectLocalePrecedence() * @param $suppFile SuppFile */ function getObjectLocalePrecedence(&$article, &$galley, &$suppFile) { $locales = array(); if (is_a($suppFile, 'SuppFile')) { // Try to map the supp-file language to a PKP locale. $suppFileLocale = $this->translateLanguageToLocale($suppFile->getLanguage()); if (!is_null($suppFileLocale)) { $locales[] = $suppFileLocale; } } // Retrieve further locales from the other objects. $locales = array_merge($locales, parent::getObjectLocalePrecedence($article, $galley)); return $locales; }
/** * @see DOIExportDom::getObjectLocalePrecedence() * @param $article Article * @param $galley Galley */ function getObjectLocalePrecedence(&$article, &$galley) { // Retrieve further locales from the other objects. return array_merge($locales, parent::getObjectLocalePrecedence($article, $galley)); }