add doi support
This commit is contained in:
parent
2ee1f7e0bf
commit
9858ab4337
|
@ -720,6 +720,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$row->south=$iso->geoBox['s'];
|
$row->south=$iso->geoBox['s'];
|
||||||
$row->north=$iso->geoBox['n'];
|
$row->north=$iso->geoBox['n'];
|
||||||
$row->east=$iso->geoBox['e'];
|
$row->east=$iso->geoBox['e'];
|
||||||
|
if (!empty($iso->doi)) $row->doi=$iso->doi;
|
||||||
//生成空白统计数据
|
//生成空白统计数据
|
||||||
$sql=$db->quoteInto("select * from mdstat where uuid=?",$iso->uuid);
|
$sql=$db->quoteInto("select * from mdstat where uuid=?",$iso->uuid);
|
||||||
if (!$db->fetchRow($sql))
|
if (!$db->fetchRow($sql))
|
||||||
|
|
|
@ -80,6 +80,7 @@ class ISO19115
|
||||||
|
|
||||||
public $mdContact;
|
public $mdContact;
|
||||||
public $uuid;
|
public $uuid;
|
||||||
|
public $doi;
|
||||||
/**
|
/**
|
||||||
* 数据集标题
|
* 数据集标题
|
||||||
* 字符串
|
* 字符串
|
||||||
|
@ -178,6 +179,10 @@ class ISO19115
|
||||||
@$this->citation=$this->dom->getElementsByTagName('otherCitDet')->item(0)->nodeValue;
|
@$this->citation=$this->dom->getElementsByTagName('otherCitDet')->item(0)->nodeValue;
|
||||||
//项目支持信息
|
//项目支持信息
|
||||||
@$this->suppinfo=$this->dom->getElementsByTagName('suppInfo')->item(0)->nodeValue;
|
@$this->suppinfo=$this->dom->getElementsByTagName('suppInfo')->item(0)->nodeValue;
|
||||||
|
//DOI,自定义项
|
||||||
|
$cittype=$this->dom->getElementsByTagName('citIdType')->item(0)->nodeValue;
|
||||||
|
if ($cittype=='DOI')
|
||||||
|
$this->doi=$this->dom->getElementsByTagName('citId')->item(0)->nodeValue;
|
||||||
//数据大小,以MB为单位
|
//数据大小,以MB为单位
|
||||||
@$this->filesize=$this->dom->getElementsByTagName('transSize')->item(0)->nodeValue;
|
@$this->filesize=$this->dom->getElementsByTagName('transSize')->item(0)->nodeValue;
|
||||||
//数据格式,可以多个,但此处只用一个?
|
//数据格式,可以多个,但此处只用一个?
|
||||||
|
|
Loading…
Reference in New Issue