16 import(
'classes.handler.Handler');
17 import(
'lib.pkp.classes.core.JSONMessage');
18 import(
'lib.pkp.pages.submission.PKPSubmissionHandler');
25 parent::__construct();
26 $this->
addRoleAssignment(array(ROLE_ID_AUTHOR, ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER),
27 array(
'index',
'wizard',
'step',
'saveStep',
'fetchChoices'));
40 $term = $request->getUserVar(
'term');
41 $locale = $request->getUserVar(
'locale');
45 switch ($request->getUserVar(
'list')) {
47 $isoCodes = new \Sokil\IsoCodes\IsoCodesFactory(\Sokil\IsoCodes\IsoCodesFactory::OPTIMISATION_IO);
49 foreach ($isoCodes->getLanguages() as $language) {
50 if (!$language->getAlpha2() || $language->getType() !=
'L' || $language->getScope() !=
'I')
continue;
51 if (stristr($language->getLocalName(), $term)) $matches[$language->getAlpha3()] = $language->getLocalName();
53 header(
'Content-Type: text/json');
54 echo json_encode($matches);
70 return parent::setupTemplate($request);
79 1 =>
'author.submit.start',
80 2 =>
'author.submit.upload',
81 3 =>
'author.submit.metadata',
82 4 =>
'author.submit.confirmation',
83 5 =>
'author.submit.nextSteps',