コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
ファイル: DataciteExportDom.inc.php プロジェクト: mariojp/ojs
 /**
  * @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));
 }