translation for review system.

This commit is contained in:
wlx 2011-12-14 09:34:28 +00:00
parent 8cb7c2b3b6
commit 5ddd38fffb
11 changed files with 106 additions and 107 deletions

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('接收元数据'); $this->headTitle('Accepted Metadata');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('接收元数据'); $this->breadcrumb('Accepted Metadata');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -25,9 +25,9 @@ $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>[Accepted date: <?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?>]
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="Goto Review Page" title="Review this metadata"></a>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -41,7 +41,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>No Metadata.</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -4,8 +4,8 @@ $this->headTitle($config->title->site);
$this->headTitle($config->title->review); $this->headTitle($config->title->review);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('Deny invitation');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div> <div>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('投稿元数据'); $this->headTitle('Draft Metadata');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('投稿元数据'); $this->breadcrumb('Draft Metadata');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -25,7 +25,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<?php echo $this->escape($md['title']); ?>【投稿时间:<?php echo date('Y-m-d',strtotime($md['ts_created'])); ?> <?php echo $this->escape($md['title']); ?>[Received date: <?php echo date('Y-m-d',strtotime($md['ts_created'])); ?>]
</div> </div>
<img class="thumbimg" src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>" <img class="thumbimg" src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"
@ -38,7 +38,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>No Metadata.</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('元数据评审说明'); $this->headTitle('Review Help');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('元数据评审说明'); $this->breadcrumb('Review Help');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -16,8 +16,8 @@ $this->headScript()->appendFile('/js/pubfunc.js');
</div> </div>
</div> </div>
<div id='help'> <div id='help'>
<h1>为什么要进行数据评审?</h1> <h1>Why</h1>
<p></p> <p></p>
<h1>如何进行数据评审</h1> <h1>How</h1>
<p></p> <p></p>
</div> </div>

View File

@ -4,8 +4,8 @@ $this->headTitle($config->title->site);
$this->headTitle($config->title->review); $this->headTitle($config->title->review);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('Metadata Review');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div id='sidebar'>
@ -13,58 +13,58 @@ $this->breadcrumb()->setSeparator(' > ');
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
<ul> <ul>
<li class="title">统计</li> <li class="title">Statics</li>
<li>专家:<?php echo $this->stat['experts']; ?></li> <li>Experts: <?php echo $this->stat['experts']; ?></li>
<?php if ($this->stat['draft']) : ?> <?php if ($this->stat['draft']) : ?>
<li>投稿:<?php echo $this->stat['draft']; ?></li> <li>Draft: <?php echo $this->stat['draft']; ?></li>
<?php endif; ?> <?php endif; ?>
<li>接收:<?php echo $this->stat['accept']; ?></li> <li>Accepted: <?php echo $this->stat['accept']; ?></li>
<li>评审:<?php echo $this->stat['inreview']; ?></li> <li>Reviewing: <?php echo $this->stat['inreview']; ?></li>
<li>完成:<?php echo $this->stat['reviewed']; ?></li> <li>Published: <?php echo $this->stat['reviewed']; ?></li>
<li>参与者:<?php echo $this->stat['openreviewuser']; ?></li> <li>User Activies: <?php echo $this->stat['openreviewuser']; ?></li>
<li>评审数:<?php echo $this->stat['openreview']; ?></li> <li>Reviewed times: <?php echo $this->stat['openreview']; ?></li>
</ul> </ul>
</div> </div>
<div id='indexbody'> <div id='indexbody'>
<?php if ($this->mdreceived) : ?> <?php if ($this->mdreceived) : ?>
<ul> <ul>
<div class="title"><a href="/review/draft">元数据:最新收稿</a></div> <div class="title"><a href="/review/draft">Metadata: Received</a></div>
<?php foreach($this->mdreceived as $md) : ?> <?php foreach($this->mdreceived as $md) : ?>
<div class="mditem"> <div class="mditem">
<li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?>(收稿时间:<?php echo $md['ts_created'];?></li> <li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> (Received data: <?php echo $md['ts_created'];?>)</li>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/draft">更多>></a></li> <li class="more"><a href="/review/draft">More>></a></li>
</ul> </ul>
<?php endif; if ($this->mdaccepted) : ?> <?php endif; if ($this->mdaccepted) : ?>
<ul> <ul>
<div class="title"><a href="/review/accept">元数据:已接收</a></div> <div class="title"><a href="/review/accept">Metadata: Accepted</a></div>
<?php foreach($this->mdaccepted as $md) : ?> <?php foreach($this->mdaccepted as $md) : ?>
<div class="mditem"> <div class="mditem">
<li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">评审</a> <a href="/data/<?php echo $md['uuid'];?>">查看</a>]</li> <li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">Review</a> <a href="/data/<?php echo $md['uuid'];?>">View</a>]</li>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/accept">更多>></a></li> <li class="more"><a href="/review/accept">More>></a></li>
</ul> </ul>
<?php endif; if ($this->mdinreview) : ?> <?php endif; if ($this->mdinreview) : ?>
<ul> <ul>
<div class="title"><a href="/review/inreview">元数据:评审中</a></div> <div class="title"><a href="/review/inreview">Metadata: Reviewing</a></div>
<?php foreach($this->mdinreview as $md) : ?> <?php foreach($this->mdinreview as $md) : ?>
<div class="mditem"> <div class="mditem">
<li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">评审</a> <a href="/data/<?php echo $md['uuid'];?>">查看</a>]</li> <li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">Review</a> <a href="/data/<?php echo $md['uuid'];?>">View</a>]</li>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/inreview">更多>></a></li> <li class="more"><a href="/review/inreview">More>></a></li>
</ul> </ul>
<?php endif; if ($this->mdreviewed) : ?> <?php endif; if ($this->mdreviewed) : ?>
<ul> <ul>
<div class="title"><a href="/review/reviewed">元数据:最新完成评审</a></div> <div class="title"><a href="/review/reviewed">Metadata: Published</a></div>
<?php foreach($this->mdreviewed as $md) : ?> <?php foreach($this->mdreviewed as $md) : ?>
<div class="mditem"> <div class="mditem">
<li> <img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li> <li> <img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/reviewed">更多>></a></li> <li class="more"><a href="/review/reviewed">More>></a></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('在审元数据'); $this->headTitle('Reviewing Metadata');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('在审元数据'); $this->breadcrumb('Reviewing Metadata');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -25,9 +25,9 @@ $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a> 【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a> [Accepted date: <?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?>]
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="Goto Review Page" title="Review this metadata"></a>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -41,7 +41,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>No Metadata.</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('我参审的元数据'); $this->headTitle('My Reviewing metadata');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('我参审的元数据'); $this->breadcrumb('My Reviewing metadata');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -25,12 +25,12 @@ $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a> [Status: <?php echo $md['statustext']; ?>]
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="Goto Review Page" title="Review this metadata"></a>
<?php else : ?> <?php else : ?>
【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?> [Accepted date:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?>
审结时间:<?php echo date('Y-m-d',strtotime($md['ts_finished'])); ?> Published date:<?php echo date('Y-m-d',strtotime($md['ts_finished'])); ?>]
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -44,7 +44,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>No Metadata.</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,24 +1,24 @@
<ul> <ul>
<li><a href="/review/myreview">我参审的元数据</a></li> <li><a href="/review/myreview">My Reviewing</a></li>
<li><a href="/review/draft">投稿元数据</a></li> <li><a href="/review/draft">Received</a></li>
<li><a href="/review/accept">已接收元数据</a></li> <li><a href="/review/accept">Accepted</a></li>
<li><a href="/review/inreview">评审中元数据</a></li> <li><a href="/review/inreview">Reviewing</a></li>
<li><a href="/review/reviewed">已通过元数据</a></li> <li><a href="/review/reviewed">Published</a></li>
<li><a href="/review/help">元数据评审说明</a></li> <li><a href="/review/help">Help</a></li>
</ul> </ul>
<form id="search" enctype="application/x-www-form-urlencoded" action="/review/search" method="post"> <form id="search" enctype="application/x-www-form-urlencoded" action="/review/search" method="post">
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);"> <input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'Search title & abstract':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
<input type="hidden" name="submit" value="submit"> <input type="hidden" name="submit" value="submit">
</form> </form>
<script> <script>
function myfocus(element) { function myfocus(element) {
if (element.value == '回车搜索标题和摘要') { if (element.value == 'Search title & abstract') {
element.value = ''; element.value = '';
} }
} }
function myblur(element) { function myblur(element) {
if (element.value == '') { if (element.value == '') {
element.value = '回车搜索标题和摘要'; element.value = 'Search title & abstract';
} }
} }
</script> </script>

View File

@ -1,7 +1,7 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('评审元数据'); $this->headTitle('Review Metadata');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); $this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
@ -10,9 +10,9 @@
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); $this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('评审元数据'); $this->breadcrumb('Review Metadata');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
?> ?>
@ -29,19 +29,19 @@
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?> <?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
</p> </p>
<p> <p>
[<a href="/data/<?php echo $md['uuid']; ?>"><img src="/images/westdc_40w.gif" alt="查看元数据"/>元数据查看</a>] [<a href="/data/<?php echo $md['uuid']; ?>"><img src="/images/westdc_40w.gif" alt="View Metadata"/>View Metadata</a>]
[<a href="/service/pdf/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/pdf_icon.jpg" alt="Adobe PDF格式">PDF版本下载</a>] [<a href="/service/pdf/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/pdf_icon.jpg" alt="Adobe PDF">PDF</a>]
[<a href="/service/odt/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/odt_icon.png" alt="OpenOffice odt格式">ODT版本下载</a>] [<a href="/service/odt/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/odt_icon.png" alt="OpenOffice odt">ODT</a>]
[<a href="/service/doc/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc_icon.gif" alt="MS Word doc格式">DOC版本下载</a>] [<a href="/service/doc/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc_icon.gif" alt="MS Word doc">DOC</a>]
[<a href="/service/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="查看XML源文件">XML源文件查看</a>] [<a href="/service/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="XML">XML</a>]
[<a href="/review/help"><img src="/images/help_icon.jpg" alt="元数据评审说明">元数据评审说明</a>] [<a href="/review/help"><img src="/images/help_icon.jpg" alt="Help">help</a>]
</p> </p>
</div> </div>
</div> </div>
<hr /> <hr />
<div id="comments"> <div id="comments">
<h2>数据评审意见</h2> <h2>Comments</h2>
<?php <?php
if($auth->hasIdentity()) if($auth->hasIdentity())
{ {
@ -49,55 +49,55 @@
{ {
if($md['status']==5) if($md['status']==5)
{ {
echo "该数据已经通过评审"; echo "The data was published.";
}else{ }else{
?> ?>
<a href="javascript:void(0)" onclick="$('.form').slideToggle(1000)">我要发布评审意见</a> <a href="javascript:void(0)" onclick="$('.form').slideToggle(1000)">Add my comment</a>
<div class="form" style="display:none;"> <div class="form" style="display:none;">
<form id="postcomment" action="/review/review/uuid/<?php echo $md['uuid'];?>" method="POST" enctype='multipart/form-data'> <form id="postcomment" action="/review/review/uuid/<?php echo $md['uuid'];?>" method="POST" enctype='multipart/form-data'>
<input type="hidden" name="submit" value="1" /> <input type="hidden" name="submit" value="1" />
<p> <p>
评审意见(必选)<br /> Conclusion<br />
<input type="radio" name="conclusion" value="1" <?php if($this->review['conclusion'] == 1) echo 'checked="checked"'; ?> />修改后再审 <input type="radio" name="conclusion" value="1" <?php if($this->review['conclusion'] == 1) echo 'checked="checked"'; ?> />Review after modify
<input type="radio" name="conclusion" value="2" <?php if($this->review['conclusion'] == 2) echo 'checked="checked"'; ?> />修改后发布 <input type="radio" name="conclusion" value="2" <?php if($this->review['conclusion'] == 2) echo 'checked="checked"'; ?> />Publish after modify
<input type="radio" name="conclusion" value="3" <?php if($this->review['conclusion'] == 3) echo 'checked="checked"'; ?> />发布 <input type="radio" name="conclusion" value="3" <?php if($this->review['conclusion'] == 3) echo 'checked="checked"'; ?> />Publish
<input type="radio" name="conclusion" value="-1" <?php if($this->review['conclusion'] == -1) echo 'checked="checked"'; ?> />退稿 <input type="radio" name="conclusion" value="-1" <?php if($this->review['conclusion'] == -1) echo 'checked="checked"'; ?> />Reject
</p> </p>
<p> <p>
元数据意见(必填)<br/> Comment for Metadata<br/>
<textarea id="mdcomment" class="medium full" name="mdcomment"><?php echo $this->review['mdcomment'];?></textarea> <textarea id="mdcomment" class="medium full" name="mdcomment"><?php echo $this->review['mdcomment'];?></textarea>
</p> </p>
<p> <p>
对数据的意见:<br/> Comment for Data(optional):<br/>
<textarea id="datacomment" class="small full" name="datacomment"><?php echo $this->review['datacomment'];?></textarea> <textarea id="datacomment" class="small full" name="datacomment"><?php echo $this->review['datacomment'];?></textarea>
</p> </p>
<p> <p>
给数据中心的意见:<br/> Comment to DataCenter:<br/>
<textarea id="editorcomment" class="small full" name="editorcomment"><?php echo $this->review['editorcomment'];?></textarea> <textarea id="editorcomment" class="small full" name="editorcomment"><?php echo $this->review['editorcomment'];?></textarea>
</p> </p>
<p> <p>
评审附件: Attachments
<ul id="datalist"> <ul id="datalist">
</ul> </ul>
<input id="file_upload" name="Filedata" type="file" /> <input id="file_upload" name="Filedata" type="file" />
<input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="上传" /> <input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="Upload" />
<a href="javascript:void(0);" onclick="$('#showexts').toggle()">查看可上传的附件类型</a> <a href="javascript:void(0);" onclick="$('#showexts').toggle()">File type could be uploaded</a>
<div id='showexts' style="display:none;">'doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp'</div> <div id='showexts' style="display:none;">'doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp'</div>
</p> </p>
<br /> <br />
<p> <p>
<button class="btn btn-green" type="button" id="submit" onclick="return confirm('是否确定提交评审意见?')">提交</button> <button class="btn btn-green" type="button" id="submit" onclick="return confirm('Are you sure to submit your comments?')">Submit</button>
<button class="btn btn-small" type="button" id="save">存草稿</button> <button class="btn btn-small" type="button" id="save">Save as draft</button>
<button class="btn btn-small" type="reset" id="reset" onclick="return confirm('是否确定重置已经填写的意见?')">重置</button> <button class="btn btn-small" type="reset" id="reset" onclick="return confirm('Are you sure to reset your comments?')">Reset</button>
</p> </p>
<p> <p>
<label>注:评审意见提交之后不可更改,存草稿功能不能保存附件,请妥善保存附件。</label> <label>Please note: your comments could not be modified after submitted.</label>
</p> </p>
<p> <p>
<?php <?php
if($this->review['status']<0) if($this->review['status']<0)
{ {
echo '<div class="box box-info">您保存的草稿已经加载</div>'; echo '<div class="box box-info">Load your draft</div>';
} }
?> ?>
</p> </p>
@ -110,10 +110,10 @@
} }
}else }else
{ {
echo '<div class="box box-info">您已经对此数据作出过评审</div>'; echo '<div class="box box-info">You have reviewed this metadata.</div>';
} }
} else { } else {
echo '<div class="box box-info">发表评审意见,请先<a href="/account/login/?href=/review/review/uuid/'.$md['uuid'].'">登录</a></div>'; echo '<div class="box box-info">Review this metadata, plase <a href="/account/login/?href=/review/review/uuid/'.$md['uuid'].'">Login</a> first.</div>';
} }
?> ?>
@ -146,7 +146,7 @@ function loadmdcomment(page){
'url':url, 'url':url,
'data':'', 'data':'',
'success':function(html){$('#allcomments').html(html);}, 'success':function(html){$('#allcomments').html(html);},
'beforeSend':function(){$('#allcomments').html('<img src="/images/loading.gif" />正在加载...');} 'beforeSend':function(){$('#allcomments').html('<img src="/images/loading.gif" />Loading...');}
}); });
} }
@ -159,7 +159,7 @@ function checkfiles(rid){
$('#filelist_'+rid).html(html); $('#filelist_'+rid).html(html);
}, },
'beforeSend':function(){ 'beforeSend':function(){
$('#filelist_'+rid).html('<img src="/images/11887177066.gif" />正在加载...'); $('#filelist_'+rid).html('<img src="/images/11887177066.gif" />Loading...');
} }
}); });
} }
@ -196,13 +196,13 @@ $(document).ready(function() {
'data':date, 'data':date,
'success':function(html){ 'success':function(html){
$('#infobox').html(html); $('#infobox').html(html);
$('#save').html('存草稿'); $('#save').html('Save Draft');
setTimeout("$('#save').removeAttr('disabled');$('.box').remove();",3000); setTimeout("$('#save').removeAttr('disabled');$('.box').remove();",3000);
loadmdcomment(1); loadmdcomment(1);
}, },
'beforeSend':function(){ 'beforeSend':function(){
$('#save').attr('disabled','disabled'); $('#save').attr('disabled','disabled');
$('#save').html('<img src="/images/11887177066.gif" />正在保存...'); $('#save').html('<img src="/images/11887177066.gif" />Saving...');
} }
}); });
} }
@ -274,6 +274,5 @@ $(document).ready(function(){$(".colorbox").colorbox({photo:"true"});});
<?php else: ?> <?php else: ?>
<p>Cannot find the metadata.</p> <p>Cannot find the metadata.</p>
<p>没有找到对应的元数据。</p>
<?php endif;?> <?php endif;?>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('审结元数据'); $this->headTitle('Published Metadata');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('审结元数据'); $this->breadcrumb('Published Metadata');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -41,7 +41,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>No Metadata.</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('快速搜索'); $this->headTitle('Search');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('快速搜索'); $this->breadcrumb('Search');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
@ -25,9 +25,9 @@ $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>[Status: <?php echo $md['statustext']; ?>]
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="Goto Review Page" title="Review this metadata"></a>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -41,7 +41,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
else : else :
?> ?>
<div> <div>
<p>您的搜索结果为空,请尝试其他关键词进行查询</p> <p>Your search result is empty, please try another keyword</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>