add doi support

This commit is contained in:
wlx 2010-07-01 10:40:44 +00:00
parent 2ee1f7e0bf
commit 9858ab4337
2 changed files with 6 additions and 0 deletions

View File

@ -720,6 +720,7 @@ class Admin_DataController extends Zend_Controller_Action
$row->south=$iso->geoBox['s'];
$row->north=$iso->geoBox['n'];
$row->east=$iso->geoBox['e'];
if (!empty($iso->doi)) $row->doi=$iso->doi;
//生成空白统计数据
$sql=$db->quoteInto("select * from mdstat where uuid=?",$iso->uuid);
if (!$db->fetchRow($sql))

View File

@ -80,6 +80,7 @@ class ISO19115
public $mdContact;
public $uuid;
public $doi;
/**
* 数据集标题
* 字符串
@ -178,6 +179,10 @@ class ISO19115
@$this->citation=$this->dom->getElementsByTagName('otherCitDet')->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为单位
@$this->filesize=$this->dom->getElementsByTagName('transSize')->item(0)->nodeValue;
//数据格式,可以多个,但此处只用一个?