+
metadata;
if ($md): ?>
@@ -168,29 +168,28 @@ if ($md): ?>
'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
- $r='';
- $i=0;
- foreach($this->authors as $k=>$author) :
- if ($author->role!=$r)
- {
- $r=$author->role;
- $i=0;
- if ($k>0) echo '';
- echo '
'.$party_zh[$author->role].':';
+ $party_zh = array('resourceProvider' => '资源提供者', 'custodian' => '维护者', 'owner' => '拥有者', 'user' => '用户', 'distributor' => '数据服务联系人', 'originator' => '创建者', 'pointOfContact' => '联系人', 'principalInvestigator' => '数据调查与处理者', 'processor' => '处理者', 'publisher' => '元数据发布者', 'author' => '元数据作者');
+ $r = '';
+ $i = 0;
+ foreach ($this->authors as $k => $author) :
+ if ($author->role != $r) {
+ $r = $author->role;
+ $i = 0;
+ if ($k > 0) echo '
';
+ echo '
' . $party_zh[$author->role] . ':';
}
- if ($i>0) echo ',';
- $i+=1;
- if (!empty($author->email) && $r!='principalInvestigator')
- echo '';
- echo '';
+ if ($i > 0) echo ',';
+ $i += 1;
+ if (!empty($author->email) && $r != 'principalInvestigator')
+ echo '';
+ echo '';
if (!empty($author->individual))
echo $author->individual;
else
echo $author->organisation;
echo '';
if (!empty($author->email)) echo '';
- if ($k+1==count($this->authors)) echo '
';
+ if ($k + 1 == count($this->authors)) echo '';
endforeach;
?>