diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index eede4257..d384eac2 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -738,8 +738,8 @@ class ServiceController extends Zend_Controller_Action @$odf->setVars('east',$row['east'],true,'utf-8'); if (!$ac=='simple') { - @$odf->setImage('bigthumb', 'http://westdc.westgis.ac.cn/service/bigthumb/uuid/'.$row['uuid']); - @$odf->setImage('thumb', 'http://westdc.westgis.ac.cn/service/thumb/uuid/'.$row['uuid']); + @$odf->setImage('bigthumb', 'http://'.$_SERVER['SERVER_NAME'].'/service/bigthumb/uuid/'.$row['uuid']); + @$odf->setImage('thumb', 'http://'.$_SERVER['SERVER_NAME'].'/service/thumb/uuid/'.$row['uuid']); @$odf->setVars('projection',$row['projection'],true,'utf-8'); @$odf->setVars('resolution',$row['resolution'],true,'utf-8'); @$odf->setVars('rfdenom',$row['rfdenom'],true,'utf-8'); @@ -749,7 +749,7 @@ class ServiceController extends Zend_Controller_Action @$odf->setVars('suppinfo',$row['suppinfo'],true,'utf-8'); @$odf->setVars('contacts',$row['contacts'],true,'utf-8'); } else { - @$odf->setImage('qrcode', 'http://westdc.westgis.ac.cn/service/qrcode/uuid/'.$row['uuid']); + @$odf->setImage('qrcode', 'http://'.$_SERVER['SERVER_NAME'].'/service/qrcode/uuid/'.$row['uuid']); } $odf->exportAsAttachedFile($row['title'].'.odt'); diff --git a/data/metadata-template.odt b/data/metadata-template.odt index f6121259..c9d97c8b 100644 Binary files a/data/metadata-template.odt and b/data/metadata-template.odt differ