From 7c61f2bf6cc57f6a96bcd15d9d553154049e7bd6 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 6 Jan 2010 02:09:46 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8B=B1=E6=96=87=E5=89=AF?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=94=AF=E6=8C=81?= 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 | 4 +++- application/models/ISO19115.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 977131ae..ad0d9ec3 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -693,6 +693,7 @@ class Admin_DataController extends Zend_Controller_Action $trow=$thumb->createRow(); $row->uuid=$iso->uuid; $row->title=$iso->resTitle; + $row->title_en=$iso->resAltTitle; $row->description=$iso->idAbs; $row->citation=$iso->citation; $row->fileformat=$iso->fileformat; diff --git a/application/default/views/scripts/data/view.phtml b/application/default/views/scripts/data/view.phtml index 245d560e..ea5022a2 100755 --- a/application/default/views/scripts/data/view.phtml +++ b/application/default/views/scripts/data/view.phtml @@ -14,7 +14,9 @@ $this->headLink()->appendStylesheet('/js/theme/default/style.css'); ?> metadata;if ($md):?> -

escape($md->title);?>

+

escape($md->title); +if ($md->title_en) echo '
'.$this->escape($md->title_en);?> +

diff --git a/application/models/ISO19115.php b/application/models/ISO19115.php index 581a3d01..8b48be40 100755 --- a/application/models/ISO19115.php +++ b/application/models/ISO19115.php @@ -169,6 +169,7 @@ class ISO19115 function parse() { $this->resTitle=$this->dom->getElementsByTagName('resTitle')->item(0)->nodeValue; + $this->resAltTitle=$this->dom->getElementsByTagName('resAltTitle')->item(0)->nodeValue; $this->idAbs=$this->dom->getElementsByTagName('idAbs')->item(0)->nodeValue; $this->mdFileID=$this->dom->getElementsByTagName('mdFileID')->item(0)->nodeValue; $this->mdDateSt=$this->dom->getElementsByTagName('mdDateSt')->item(0)->nodeValue;