4 * Copyright (c) 2003-2008 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
7 * Show the details of completed submissions.
9 * $Id: completed.tpl,v 1.2 2009/07/30 23:16:15 tylerl Exp $
11 <div id="submissions">
12 <table class="listing" width="100%">
13 <tr><td class="headseparator" colspan="{if $statViews}7{else}6{/if}"> </td></tr>
14 <tr valign="bottom" class="heading">
15 <td width="5%">{translate key="common.id"}</td>
16 <td width="5%"><span class="disabled">MM-DD</span><br />{translate key="submissions.submit"}</td>
17 <td width="5%">{translate key="submissions.arrangement"}</td>
18 <td width="23%">{translate key="monograph.authors"}</td>
19 <td width="32%">{translate key="monograph.title"}</td>
20 {if $statViews}<td width="5%">{translate key="submission.views"}</td>{/if}
21 <td width="25%" align="right">{translate key="common.status"}</td>
23 <tr><td class="headseparator" colspan="{if $statViews}7{else}6{/if}"> </td></tr>
24 {iterate from=submissions item=submission}
25 {assign var="monographId" value=$submission->getMonographId()}
27 <td>{$monographId|escape}</td>
28 <td>{$submission->getDateSubmitted()|date_format:$dateFormatTrunc}</td>
29 <td>{$submission->getArrangementAbbrev()|escape}</td>
30 <td>{$submission->getAuthorString(true)|truncate:40:"..."|escape}</td>
31 <td><a href="{url op="submission" path=$monographId}" class="action">{$submission->getLocalizedTitle()|strip_unsafe_html|truncate:60:"..."}</a></td>
32 {assign var="status" value=$submission->getSubmissionStatus()}
35 {if $status==STATUS_PUBLISHED}
36 {assign var=viewCount value=0}
37 {foreach from=$submission->getGalleys() item=galley}
38 {assign var=thisCount value=$galley->getViews()}
39 {assign var=viewCount value=$viewCount+$thisCount}
48 {if $status==STATUS_ARCHIVED}{translate key="submissions.archived"}
49 {elseif $status==STATUS_PUBLISHED}Print isbn or somethin'
50 {elseif $status==STATUS_DECLINED}{translate key="submissions.declined"}
56 <td colspan="{if $statViews}7{else}6{/if}" class="{if $submissions->eof()}end{/if}separator"> </td>
59 {if $submissions->wasEmpty()}
61 <td colspan="{if $statViews}7{else}6{/if}" class="nodata">{translate key="submissions.noSubmissions"}</td>
64 <td colspan="{if $statViews}7{else}6{/if}" class="endseparator"> </td>
68 <td colspan="{if $statViews}5{else}4{/if}" align="left">{page_info iterator=$submissions}</td>
69 <td colspan="2" align="right">{page_links anchor="submissions" name="submissions" iterator=$submissions}</td>