next up previous contents
Next: 除錯 Up: 未完成投稿 Previous: 字串變數   Contents

新增 submissionUncompleted.tpl

  1. submissionUnassigned.tpl 為樣本。
    [root@csie5 ojs-isend]# cd templates/editor/
    [root@csie5 editor]# cp submissionsUnassigned.tpl submissionsUncompleted.tpl
    [root@csie5 ojs-isend]# grep Uncomplete locale/zh_TW/locale.xml locale/en_US/locale.xml
    
  2. 因為未完成的投稿,沒有完成投稿時間,故刪除時間欄位,並調整各欄位寬度。
    [root@csie5 editor]# diff -urNwbBE submissionsUnassigned.tpl submissionsUncompleted.tpl
    --- submissionsUnassigned.tpl	2013-03-05 07:53:15.000000000 +0800
    +++ submissionsUncompleted.tpl	2014-04-17 21:03:34.833899234 +0800
    @@ -1,5 +1,5 @@
     {**
    - * templates/editor/submissionsUnassigned.tpl
    + * templates/manager/submissionsUncompleted.tpl
      *
      * Copyright (c) 2003-2013 John Willinsky
      * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
    @@ -12,11 +12,10 @@
     		<td colspan="5" class="headseparator">&nbsp;</td>
     	</tr>
     	<tr class="heading" valign="bottom">
    -		<td width="5%">{sort_search key="common.id" sort="id"}</td>
    -		<td width="5%"><span class="disabled">{translate key="submission.date.mmdd"}</span><br />{sort_search key="submissions.submit" sort="submitDate"}</td>
    -		<td width="5%">{sort_search key="submissions.sec" sort="section"}</td>
    +		<td width="7%">{sort_search key="common.id" sort="id"}</td>
    +		<td width="7%">{sort_search key="submissions.sec" sort="section"}</td>
     		<td width="30%">{sort_search key="article.authors" sort="authors"}</td>
    -		<td width="50%">{sort_search key="article.title" sort="title"}</td>
    +		<td width="55%">{sort_search key="article.title" sort="title"}</td>
     	</tr>
     	<tr>
     		<td colspan="5" class="headseparator">&nbsp;</td>
    
  3. 因為未完成的投稿,往往沒有論文標題,也無法編輯,故新增「登入為該作者」的連結。
    @@ -25,9 +24,8 @@
     	{iterate from=submissions item=submission}
     	<tr valign="top" {if $submission->getFastTracked()} class="fastTracked"{/if}>
     		<td>{$submission->getId()}</td>
    -		<td>{$submission->getDateSubmitted()|date_format:$dateFormatTrunc}</td>
     		<td>{$submission->getSectionAbbrev()|escape}</td>
    -		<td>{$submission->getAuthorString(true)|truncate:40:"..."|escape}</td>
    +		<td><a href="{url page="login" op="signInAsUser" path=$submission->getUserId()}" class="action">{translate key="manager.people.signInAs"}</a> {$submission->getAuthorString(true)|truncate:40:"..."|escape}</td>
     		<td><a href="{url op="submission" path=$submission->getId()}" class="action">{$submission->getLocalizedTitle()|strip_tags|truncate:60:"..."}</a></td>
     	</tr>
     	<tr>
    


2016-10-25