diff --git a/application/admin/controllers/TestController.php b/application/admin/controllers/TestController.php
index d27d4841..c6bc40c1 100644
--- a/application/admin/controllers/TestController.php
+++ b/application/admin/controllers/TestController.php
@@ -68,5 +68,12 @@ class Admin_TestController extends Zend_Controller_Action
$sql="select uuid,title from metadata where source='0595169a-279e-4b95-819f-129d0ba4280d' and doi='' order by title";
$this->view->rows=$this->db->fetchAll($sql);
}
+
+ //检查source不符合要求
+ function sourceAction()
+ {
+ $sql="select uuid,title,source from metadata where title ilike '黑河综合遥感联合试验%' and source=''";
+ $this->view->rows=$this->db->fetchAll($sql);
+ }
}
diff --git a/application/admin/views/scripts/test/left.phtml b/application/admin/views/scripts/test/left.phtml
index f410032b..7cf2e32c 100644
--- a/application/admin/views/scripts/test/left.phtml
+++ b/application/admin/views/scripts/test/left.phtml
@@ -2,4 +2,5 @@
文献链接测试
DOI重复检查
WATER中没有DOI的数据
+WATER中没有SOURCE缺失的数据
\ No newline at end of file
diff --git a/application/admin/views/scripts/test/source.phtml b/application/admin/views/scripts/test/source.phtml
new file mode 100644
index 00000000..022d2535
--- /dev/null
+++ b/application/admin/views/scripts/test/source.phtml
@@ -0,0 +1,41 @@
+headTitle($this->config->title->site);
+ $this->headTitle('后台管理');
+ $this->headTitle()->setSeparator(' - ');
+ $this->headLink()->appendStylesheet('/css/admin.css');
+ $this->breadcrumb('首页');
+ $this->breadcrumb('后台首页');
+ $this->breadcrumb('数据测试工具');
+ $this->breadcrumb('source缺失检查');
+ $this->breadcrumb()->setSeparator(' > ');
+?>
+
+= $this->partial('test/left.phtml'); ?>
+
+
+msg or $this->messages) :?>
+
+msg) : ?>
+
msg; ?>
+messages): foreach($this->messages as $msg): ?>
+
+
+
+
+
+rows) : ?>
+
+缺失SOURCE的数据项:
+rows as $doi): ?>
+
+
+以上数据若确认是黑河试验的数据,请通过以下SQL语句执行修复:
+"update metadata set source='0595169a-279e-4b95-819f-129d0ba4280d' where id in (select id from metadata where source='' and title ilike '黑河综合遥感联合试验%')"
+也可以对geonetwork数据库统一赋值。
+
+
+恭喜!没有对应的数据。
+
+
\ No newline at end of file