当前位置: 首页>>代码示例>>PHP>>正文


PHP IssueAction::getIssueOptions方法代码示例

本文整理汇总了PHP中IssueAction::getIssueOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP IssueAction::getIssueOptions方法的具体用法?PHP IssueAction::getIssueOptions怎么用?PHP IssueAction::getIssueOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IssueAction的用法示例。


在下文中一共展示了IssueAction::getIssueOptions方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $request =& $this->request;
     $user =& $request->getUser();
     $journal =& $request->getJournal();
     $formLocale = $this->getFormLocale();
     $templateMgr->assign('journal', $journal);
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $sections =& $sectionDao->getJournalSections($journal->getId());
     $sectionTitles = $sectionAbstractsRequired = array();
     while ($section =& $sections->next()) {
         $sectionTitles[$section->getId()] = $section->getTitle($journal->getPrimaryLocale());
         $sectionAbstractsRequired[(int) $section->getId()] = (int) (!$section->getAbstractsNotRequired());
         unset($section);
     }
     $templateMgr->assign('sectionOptions', array('0' => __('author.submit.selectSection')) + $sectionTitles);
     $templateMgr->assign('sectionAbstractsRequired', $sectionAbstractsRequired);
     $countryDao =& DAORegistry::getDAO('CountryDAO');
     $countries =& $countryDao->getCountries();
     $templateMgr->assign_by_ref('countries', $countries);
     import('classes.issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     import('classes.file.TemporaryFileManager');
     $temporaryFileManager = new TemporaryFileManager();
     $tempFileId = $this->getData('tempFileId');
     if (isset($tempFileId[$formLocale]) && $tempFileId[$formLocale] > 0) {
         $submissionFile = $temporaryFileManager->getFile($tempFileId[$formLocale], $user->getId());
         $templateMgr->assign_by_ref('submissionFile', $submissionFile);
     }
     if ($request->getUserVar('addAuthor') || $request->getUserVar('delAuthor') || $request->getUserVar('moveAuthor')) {
         $templateMgr->assign('scrollToAuthor', true);
     }
     if ($request->getUserVar('destination') == 'queue') {
         $templateMgr->assign('publishToIssue', false);
     } else {
         $templateMgr->assign('issueNumber', $request->getUserVar('issueId'));
         $templateMgr->assign('publishToIssue', true);
     }
     $templateMgr->assign('enablePageNumber', $journal->getSetting('enablePageNumber'));
     // Provide available submission languages. (Convert the array
     // of locale symbolic names xx_XX into an associative array
     // of symbolic names => readable names.)
     $supportedSubmissionLocales = $journal->getSetting('supportedSubmissionLocales');
     if (empty($supportedSubmissionLocales)) {
         $supportedSubmissionLocales = array($journal->getPrimaryLocale());
     }
     $templateMgr->assign('supportedSubmissionLocaleNames', array_flip(array_intersect(array_flip(AppLocale::getAllLocales()), $supportedSubmissionLocales)));
     parent::display();
 }
开发者ID:farhanabbas1983,项目名称:ojs-1,代码行数:53,代码来源:QuickSubmitForm.inc.php

示例2: display

 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $user =& Request::getUser();
     $journal =& Request::getJournal();
     $formLocale = $this->getFormLocale();
     $templateMgr->assign('journal', $journal);
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $sections =& $sectionDao->getJournalSections($journal->getId());
     $sectionTitles = $sectionAbstractsRequired = array();
     while ($section =& $sections->next()) {
         $sectionTitles[$section->getId()] = $section->getLocalizedTitle();
         $sectionAbstractsRequired[(int) $section->getId()] = (int) (!$section->getAbstractsNotRequired());
         unset($section);
     }
     $templateMgr->assign('sectionOptions', array('0' => __('author.submit.selectSection')) + $sectionTitles);
     $templateMgr->assign('sectionAbstractsRequired', $sectionAbstractsRequired);
     $countryDao =& DAORegistry::getDAO('CountryDAO');
     $countries =& $countryDao->getCountries();
     $templateMgr->assign_by_ref('countries', $countries);
     import('classes.issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     import('classes.file.TemporaryFileManager');
     $temporaryFileManager = new TemporaryFileManager();
     $tempFileId = $this->getData('tempFileId');
     if (isset($tempFileId[$formLocale]) && $tempFileId[$formLocale] > 0) {
         $submissionFile = $temporaryFileManager->getFile($tempFileId[$formLocale], $user->getId());
         $templateMgr->assign_by_ref('submissionFile', $submissionFile);
     }
     $tempSupplFileId = $this->getData('tempSupplFileId');
     if (isset($tempSupplFileId[$formLocale]) && $tempSupplFileId[$formLocale] > 0) {
         $supplementaryFile = $temporaryFileManager->getFile($tempSupplFileId[$formLocale], $user->getId());
         $templateMgr->assign_by_ref('supplementaryFile', $supplementaryFile);
     }
     if (Request::getUserVar('addAuthor') || Request::getUserVar('delAuthor') || Request::getUserVar('moveAuthor')) {
         $templateMgr->assign('scrollToAuthor', true);
     }
     if (Request::getUserVar('destination') == 'queue') {
         $templateMgr->assign('publishToIssue', false);
     } else {
         $templateMgr->assign('issueNumber', Request::getUserVar('issueId'));
         $templateMgr->assign('publishToIssue', true);
     }
     $templateMgr->assign('enablePageNumber', $journal->getSetting('enablePageNumber'));
     parent::display();
 }
开发者ID:ingmarschuster,项目名称:MindResearchRepository,代码行数:49,代码来源:PaperPackageUpForm.inc.php

示例3: fetch

 /**
  * Fetch the HTML contents of the form.
  * @param $request PKPRequest
  * return string
  */
 function fetch($request)
 {
     $context = $request->getContext();
     $templateMgr = TemplateManager::getManager($request);
     $templateMgr->assign('submissionId', $this->getSubmission()->getId());
     $templateMgr->assign('stageId', $this->getStageId());
     $templateMgr->assign('formParams', $this->getFormParams());
     $templateMgr->assign('context', $context);
     $journalSettingsDao = DAORegistry::getDAO('JournalSettingsDAO');
     $enablePublicArticleId = $journalSettingsDao->getSetting($context->getId(), 'enablePublicArticleId');
     $templateMgr->assign('enablePublicArticleId', $enablePublicArticleId);
     $enablePageNumber = $journalSettingsDao->getSetting($context->getId(), 'enablePageNumber');
     $templateMgr->assign('enablePageNumber', $enablePageNumber);
     // include issue possibilities
     import('classes.issue.IssueAction');
     $issueAction = new IssueAction();
     $templateMgr->assign('issueOptions', $issueAction->getIssueOptions());
     $publishedArticle = $this->getPublishedArticle();
     if ($publishedArticle) {
         $templateMgr->assign('publishedArticle', $publishedArticle);
         $issueDao = DAORegistry::getDAO('IssueDAO');
         $issue = $issueDao->getById($publishedArticle->getIssueId());
         if ($issue) {
             $templateMgr->assign('issueAccess', $issue->getAccessStatus());
             $templateMgr->assign('accessOptions', array(ARTICLE_ACCESS_ISSUE_DEFAULT => __('editor.issues.default'), ARTICLE_ACCESS_OPEN => __('editor.issues.open')));
         }
     }
     // include payment information
     // Set up required Payment Related Information
     import('classes.payment.ojs.OJSPaymentManager');
     $paymentManager = new OJSPaymentManager($request);
     $completedPaymentDao = DAORegistry::getDAO('OJSCompletedPaymentDAO');
     $publicationFeeEnabled = $paymentManager->publicationEnabled();
     $templateMgr->assign('publicationFeeEnabled', $publicationFeeEnabled);
     if ($publicationFeeEnabled) {
         $templateMgr->assign('publicationPayment', $completedPaymentDao->getPublicationCompletedPayment($context->getId(), $subission->getId()));
     }
     return parent::fetch($request);
 }
开发者ID:jalperin,项目名称:ojs,代码行数:44,代码来源:IssueEntryPublicationMetadataForm.inc.php

示例4: display

 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $user =& Request::getUser();
     $journal =& Request::getJournal();
     $formLocale = $this->getFormLocale();
     $templateMgr->assign('journal', $journal);
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $templateMgr->assign('sectionOptions', array('0' => Locale::translate('author.submit.selectSection')) + $sectionDao->getSectionTitles($journal->getId()));
     $countryDao =& DAORegistry::getDAO('CountryDAO');
     $countries =& $countryDao->getCountries();
     $templateMgr->assign_by_ref('countries', $countries);
     import('issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     import('file.TemporaryFileManager');
     $temporaryFileManager = new TemporaryFileManager();
     $tempFileId = $this->getData('tempFileId');
     if ($tempFileId[$formLocale] > 0) {
         $submissionFile = $temporaryFileManager->getFile($tempFileId[$formLocale], $user->getId());
         $templateMgr->assign_by_ref('submissionFile', $submissionFile);
     }
     if (Request::getUserVar('addAuthor') || Request::getUserVar('delAuthor') || Request::getUserVar('moveAuthor')) {
         $templateMgr->assign('scrollToAuthor', true);
     }
     $jqueryPlugin =& PluginRegistry::getPlugin('generic', 'JQueryPlugin');
     if ($jqueryPlugin->isJQueryInstalled()) {
         $templateMgr->assign('jqueryPath', $jqueryPlugin->getScriptPath());
         $templateMgr->assign('addAuthorUrl', $jqueryPlugin->getScriptPath());
     }
     if (Request::getUserVar('destination') == 'queue') {
         $templateMgr->assign('publishToIssue', false);
     } else {
         $templateMgr->assign('issueNumber', Request::getUserVar('issueId'));
         $templateMgr->assign('publishToIssue', true);
     }
     parent::display();
 }
开发者ID:philschatz,项目名称:ojs,代码行数:40,代码来源:QuickSubmitForm.inc.php

示例5: submissionEditing

 function submissionEditing($args)
 {
     $articleId = isset($args[0]) ? (int) $args[0] : 0;
     list($journal, $submission) = SubmissionEditHandler::validate($articleId, SECTION_EDITOR_ACCESS_EDIT);
     parent::setupTemplate(true, $articleId);
     $useCopyeditors = $journal->getSetting('useCopyeditors');
     $useLayoutEditors = $journal->getSetting('useLayoutEditors');
     $useProofreaders = $journal->getSetting('useProofreaders');
     // check if submission is accepted
     $round = isset($args[1]) ? $args[1] : $submission->getCurrentRound();
     $editorDecisions = $submission->getDecisions($round);
     $lastDecision = count($editorDecisions) >= 1 ? $editorDecisions[count($editorDecisions) - 1]['decision'] : null;
     $submissionAccepted = $lastDecision == SUBMISSION_EDITOR_DECISION_ACCEPT ? true : false;
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign_by_ref('submission', $submission);
     $templateMgr->assign_by_ref('submissionFile', $submission->getSubmissionFile());
     $templateMgr->assign_by_ref('copyeditFile', $submission->getCopyeditFile());
     $templateMgr->assign_by_ref('initialCopyeditFile', $submission->getInitialCopyeditFile());
     $templateMgr->assign_by_ref('editorAuthorCopyeditFile', $submission->getEditorAuthorCopyeditFile());
     $templateMgr->assign_by_ref('finalCopyeditFile', $submission->getFinalCopyeditFile());
     $templateMgr->assign_by_ref('suppFiles', $submission->getSuppFiles());
     $templateMgr->assign_by_ref('copyeditor', $submission->getCopyeditor());
     $roleDao =& DAORegistry::getDAO('RoleDAO');
     $user =& Request::getUser();
     $templateMgr->assign('isEditor', $roleDao->roleExists($journal->getJournalId(), $user->getUserId(), ROLE_ID_EDITOR));
     import('issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($submission->getArticleId());
     $templateMgr->assign_by_ref('publishedArticle', $publishedArticle);
     $templateMgr->assign('useCopyeditors', $useCopyeditors);
     $templateMgr->assign('useLayoutEditors', $useLayoutEditors);
     $templateMgr->assign('useProofreaders', $useProofreaders);
     $templateMgr->assign_by_ref('proofAssignment', $submission->getProofAssignment());
     $templateMgr->assign_by_ref('layoutAssignment', $submission->getLayoutAssignment());
     $templateMgr->assign('submissionAccepted', $submissionAccepted);
     // Set up required Payment Related Information
     import('payment.ojs.OJSPaymentManager');
     $paymentManager =& OJSPaymentManager::getManager();
     $completedPaymentDAO =& DAORegistry::getDAO('OJSCompletedPaymentDAO');
     $publicationFeeEnabled = $paymentManager->publicationEnabled();
     $templateMgr->assign('publicatonFeeEnabled', $publicationFeeEnabled);
     if ($publicationFeeEnabled) {
         $templateMgr->assign_by_ref('publicationPayment', $completedPaymentDAO->getPublicationCompletedPayment($journal->getJournalId(), $articleId));
     }
     $templateMgr->assign('helpTopicId', 'editorial.sectionEditorsRole.editing');
     $templateMgr->display('sectionEditor/submissionEditing.tpl');
 }
开发者ID:LiteratimBi,项目名称:jupitertfn,代码行数:48,代码来源:SubmissionEditHandler.inc.php

示例6: issueToc

 /**
  * Display the table of contents
  */
 function issueToc($args)
 {
     $issueId = isset($args[0]) ? $args[0] : 0;
     $issue = IssueManagementHandler::validate($issueId, true);
     IssueManagementHandler::setupTemplate(EDITOR_SECTION_ISSUES);
     $templateMgr =& TemplateManager::getManager();
     $journal =& Request::getJournal();
     $journalId = $journal->getJournalId();
     $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO');
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $enablePublicArticleId = $journalSettingsDao->getSetting($journalId, 'enablePublicArticleId');
     $templateMgr->assign('enablePublicArticleId', $enablePublicArticleId);
     $enableSubscriptions = $journalSettingsDao->getSetting($journalId, 'enableSubscriptions');
     $templateMgr->assign('enableSubscriptions', $enableSubscriptions);
     $enablePageNumber = $journalSettingsDao->getSetting($journalId, 'enablePageNumber');
     $templateMgr->assign('enablePageNumber', $enablePageNumber);
     $templateMgr->assign('customSectionOrderingExists', $customSectionOrderingExists = $sectionDao->customSectionOrderingExists($issueId));
     $templateMgr->assign('issueId', $issueId);
     $templateMgr->assign_by_ref('issue', $issue);
     $templateMgr->assign('unpublished', !$issue->getPublished());
     $templateMgr->assign('issueAccess', $issue->getAccessStatus());
     // get issue sections and articles
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticles = $publishedArticleDao->getPublishedArticles($issueId);
     $layoutAssignmentDao =& DAORegistry::getDAO('LayoutAssignmentDAO');
     $proofedArticleIds = $layoutAssignmentDao->getProofedArticlesByIssueId($issueId);
     $templateMgr->assign('proofedArticleIds', $proofedArticleIds);
     $currSection = 0;
     $counter = 0;
     $sections = array();
     $sectionCount = 0;
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     foreach ($publishedArticles as $article) {
         $sectionId = $article->getSectionId();
         if ($currSection != $sectionId) {
             $lastSectionId = $currSection;
             $sectionCount++;
             if ($lastSectionId !== 0) {
                 $sections[$lastSectionId][5] = $customSectionOrderingExists ? $sectionDao->getCustomSectionOrder($issueId, $sectionId) : $sectionCount;
             }
             // Store next custom order
             $currSection = $sectionId;
             $counter++;
             $sections[$sectionId] = array($sectionId, $article->getSectionTitle(), array($article), $counter, $customSectionOrderingExists ? $sectionDao->getCustomSectionOrder($issueId, $lastSectionId) : $sectionCount - 1, null);
         } else {
             $sections[$article->getSectionId()][2][] = $article;
         }
     }
     $templateMgr->assign_by_ref('sections', $sections);
     $accessOptions[ISSUE_DEFAULT] = Locale::Translate('editor.issues.default');
     $accessOptions[OPEN_ACCESS] = Locale::Translate('editor.issues.open');
     $templateMgr->assign('accessOptions', $accessOptions);
     import('issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     $templateMgr->assign('helpTopicId', 'publishing.tableOfContents');
     $templateMgr->display('editor/issues/issueToc.tpl');
 }
开发者ID:LiteratimBi,项目名称:jupitertfn,代码行数:60,代码来源:IssueManagementHandler.inc.php

示例7: issueToc

 /**
  * Display the table of contents
  */
 function issueToc($args, $request)
 {
     $issueId = (int) array_shift($args);
     $this->validate($issueId, true);
     $issue =& $this->issue;
     $this->setupTemplate(EDITOR_SECTION_ISSUES);
     $templateMgr =& TemplateManager::getManager();
     $journal =& $request->getJournal();
     $journalId = $journal->getId();
     $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO');
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $enablePublicArticleId = $journalSettingsDao->getSetting($journalId, 'enablePublicArticleId');
     $templateMgr->assign('enablePublicArticleId', $enablePublicArticleId);
     $enablePageNumber = $journalSettingsDao->getSetting($journalId, 'enablePageNumber');
     $templateMgr->assign('enablePageNumber', $enablePageNumber);
     $templateMgr->assign('customSectionOrderingExists', $customSectionOrderingExists = $sectionDao->customSectionOrderingExists($issueId));
     $templateMgr->assign('issueId', $issueId);
     $templateMgr->assign_by_ref('issue', $issue);
     $templateMgr->assign('unpublished', !$issue->getPublished());
     $templateMgr->assign('issueAccess', $issue->getAccessStatus());
     // get issue sections and articles
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticles = $publishedArticleDao->getPublishedArticles($issueId);
     $layoutEditorSubmissionDao =& DAORegistry::getDAO('LayoutEditorSubmissionDAO');
     $proofedArticleIds = $layoutEditorSubmissionDao->getProofedArticlesByIssueId($issueId);
     $templateMgr->assign('proofedArticleIds', $proofedArticleIds);
     $currSection = 0;
     $counter = 0;
     $sections = array();
     $sectionCount = 0;
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     foreach ($publishedArticles as $article) {
         $sectionId = $article->getSectionId();
         if ($currSection != $sectionId) {
             $lastSectionId = $currSection;
             $sectionCount++;
             if ($lastSectionId !== 0) {
                 $sections[$lastSectionId][5] = $customSectionOrderingExists ? $sectionDao->getCustomSectionOrder($issueId, $sectionId) : $sectionCount;
             }
             // Store next custom order
             $currSection = $sectionId;
             $counter++;
             $sections[$sectionId] = array($sectionId, $article->getSectionTitle(), array($article), $counter, $customSectionOrderingExists ? $sectionDao->getCustomSectionOrder($issueId, $lastSectionId) : $sectionCount - 1, null);
         } else {
             $sections[$article->getSectionId()][2][] = $article;
         }
     }
     $templateMgr->assign_by_ref('sections', $sections);
     $templateMgr->assign('accessOptions', array(ARTICLE_ACCESS_ISSUE_DEFAULT => AppLocale::Translate('editor.issues.default'), ARTICLE_ACCESS_OPEN => AppLocale::Translate('editor.issues.open')));
     import('classes.issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     $templateMgr->assign('helpTopicId', 'publishing.tableOfContents');
     $templateMgr->addJavaScript('lib/pkp/js/lib/jquery/plugins/jquery.tablednd.js');
     $templateMgr->addJavaScript('lib/pkp/js/functions/tablednd.js');
     $templateMgr->display('editor/issues/issueToc.tpl');
 }
开发者ID:reconciler,项目名称:ojs,代码行数:59,代码来源:IssueManagementHandler.inc.php

示例8: submissionEditing

 /**
  * View the submission editing page.
  * @param $args array
  * @param $request PKPRequest
  */
 function submissionEditing($args, $request)
 {
     $articleId = isset($args[0]) ? (int) $args[0] : 0;
     $this->validate($articleId, SECTION_EDITOR_ACCESS_EDIT);
     $journal =& $request->getJournal();
     $submission =& $this->submission;
     $this->setupTemplate(true, $articleId);
     $useCopyeditors = $journal->getSetting('useCopyeditors');
     $useLayoutEditors = $journal->getSetting('useLayoutEditors');
     $useProofreaders = $journal->getSetting('useProofreaders');
     // check if submission is accepted
     $round = isset($args[1]) ? $args[1] : $submission->getCurrentRound();
     $editorDecisions = $submission->getDecisions($round);
     $lastDecision = count($editorDecisions) >= 1 ? $editorDecisions[count($editorDecisions) - 1]['decision'] : null;
     $submissionAccepted = $lastDecision == SUBMISSION_EDITOR_DECISION_ACCEPT ? true : false;
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign_by_ref('submission', $submission);
     $templateMgr->assign_by_ref('submissionFile', $submission->getSubmissionFile());
     $templateMgr->assign_by_ref('copyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_INITIAL'));
     $templateMgr->assign_by_ref('initialCopyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_INITIAL'));
     $templateMgr->assign_by_ref('editorAuthorCopyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_AUTHOR'));
     $templateMgr->assign_by_ref('finalCopyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_FINAL'));
     $templateMgr->assign_by_ref('suppFiles', $submission->getSuppFiles());
     $templateMgr->assign_by_ref('copyeditor', $submission->getUserBySignoffType('SIGNOFF_COPYEDITING_INITIAL'));
     $roleDao =& DAORegistry::getDAO('RoleDAO');
     $user =& Request::getUser();
     $templateMgr->assign('isEditor', $roleDao->userHasRole($journal->getId(), $user->getId(), ROLE_ID_EDITOR));
     import('classes.issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($submission->getId());
     $templateMgr->assign_by_ref('publishedArticle', $publishedArticle);
     $templateMgr->assign('useCopyeditors', $useCopyeditors);
     $templateMgr->assign('useLayoutEditors', $useLayoutEditors);
     $templateMgr->assign('useProofreaders', $useProofreaders);
     $templateMgr->assign('submissionAccepted', $submissionAccepted);
     $templateMgr->assign('templates', $journal->getSetting('templates'));
     // Set up required Payment Related Information
     import('classes.payment.ojs.OJSPaymentManager');
     $paymentManager = new OJSPaymentManager($request);
     $completedPaymentDao =& DAORegistry::getDAO('OJSCompletedPaymentDAO');
     $publicationFeeEnabled = $paymentManager->publicationEnabled();
     $templateMgr->assign('publicationFeeEnabled', $publicationFeeEnabled);
     if ($publicationFeeEnabled) {
         $templateMgr->assign_by_ref('publicationPayment', $completedPaymentDao->getPublicationCompletedPayment($journal->getId(), $articleId));
     }
     $templateMgr->assign('helpTopicId', 'editorial.sectionEditorsRole.editing');
     $templateMgr->display('sectionEditor/submissionEditing.tpl');
 }
开发者ID:EreminDm,项目名称:water-cao,代码行数:54,代码来源:SubmissionEditHandler.inc.php

示例9: display

 /**
  * Display the form.
  */
 function display($articleId)
 {
     $this->editArticleID = $articleId;
     //get the information of the article, which should be edited
     $user =& Request::getUser();
     $journal =& Request::getJournal();
     $formLocale = $this->getFormLocale();
     $templateMgr =& TemplateManager::getManager();
     //Author
     $authorDao =& DAORegistry::getDAO('AuthorDAO');
     //authorsObjectsArray
     $authorObjects =& $authorDao->getAuthorsByArticle($articleId);
     $authors = array();
     $n = 0;
     foreach ($authorObjects as $authorData) {
         $author = get_object_vars($authorData);
         $authors[$n] = $author["_data"];
         $n++;
     }
     $templateMgr->assign('authors', $authors);
     //title, abstract, orig. journal/ conf. and date published
     $rpositoryDao =& DAORegistry::getDAO('RpositoryDAO');
     $articleSettings = $rpositoryDao->getArtStatement($articleId);
     //title
     $title[$formLocale] = $articleSettings['sv1'];
     $templateMgr->assign('title', $title);
     //abstract
     $abstractAndOrigJournal = $articleSettings['sv2'];
     $patternAbstract = '/<p id="originalPub">(.*)/';
     $abstract[$formLocale] = preg_replace($patternAbstract, '', $abstractAndOrigJournal);
     $templateMgr->assign('abstract', $abstract);
     //originalJournal
     $patternOrigJournal = '/(.*)<p id="originalPub">/';
     $originalJournal = preg_replace($patternOrigJournal, '', $abstractAndOrigJournal);
     $originalJournal = preg_replace('/<\\/p>/', '', $originalJournal);
     if (preg_replace('/' . $originalJournal . '/', '', $abstractAndOrigJournal) == '') {
         $originalJournal = '';
     }
     $templateMgr->assign('originalJournal', $originalJournal);
     //date published
     $datePublished = $articleSettings['date_published'];
     $templateMgr->assign('datePublished', $datePublished);
     //File
     $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO');
     $articleFileObjects =& $articleFileDao->getArticleFilesByArticle($articleId);
     foreach ($articleFileObjects as $articleFile) {
         $articleFileVars = get_object_vars($articleFile);
         if ($articleFileVars["_data"]["fileType"] != "txt/plain") {
             if ($articleFileVars["_data"]["type"] == "submission/original") {
                 $templateMgr->assign('submissionFile', $articleFile);
                 $templateMgr->assign('pastSubmissionFile', $articleFile);
             }
             if ($articleFileVars["_data"]["type"] == "supp") {
                 $templateMgr->assign('supplementaryFile', $articleFile);
                 $templateMgr->assign('pastSupplementaryFile', $articleFile);
             }
         }
     }
     //Indexing
     $articleDao =& DAORegistry::getDAO('ArticleDAO');
     $article =& $articleDao->getArticle($articleId);
     /*   $language = $article->getLanguage();
               $templateMgr->assign('language', $language);
     */
     //Sponsor
     $sponsor[$formLocale] = $article->getSponsor($formLocale);
     $templateMgr->assign('sponsor', $sponsor);
     /*
     	 //References
     	   $citation= $article->getCitations();
                $templateMgr->assign('citations', $citation);
     */
     //SectionId
     $articleSectionId = $article->getSectionId();
     $templateMgr->assign('sectionId', $articleSectionId);
     $templateMgr->assign('journal', $journal);
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $sections =& $sectionDao->getJournalSections($journal->getId());
     $sectionTitles = $sectionAbstractsRequired = array();
     while ($section =& $sections->next()) {
         $sectionTitles[$section->getId()] = $section->getLocalizedTitle();
         $sectionAbstractsRequired[(int) $section->getId()] = (int) (!$section->getAbstractsNotRequired());
         unset($section);
     }
     $templateMgr->assign('sectionOptions', array('0' => __('author.submit.selectSection')) + $sectionTitles);
     $templateMgr->assign('sectionAbstractsRequired', $sectionAbstractsRequired);
     $countryDao =& DAORegistry::getDAO('CountryDAO');
     $countries =& $countryDao->getCountries();
     $templateMgr->assign_by_ref('countries', $countries);
     import('classes.issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     import('classes.file.TemporaryFileManager');
     $temporaryFileManager = new TemporaryFileManager();
     $tempFileId = $this->getData('tempFileId');
     if (isset($tempFileId[$formLocale]) && $tempFileId[$formLocale] > 0) {
         $submissionFile = $temporaryFileManager->getFile($tempFileId[$formLocale], $user->getId());
         $templateMgr->assign_by_ref('submissionFile', $submissionFile);
//.........这里部分代码省略.........
开发者ID:ingmarschuster,项目名称:MindResearchRepository,代码行数:101,代码来源:PaperPackageEdForm.inc.php

示例10: issueToc

 /**
  * Display the table of contents
  */
 function issueToc($args)
 {
     $issueId = isset($args[0]) ? $args[0] : 0;
     $this->validate($issueId, true);
     $issue =& $this->issue;
     $this->setupTemplate(EDITOR_SECTION_ISSUES);
     $templateMgr =& TemplateManager::getManager();
     $journal =& Request::getJournal();
     $journalId = $journal->getId();
     $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO');
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     $enablePublicArticleId = $journalSettingsDao->getSetting($journalId, 'enablePublicArticleId');
     $templateMgr->assign('enablePublicArticleId', $enablePublicArticleId);
     $enablePageNumber = $journalSettingsDao->getSetting($journalId, 'enablePageNumber');
     $templateMgr->assign('enablePageNumber', $enablePageNumber);
     $templateMgr->assign('customSectionOrderingExists', $customSectionOrderingExists = $sectionDao->customSectionOrderingExists($issueId));
     $templateMgr->assign('issueId', $issueId);
     $templateMgr->assign_by_ref('issue', $issue);
     $templateMgr->assign('unpublished', !$issue->getPublished());
     $templateMgr->assign('issueAccess', $issue->getAccessStatus());
     //%CBP% get CBP dao for required sections
     $CBPPlatformDao =& DAORegistry::getDAO('CBPPlatformDAO');
     $requiredSections = $CBPPlatformDao->getRequiredSections($journalId);
     foreach ($requiredSections as $requiredSection) {
         $requiredSectionsArr[$requiredSection['title']] = 1;
         if ($requiredSection['delegated'] == "editor") {
             $requiredSectionsDisplay[$requiredSection['title']]['title'] = $requiredSection['title'];
             $requiredSectionsDisplay[$requiredSection['title']]['policy'] = $requiredSection['policy'];
         }
     }
     $templateMgr->assign_by_ref('requiredSections', $requiredSectionsArr);
     $templateMgr->assign_by_ref('requiredSectionsDisplay', $requiredSectionsDisplay);
     // get issue sections and articles
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticles = $publishedArticleDao->getPublishedArticles($issueId);
     $layoutEditorSubmissionDao =& DAORegistry::getDAO('LayoutEditorSubmissionDAO');
     $proofedArticleIds = $layoutEditorSubmissionDao->getProofedArticlesByIssueId($issueId);
     $templateMgr->assign('proofedArticleIds', $proofedArticleIds);
     $currSection = 0;
     $counter = 0;
     $sections = array();
     $sectionCount = 0;
     $sectionDao =& DAORegistry::getDAO('SectionDAO');
     foreach ($publishedArticles as $article) {
         $sectionId = $article->getSectionId();
         if ($currSection != $sectionId) {
             $lastSectionId = $currSection;
             $sectionCount++;
             if ($lastSectionId !== 0) {
                 $sections[$lastSectionId][5] = $customSectionOrderingExists ? $sectionDao->getCustomSectionOrder($issueId, $sectionId) : $sectionCount;
             }
             // Store next custom order
             $currSection = $sectionId;
             $counter++;
             $sections[$sectionId] = array($sectionId, $article->getSectionTitle(), array($article), $counter, $customSectionOrderingExists ? $sectionDao->getCustomSectionOrder($issueId, $lastSectionId) : $sectionCount - 1, null);
         } else {
             $sections[$article->getSectionId()][2][] = $article;
         }
     }
     $templateMgr->assign_by_ref('sections', $sections);
     $templateMgr->assign('accessOptions', array(ARTICLE_ACCESS_ISSUE_DEFAULT => Locale::Translate('editor.issues.default'), ARTICLE_ACCESS_OPEN => Locale::Translate('editor.issues.open')));
     //%CBP% get comments for issue by reviewers and EIC
     $templateMgr->assign('user', DAORegistry::getDAO('UserDAO'));
     //$templateMgr->assign('issueComments', $CBPPlatformDao->getReviewerIssueComments($issueId));
     import('classes.issue.IssueAction');
     $templateMgr->assign('issueOptions', IssueAction::getIssueOptions());
     $templateMgr->assign('helpTopicId', 'publishing.tableOfContents');
     $templateMgr->addJavaScript('lib/pkp/js/jquery.tablednd_0_5.js');
     $templateMgr->addJavaScript('lib/pkp/js/tablednd.js');
     $templateMgr->display('editor/issues/issueToc.tpl');
 }
开发者ID:master3395,项目名称:CBPPlatform,代码行数:74,代码来源:IssueManagementHandler.inc.php


注:本文中的IssueAction::getIssueOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。