#397 文献管理中增加“添加数据中心文献”和“查看数据中心文献”功能
This commit is contained in:
parent
1493169ad4
commit
314664fb97
|
@ -738,6 +738,12 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$show = $this->_getParam('show');
|
||||
|
||||
if ($add) {
|
||||
$type = $this->_getParam('type');
|
||||
if($type == 'dc')
|
||||
{
|
||||
$this->_helper->viewRenderer('referenceadd');
|
||||
$this->view->type = "dc";
|
||||
}else{
|
||||
$form=new ReferenceForm();
|
||||
if ($this->_request->isPost()) {
|
||||
$formdata=$this->_request->getPost();
|
||||
|
@ -767,6 +773,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
}
|
||||
$this->view->form=$form;
|
||||
$this->_helper->viewRenderer('referenceadd');
|
||||
}
|
||||
} //添加
|
||||
|
||||
else if($show){
|
||||
|
|
|
@ -37,7 +37,9 @@
|
|||
|
||||
<div class="controlplan">
|
||||
<a href="/admin/data/reference/add/1">添加新的数据文献</a>
|
||||
| <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a>
|
||||
| <a href="/admin/data/reference/import/1">导入数据文献文件</a>
|
||||
| <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a>
|
||||
</div>
|
||||
|
||||
<?php if (count($this->paginator)): ?>
|
||||
|
|
|
@ -23,6 +23,25 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
<a href="/admin/data/reference/add/1">添加新的数据文献</a>
|
||||
| <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a>
|
||||
| <a href="/admin/data/reference/import/1">导入数据文献文件</a>
|
||||
<?= $this->form; ?>
|
||||
| <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a>
|
||||
<?php
|
||||
if($this->type == 'dc')
|
||||
{?>
|
||||
<form id="Reference" enctype="application/x-www-form-urlencoded" action="/admin/data/reference/add/1/" method="post"><dl class="zend_form">
|
||||
<input type="hidden" name="uuid" id="uuid" value="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338" readonly="readonly">
|
||||
<dt id="reference-label"><label for="reference" class="required">文献</label></dt>
|
||||
<dd id="reference-element">
|
||||
<input type="text" name="reference" id="reference" value=""></dd>
|
||||
<dt id="link-label"><label for="link" class="optional">URL(optional)</label></dt>
|
||||
<dd id="link-element">
|
||||
<input type="text" name="link" id="link" value=""></dd>
|
||||
<dt id="reftype-label"><label class="required">文献类型</label></dt>
|
||||
<dd id="reftype-element">
|
||||
<label for="reftype-0"><input type="radio" name="reftype" id="reftype-0" value="0" checked="checked">作者文献</label><br /><label for="reftype-1"><input type="radio" name="reftype" id="reftype-1" value="1">用户文献</label></dd>
|
||||
<dt id="submit-label"> </dt><dd id="submit-element">
|
||||
<input type="submit" name="submit" id="submitbutton" value="发送"></dd></dl></form>
|
||||
<?php }
|
||||
else ?><?= $this->form; ?>
|
||||
</div>
|
Loading…
Reference in New Issue