Skip to content

Commit

Permalink
*7984* Show archived items on author home pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lschiff authored and barbarahui committed Oct 26, 2012
1 parent bf328f5 commit d234ad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions classes/submission/author/AuthorSubmissionDAO.inc.php
Expand Up @@ -248,14 +248,14 @@ function getEditorDecisions($articleId, $round = null) {
}

/**
* Get count of active and complete assignments
* Get count of active, rejected, and complete assignments
* @param authorId int
* @param journalId int
*/
function getSubmissionsCount($authorId, $journalId) {
$submissionsCount = array();
$submissionsCount[0] = 0;
$submissionsCount[1] = 0;
$submissionsCount[0] = 0; //pending items
$submissionsCount[1] = 0; //all non-pending items

$sql = 'SELECT count(*), status FROM articles a LEFT JOIN sections s ON (s.section_id = a.section_id) WHERE a.journal_id = ? AND a.user_id = ? GROUP BY a.status';

Expand Down
6 changes: 5 additions & 1 deletion templates/user/index.tpl
Expand Up @@ -128,11 +128,15 @@
<tr>
<td>&#187; <a href="{url journal=$journalPath page="author"}">{translate key="user.role.author"}</a></td>
<td></td>
<td></td>
<td>{if $authorSubmissionsCount[0]}
<a href="{url journal=$journalPath page="author"}">{$authorSubmissionsCount[0]} {translate key="common.queue.short.active"}</a>
{else}<span class="disabled">0 {translate key="common.queue.short.active"}</span>{/if}
</td>
{* This is for all non-pending items*}
<td>{if $authorSubmissionsCount[1]}
<a href="{url journal=$journalPath path="completed" page="author"}">{$authorSubmissionsCount[1]} {translate key="common.queue.short.completed"}</a>
{else}<span class="disabled">0 {translate key="common.queue.short.completed"}</span>{/if}
</td>
<td align="right">[<a href="{url journal=$journalPath page="author" op="submit"}">{translate key="author.submit"}</a>]</td>
</tr>
{/if}
Expand Down

0 comments on commit d234ad0

Please sign in to comment.