#493, 修复元数据编辑链接

This commit is contained in:
wlx 2013-05-24 00:35:07 +00:00
parent 70a02a9d05
commit 37233cf6a1
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ table thead tr th {background:#EBF2F6;color:#444;}
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<tr> <tr>
<td><?= $item['title']?> [ <td><?= $item['title']?> [
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['mdid'] ?>" target="_blank">编辑</a> | <a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid'] ?>" target="_blank">编辑</a> |
<a href="javascript:void(0);" rel="<?= $item['uuid']?>" class="version">版本</a> <a href="javascript:void(0);" rel="<?= $item['uuid']?>" class="version">版本</a>
]</td> ]</td>
<td><?php <td><?php

View File

@ -76,9 +76,10 @@ class Review extends Zend_Controller_Plugin_Abstract
$wheresql = ""; $wheresql = "";
} }
$sql = "select m.id,md.uuid,md.title,u.username,u.realname,m.status,md.id as mdid,md.author,m.ts_accepted $sql = "select m.id,g.id as gid, md.uuid,md.title,u.username,u.realname,m.status,md.id as mdid,md.author,m.ts_accepted
FROM mdstatus m FROM mdstatus m
right join metadata md on md.uuid=m.uuid right join metadata md on md.uuid=m.uuid
left join geonetworkmetadata g on m.uuid=g.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
$wheresql $wheresql
order by m.status desc,m.ts_accepted desc"; order by m.status desc,m.ts_accepted desc";