17 import(
'lib.pkp.classes.plugins.Plugin');
20 define(
'METADATA_PLUGIN_VOCAB_DATAFILE',
'controlledVocabs.xml');
30 function register($category, $path, $mainContextId =
null) {
31 if (!parent::register($category, $path, $mainContextId))
return false;
46 $wellKnownVocabLocations = array(
47 './'.
$pluginPath.
'/schema/'.METADATA_PLUGIN_VOCAB_DATAFILE,
48 './lib/pkp/'.$pluginPath.
'/schema/'.METADATA_PLUGIN_VOCAB_DATAFILE
51 $controlledVocabFiles = parent::getInstallControlledVocabFiles();
52 foreach ($wellKnownVocabLocations as $wellKnownVocabLocation) {
53 if (file_exists($wellKnownVocabLocation)) $controlledVocabFiles[] = $wellKnownVocabLocation;
55 return $controlledVocabFiles;