修复odt多类别的错误
This commit is contained in:
parent
2e3417bd85
commit
770117e669
|
@ -464,6 +464,12 @@ class ServiceController extends Zend_Controller_Action
|
|||
from xml x left join metadata m on m.id=x.id left join thumbnail t on x.id=t.id
|
||||
left join geonetworkmetadata g on g.uuid=m.uuid where m.uuid=".$this->db->quote($uuid);
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$sql="select cc.name as category, cc.name_zh as category_zh from metadata m left join category c on m.id=c.id left join categorycode cc on c.code=cc.code where m.uuid=".$this->db->quote($uuid);
|
||||
$cat=$this->db->fetchAll($sql);
|
||||
foreach($cat asa $category)
|
||||
{
|
||||
$row['category_zh'].=$cat['name_zh'];
|
||||
}
|
||||
$sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=?";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$ref=$this->db->fetchAll($sql);
|
||||
|
@ -573,7 +579,7 @@ class ServiceController extends Zend_Controller_Action
|
|||
@$odf->setVars('temporal_keyword',empty($row['keyword']['temporal'])?'':$row['keyword']['temporal'],true,'utf-8');
|
||||
@$odf->setVars('discipline_keyword',$row['keyword']['discipline'],true,'utf-8');
|
||||
@$odf->setVars('stratum_keyword',$row['keyword']['stratum'],true,'utf-8');
|
||||
@$odf->setVars('category',$row['category'].' '.$row['category_zh'],true,'utf-8');
|
||||
@$odf->setVars('category',$row['category_zh'],true,'utf-8');
|
||||
@$odf->setVars('rfdenom',$row['rfdenom'],true,'utf-8');
|
||||
@$odf->setVars('resolution',$row['resolution'],true,'utf-8');
|
||||
@$odf->setVars('projection',$row['projection'],true,'utf-8');
|
||||
|
|
Loading…
Reference in New Issue