set the author and org null

This commit is contained in:
wlx 2015-01-05 05:07:09 +00:00
parent 542bcdd09a
commit d5b3d9db04
1 changed files with 6 additions and 6 deletions

View File

@ -132,17 +132,17 @@ class Doi extends Zend_Controller_Plugin_Abstract
$orgs_en = array(); $orgs_en = array();
foreach($data['info'] as $k=>$v) foreach($data['info'] as $k=>$v)
{ {
$authors[$v['order']] = str_replace(",","",$v['author']); @$authors[$v['order']] = str_replace(",","",$v['author']);
$orgs[$v['order']] = str_replace(",","",$v['organization']); @$orgs[$v['order']] = str_replace(",","",$v['organization']);
$authors_en[$v['order']] = str_replace(",","",$v['author_en']); $authors_en[$v['order']] = str_replace(",","",$v['author_en']);
$orgs_en[$v['order']] = str_replace(",","",$v['organization_en']); $orgs_en[$v['order']] = str_replace(",","",$v['organization_en']);
} }
$authors = "{".join(",",$authors)."}"; //$authors = "{".join(",",$authors)."}";
$orgs = "{".join(",",$orgs)."}"; //$orgs = "{".join(",",$orgs)."}";
$authors_en = "{".join(",",$authors_en)."}"; $authors_en = "{".join(",",$authors_en)."}";
$orgs_en = "{".join(",",$orgs_en)."}"; $orgs_en = "{".join(",",$orgs_en)."}";
$data['authors'] = $authors; $data['authors'] = null;
$data['organization'] = $orgs; $data['organization'] = null;
$data['author_en'] = $authors_en; $data['author_en'] = $authors_en;
$data['organization_en'] = $orgs_en; $data['organization_en'] = $orgs_en;
unset($data['info']); unset($data['info']);