From 7acc24754dcef78c6e2165b2d634c06cd4f34995 Mon Sep 17 00:00:00 2001
From: wlx
Date: Tue, 12 Nov 2013 13:09:02 +0000
Subject: [PATCH] change literature view
---
.../default/views/scripts/data/view.phtml | 46 +++++++++++++++----
.../default/views/scripts/heihe/view.phtml | 43 +++++++++++++----
.../default/views/scripts/hiwater/view.phtml | 43 +++++++++++++----
3 files changed, 104 insertions(+), 28 deletions(-)
diff --git a/application/default/views/scripts/data/view.phtml b/application/default/views/scripts/data/view.phtml
index 696e39ed..88c54e7c 100755
--- a/application/default/views/scripts/data/view.phtml
+++ b/application/default/views/scripts/data/view.phtml
@@ -19,6 +19,7 @@ h3.gs_rt{font-size:110%;}
#file-list li li:hover {background-color: #dedede;}
#file-list li li li:hover {background-color: #eeeeee;}
+= $this->render('breadcrumbs.phtml'); ?>
metadata;if ($md):?>
escape($md->title);
if ($md->title_en) echo '
'.$this->escape($md->title_en);?>
@@ -48,31 +49,56 @@ if ($md->title_en) echo '
'.$this->escape($md->title_en);?>
?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
ref) : ?>
- 建议参考文献
+ 相关文献(作者推荐)
ref as $ref) :
- echo '- '.$ref->reference;
+ echo '
- '.$ref->reference;
+ echo '查看';
if (empty($ref->link))
{
- if(!empty($ref->attid))
+ if(!empty($ref->attid))
echo '下载';
+ }else{
+ echo '下载';
+ }
+ echo "
";
+ endforeach;
+ ?>
+
+ themeref) :?>
+
+
+ 专题文献
+
+ themeref as $ref) :
+ echo '- '.$ref->reference;
+ echo '查看';
+ if (empty($ref->link))
+ {
+ if(!empty($ref->attid))
+ echo ' | 下载';
}else{
- echo '下载';
+ echo ' | 下载';
}
echo "
";
endforeach;
?>
-
- userref) : ?>
+ userref) : ?>
- 数据用户发表文献
+ 数据施引文献
userref as $ref) :
+ echo '- '.$ref->reference;
+ echo '查看';
if (empty($ref->link))
- echo '
- '.$ref->reference.'
';
- else
- echo '- '.$ref->reference.' 下载
';
+ {
+ if(!empty($ref->attid))
+ echo '下载';
+ }else{
+ echo '下载';
+ }
+ echo "";
endforeach;
?>
diff --git a/application/default/views/scripts/heihe/view.phtml b/application/default/views/scripts/heihe/view.phtml
index 23b3a51b..7e752c00 100755
--- a/application/default/views/scripts/heihe/view.phtml
+++ b/application/default/views/scripts/heihe/view.phtml
@@ -71,31 +71,56 @@ if ($md->title_en) echo '
'.$this->escape($md->title_en);?>
?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
ref) : ?>
- 建议参考文献
+ 相关文献(作者推荐)
ref as $ref) :
echo '- '.$ref->reference;
+ echo '查看';
if (empty($ref->link))
{
- if(!empty($ref->attid))
+ if(!empty($ref->attid))
echo '下载';
+ }else{
+ echo '下载';
+ }
+ echo "
";
+ endforeach;
+ ?>
+
+ themeref) :?>
+
+
+ 专题文献
+
+ themeref as $ref) :
+ echo '- '.$ref->reference;
+ echo '查看';
+ if (empty($ref->link))
+ {
+ if(!empty($ref->attid))
+ echo ' | 下载';
}else{
- echo '下载';
+ echo ' | 下载';
}
echo "
";
endforeach;
?>
-
- userref) : ?>
+ userref) : ?>
- 数据用户发表文献
+ 数据施引文献
userref as $ref) :
+ echo '- '.$ref->reference;
+ echo '查看';
if (empty($ref->link))
- echo '
- '.$ref->reference.'
';
- else
- echo '- '.$ref->reference.' 下载
';
+ {
+ if(!empty($ref->attid))
+ echo '下载';
+ }else{
+ echo '下载';
+ }
+ echo "";
endforeach;
?>
diff --git a/application/default/views/scripts/hiwater/view.phtml b/application/default/views/scripts/hiwater/view.phtml
index e69fd7d8..2330ecdc 100644
--- a/application/default/views/scripts/hiwater/view.phtml
+++ b/application/default/views/scripts/hiwater/view.phtml
@@ -69,31 +69,56 @@ if ($md->title_en) echo '
'.$this->escape($md->title_en);?>
?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
ref) : ?>
- 建议参考文献
+ 相关文献(作者推荐)
ref as $ref) :
echo '- '.$ref->reference;
+ echo '查看';
if (empty($ref->link))
{
- if(!empty($ref->attid))
+ if(!empty($ref->attid))
echo '下载';
+ }else{
+ echo '下载';
+ }
+ echo "
";
+ endforeach;
+ ?>
+
+ themeref) :?>
+
+
+ 专题文献
+
+ themeref as $ref) :
+ echo '- '.$ref->reference;
+ echo '查看';
+ if (empty($ref->link))
+ {
+ if(!empty($ref->attid))
+ echo ' | 下载';
}else{
- echo '下载';
+ echo ' | 下载';
}
echo "
";
endforeach;
?>
-
- userref) : ?>
+ userref) : ?>
- 数据用户发表文献
+ 数据施引文献
userref as $ref) :
+ echo '- '.$ref->reference;
+ echo '查看';
if (empty($ref->link))
- echo '
- '.$ref->reference.'
';
- else
- echo '- '.$ref->reference.' 下载
';
+ {
+ if(!empty($ref->attid))
+ echo '下载';
+ }else{
+ echo '下载';
+ }
+ echo "";
endforeach;
?>