添加英文副标题支持

This commit is contained in:
wlx 2010-01-06 02:09:46 +00:00
parent 68f852dbf0
commit 7c61f2bf6c
3 changed files with 5 additions and 1 deletions

View File

@ -693,6 +693,7 @@ class Admin_DataController extends Zend_Controller_Action
$trow=$thumb->createRow(); $trow=$thumb->createRow();
$row->uuid=$iso->uuid; $row->uuid=$iso->uuid;
$row->title=$iso->resTitle; $row->title=$iso->resTitle;
$row->title_en=$iso->resAltTitle;
$row->description=$iso->idAbs; $row->description=$iso->idAbs;
$row->citation=$iso->citation; $row->citation=$iso->citation;
$row->fileformat=$iso->fileformat; $row->fileformat=$iso->fileformat;

View File

@ -14,7 +14,9 @@
$this->headLink()->appendStylesheet('/js/theme/default/style.css'); $this->headLink()->appendStylesheet('/js/theme/default/style.css');
?> ?>
<?php $md=$this->metadata;if ($md):?> <?php $md=$this->metadata;if ($md):?>
<h1><?php echo $this->escape($md->title);?></h1> <h1><?php echo $this->escape($md->title);
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</h1>
<table width=100%><tr><td> <table width=100%><tr><td>
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md->id;?>" /> </div> <div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md->id;?>" /> </div>
</td><td valign="top" align="middle"> </td><td valign="top" align="middle">

View File

@ -169,6 +169,7 @@ class ISO19115
function parse() function parse()
{ {
$this->resTitle=$this->dom->getElementsByTagName('resTitle')->item(0)->nodeValue; $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->idAbs=$this->dom->getElementsByTagName('idAbs')->item(0)->nodeValue;
$this->mdFileID=$this->dom->getElementsByTagName('mdFileID')->item(0)->nodeValue; $this->mdFileID=$this->dom->getElementsByTagName('mdFileID')->item(0)->nodeValue;
$this->mdDateSt=$this->dom->getElementsByTagName('mdDateSt')->item(0)->nodeValue; $this->mdDateSt=$this->dom->getElementsByTagName('mdDateSt')->item(0)->nodeValue;