|
|
| 11 |
<div id="scheduling"> |
11 |
<div id="scheduling"> |
| 12 |
<h3>{translate key="submission.scheduling"}</h3> |
12 |
<h3>{translate key="submission.scheduling"}</h3> |
| 13 |
|
13 |
|
| 14 |
{if !$publicatonFeeEnabled || $publicationPayment} |
14 |
<table class="data" width="100%"> |
|
|
15 |
{if !$publicationFeeEnabled || $publicationPayment} |
| 15 |
<form action="{url op="scheduleForPublication" path=$submission->getId()}" method="post"> |
16 |
<form action="{url op="scheduleForPublication" path=$submission->getId()}" method="post"> |
| 16 |
<p> |
17 |
<tr valign="top"> |
| 17 |
<label for="issueId">{translate key="editor.article.scheduleForPublication"}</label> |
18 |
<td width="25%" class="label"> |
| 18 |
{if $publishedArticle} |
19 |
<label for="issueId">{translate key="editor.article.scheduleForPublication"}</label> |
| 19 |
{assign var=issueId value=$publishedArticle->getIssueId()} |
20 |
</td> |
| 20 |
{else} |
21 |
<td width="25%" class="value"> |
| 21 |
{assign var=issueId value=0} |
22 |
{if $publishedArticle} |
| 22 |
{/if} |
23 |
{assign var=issueId value=$publishedArticle->getIssueId()} |
| 23 |
<select name="issueId" id="issueId" class="selectMenu"> |
24 |
{else} |
| 24 |
<option value="">{translate key="editor.article.scheduleForPublication.toBeAssigned"}</option> |
25 |
{assign var=issueId value=0} |
| 25 |
{html_options options=$issueOptions|truncate:40:"..." selected=$issueId} |
26 |
{/if} |
| 26 |
</select> |
27 |
<select name="issueId" id="issueId" class="selectMenu"> |
| 27 |
<input type="submit" value="{translate key="common.record"}" class="button defaultButton" /> |
28 |
<option value="">{translate key="editor.article.scheduleForPublication.toBeAssigned"}</option> |
| 28 |
{if $issueId} |
29 |
{html_options options=$issueOptions|truncate:40:"..." selected=$issueId} |
| 29 |
{if $isEditor} |
30 |
</select> |
| 30 |
<a href="{url op="issueToc" path=$issueId}" class="action">{translate key="issue.toc"}</a> |
31 |
</td> |
| 31 |
{else} |
32 |
<td width="50%" class="value"> |
| 32 |
<a href="{url page="issue" op="view" path=$issueId}" class="action">{translate key="issue.toc"}</a> |
33 |
<input type="submit" value="{translate key="common.record"}" class="button defaultButton" /> |
| 33 |
{/if} |
34 |
{if $issueId} |
| 34 |
{/if} |
35 |
{if $isEditor} |
| 35 |
</p> |
36 |
<a href="{url op="issueToc" path=$issueId}" class="action">{translate key="issue.toc"}</a> |
|
|
37 |
{else} |
| 38 |
<a href="{url page="issue" op="view" path=$issueId}" class="action">{translate key="issue.toc"}</a> |
| 39 |
{/if} |
| 40 |
{/if} |
| 41 |
</td> |
| 42 |
</tr> |
| 36 |
</form> |
43 |
</form> |
|
|
44 |
{if $publishedArticle} |
| 45 |
<form action="{url op="setDatePublished" path=$submission->getId()}" method="post"> |
| 46 |
<tr valign="top"> |
| 47 |
<td width="20%" class="label"> |
| 48 |
<label for="issueId">{translate key="editor.issues.published"}</label> |
| 49 |
</td> |
| 50 |
<td class="value"> |
| 51 |
{* Find good values for starting and ending year options *} |
| 52 |
{assign var=currentYear value=$smarty.now|date_format:"%Y"} |
| 53 |
{if $publishedArticle->getDatePublished()} |
| 54 |
{assign var=publishedYear value=$publishedArticle->getDatePublished()|date_format:"%Y"} |
| 55 |
{math|assign:"minYear" equation="min(x,y)-10" x=$publishedYear y=$currentYear} |
| 56 |
{math|assign:"maxYear" equation="max(x,y)+2" x=$publishedYear y=$currentYear} |
| 57 |
{else} |
| 58 |
{* No issue publication date info *} |
| 59 |
{math|assign:"minYear" equation="x-10" x=$currentYear} |
| 60 |
{math|assign:"maxYear" equation="x+2" x=$currentYear} |
| 61 |
{/if} |
| 62 |
{html_select_date prefix="datePublished" time=$publishedArticle->getDatePublished()|default:"---" all_extra="class=\"selectMenu\"" start_year=$minYear end_year=$maxYear year_empty="-" month_empty="-" day_empty="-"} |
| 63 |
</td> |
| 64 |
<td class="value"> |
| 65 |
<input type="submit" value="{translate key="common.record"}" class="button defaultButton" /> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
</form> |
| 69 |
{/if}{* $publishedArticle *} |
| 37 |
{else} |
70 |
{else} |
| 38 |
<table class="data"> |
71 |
<tr> |
| 39 |
<tr> |
72 |
<td>{translate key="editor.article.payment.publicationFeeNotPaid"}</td> |
| 40 |
<td width="50%"> |
|
|
| 41 |
{translate key="editor.article.payment.publicationFeeNotPaid"} |
| 42 |
</td> |
| 43 |
<td align="right"> |
73 |
<td align="right"> |
| 44 |
<form action="{url op="waivePublicationFee" path=$submission->getId()}" method="post"> |
74 |
<form action="{url op="waivePublicationFee" path=$submission->getId()}" method="post"> |
| 45 |
<input type="hidden" name="markAsPaid" value=1 /> |
75 |
<input type="hidden" name="markAsPaid" value=1 /> |
|
|
| 48 |
</form> |
78 |
</form> |
| 49 |
</td> |
79 |
</td> |
| 50 |
{if $isEditor} |
80 |
{if $isEditor} |
| 51 |
<td align="left"> |
81 |
<td align="left"> |
| 52 |
<form action="{url op="waivePublicationFee" path=$submission->getId()}" method="post"> |
82 |
<form action="{url op="waivePublicationFee" path=$submission->getId()}" method="post"> |
| 53 |
<input type="hidden" name="sendToScheduling" value=1 /> |
83 |
<input type="hidden" name="sendToScheduling" value=1 /> |
| 54 |
<input type="submit" value="{translate key="payment.waive"}" class="button defaultButton" /> |
84 |
<input type="submit" value="{translate key="payment.waive"}" class="button defaultButton" /> |
| 55 |
</form> |
85 |
</form> |
| 56 |
</td> |
86 |
</td> |
| 57 |
{/if} |
87 |
{/if} |
| 58 |
</tr> |
88 |
</tr> |
| 59 |
</table> |
|
|
| 60 |
{/if} |
89 |
{/if} |
|
|
90 |
</table> |
| 61 |
</div> |
91 |
</div> |