From 69ad57801cee9ac41e55ba04e5c9461a0a199bd0 Mon Sep 17 00:00:00 2001
From: wlx
Date: Tue, 26 Jan 2010 07:31:25 +0000
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E9=A1=B9=E7=9B=AE=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BD(ticket=20#131)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
application/admin/controllers/DataController.php | 1 +
application/default/views/scripts/data/view.phtml | 7 ++++++-
application/models/ISO19115.php | 2 ++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php
index 67aa9627..cf664389 100755
--- a/application/admin/controllers/DataController.php
+++ b/application/admin/controllers/DataController.php
@@ -696,6 +696,7 @@ class Admin_DataController extends Zend_Controller_Action
$row->title_en=$iso->resAltTitle;
$row->description=$iso->idAbs;
$row->citation=$iso->citation;
+ $row->suppinfo=$iso->suppinfo;
$row->fileformat=$iso->fileformat;
$row->projection=$iso->projection;
//$row->author=$iso->author;
diff --git a/application/default/views/scripts/data/view.phtml b/application/default/views/scripts/data/view.phtml
index 9d7870d8..b1f3fdbf 100755
--- a/application/default/views/scripts/data/view.phtml
+++ b/application/default/views/scripts/data/view.phtml
@@ -153,7 +153,12 @@ endforeach;
endforeach;
?>
-
+suppinfo) : ?>
+项目支持信息
+'.str_replace(array("\r\n", "\n", "\r"),'
',$this->escape($md->suppinfo)).'
';
+endif; ?>
数据使用声明
uselimits) :
diff --git a/application/models/ISO19115.php b/application/models/ISO19115.php
index f621c0d3..5ca1ab7f 100755
--- a/application/models/ISO19115.php
+++ b/application/models/ISO19115.php
@@ -176,6 +176,8 @@ class ISO19115
@$this->dataSetURI=$this->dom->getElementsByTagName('dataSetURI')->item(0)->nodeValue;
//引用说明
@$this->citation=$this->dom->getElementsByTagName('otherCitDet')->item(0)->nodeValue;
+ //项目支持信息
+ @$this->suppinfo=$this->dom->getElementsByTagName('suppInfo')->item(0)->nodeValue;
//数据大小,以MB为单位
@$this->filesize=$this->dom->getElementsByTagName('transSize')->item(0)->nodeValue;
//数据格式,可以多个,但此处只用一个?