Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
*8180* Add workflow link
  • Loading branch information
asmecher committed Apr 4, 2013
1 parent e868661 commit 52acf92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/grid/toc/TocGridHandler.inc.php
Expand Up @@ -54,7 +54,7 @@ function authorize(&$request, &$args, $roleAssignments) {
function initialize(&$request) {
parent::initialize($request);

AppLocale::requireComponents(LOCALE_COMPONENT_APP_EDITOR);
AppLocale::requireComponents(LOCALE_COMPONENT_APP_EDITOR, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_APP_SUBMISSION);

//
// Grid columns.
Expand Down
15 changes: 13 additions & 2 deletions controllers/grid/toc/TocGridRow.inc.php
Expand Up @@ -37,9 +37,20 @@ function TocGridRow($issueId) {
function initialize(&$request) {
parent::initialize($request);

// Is this a new row or an existing row?
$router = $request->getRouter();
$dispatcher = $request->getDispatcher();
import('lib.pkp.classes.linkAction.request.RedirectAction');
$this->addAction(
new LinkAction(
'workflow',
new RedirectAction(
$dispatcher->url($request, ROUTE_PAGE, null, 'workflow', 'access', array($this->getId()))
),
__('submission.submission'),
'information'
)
);

$router = $request->getRouter();
import('lib.pkp.classes.linkAction.request.RemoteActionConfirmationModal');
$this->addAction(
new LinkAction(
Expand Down
1 change: 1 addition & 0 deletions locale/en_US/submission.xml
Expand Up @@ -16,4 +16,5 @@
<message key="submission.title.tip"><![CDATA[The submission type is usually one of 'image', 'text', or other multimedia types including 'software' or 'interactive'. Please choose the one most relevant for your submission. Examples may be found at <a target="_blank" href="http://dublincore.org/documents/2001/04/12/usageguide/generic.shtml#type">http://dublincore.org/documents/2001/04/12/usageguide/generic.shtml#type</a>]]></message>
<message key="submission.submit.newSubmissionMultiple">Start a New Submission in</message>
<message key="submission.submit.newSubmissionSingle">Start a New Submission in {$journalName}</message>
<message key="grid.action.workflow">Submission Workflow</message>
</locale>

0 comments on commit 52acf92

Please sign in to comment.