has_mains改成has_html

This commit is contained in:
2024-09-23 17:19:43 +08:00
parent 59afa15c9c
commit 94ec00c38c
6 changed files with 30 additions and 20 deletions

View File

@@ -262,7 +262,7 @@ function initArticleT() {
.&nbsp;${arr[i].stage_year},&nbsp;${arr[i].stage_vol}${baseInfo.stage_}${baseInfo.npp_}<a target="_blank" .&nbsp;${arr[i].stage_year},&nbsp;${arr[i].stage_vol}${baseInfo.stage_}${baseInfo.npp_}<a target="_blank"
href="https://doi.org/${arr[i].doi}">${baseInfo.doi_}</a> </div> href="https://doi.org/${arr[i].doi}">${baseInfo.doi_}</a> </div>
<div class="links_">${baseInfo.link_}</div> <div class="links_">${baseInfo.link_}</div>
<div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">${img_i}</a>${baseInfo.trad_tion}<br <div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">${baseInfo.person_img}</a>${baseInfo.trad_tion}<br
clear="both"></div> clear="both"></div>
</li>` </li>`
} }

View File

@@ -61,14 +61,14 @@ function commonGetItemHtml(doc) {
link_: '', link_: '',
stage_: '', stage_: '',
} }
if (data.has_mains == 0) { if (data.has_html == 0) {
if (data.file_html == '') { if (data.file_html == '') {
baseInfo.html_ = '' baseInfo.html_ = ''
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;&nbsp&nbsp;' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)'
} }
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;&nbsp&nbsp;' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)'
} }

View File

@@ -164,14 +164,14 @@ function bf_list() {
} else { } else {
var npp_ = ':&nbsp;' + arr[i].npp + '.&nbsp;&nbsp;' var npp_ = ':&nbsp;' + arr[i].npp + '.&nbsp;&nbsp;'
} }
if (arr[i].has_mains == 0) { if (arr[i].has_html == 0) {
if (arr[i].file_html == '') { if (arr[i].file_html == '') {
var html_ = '' var html_ = ''
} else { } else {
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + arr[i].file_html + '" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;&nbsp&nbsp;' var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + arr[i].file_html + '" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)'
} }
} else { } else {
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;&nbsp&nbsp;' var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)'
} }
if (arr[i].file_pdf == '') { if (arr[i].file_pdf == '') {
var pdf_ = '' var pdf_ = ''
@@ -219,14 +219,17 @@ function bf_list() {
var c_t_a = '<button class="txt_copy cite_txt_button">&nbsp;<img src="img/link_7.jpg" width="14" height="16">Cite this article<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> Copy citation information</li><li class="Exc_2"><i class="fa fa-download"></i> Export citation to EndNote</li><li class="Exc_3"><i class="fa fa-download"></i> Export citation to RIS</li><li class="Exc_4"><i class="fa fa-download"></i> Export citation to BibTex</li><li class="Exc_5"><i class="fa fa-download"></i> Export citation to txt</li><div class="triangle"></div></ul></button>' var c_t_a = '<button class="txt_copy cite_txt_button">&nbsp;<img src="img/link_7.jpg" width="14" height="16">Cite this article<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> Copy citation information</li><li class="Exc_2"><i class="fa fa-download"></i> Export citation to EndNote</li><li class="Exc_3"><i class="fa fa-download"></i> Export citation to RIS</li><li class="Exc_4"><i class="fa fa-download"></i> Export citation to BibTex</li><li class="Exc_5"><i class="fa fa-download"></i> Export citation to txt</li><div class="triangle"></div></ul></button>'
} }
var link_ = '<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' + arr[i].article_id + '">Abstract</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].abs_num + '</span>&nbsp;)&nbsp;&nbsp;' + var link_ = '<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' + arr[i].article_id + '">Abstract</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].abs_num + '</span>&nbsp;)&nbsp;&nbsp;' +
html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle + html_ + pdf_ + mp4_ + c_t_a + cite_ + tong_geogle +
'<p class="txt_content">' + arr[i].cite + '</p>' + '<p class="txt_content">' + arr[i].cite + '</p>' +
'<div>' + arr[i].abstract + '</div>'; '<div>' + arr[i].abstract + '</div>';
var lr_top = '' var lr_top = ''
if (arr[i].topic && arr[i].topic.length > 0) {
for (var t = 0; t < arr[i].topic.length; t++) { for (var t = 0; t < arr[i].topic.length; t++) {
lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>' lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>'
} }
}
// Cancer Advances // Cancer Advances
// Nursing Communications // Nursing Communications

View File

@@ -63,14 +63,14 @@ function commonGetItemHtml(doc,maxwidth) {
stage_: '', stage_: '',
} }
if (data.has_mains == 0) { if (data.has_html == 0) {
if (data.file_html == '') { if (data.file_html == '') {
baseInfo.html_ = '' baseInfo.html_ = ''
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;&nbsp&nbsp;' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)'
} }
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;&nbsp&nbsp;' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' +data.html_num + '</span>&nbsp;)'
} }
// if (data.mains == '') { // if (data.mains == '') {
// if (data.file_html == '') { // if (data.file_html == '') {

View File

@@ -179,14 +179,14 @@ function bf_list() {
} else { } else {
var npp_ = ':&nbsp;' + arr[i].npp + '.&nbsp;&nbsp;' var npp_ = ':&nbsp;' + arr[i].npp + '.&nbsp;&nbsp;'
} }
if (arr[i].has_mains == 0) { if (arr[i].has_html == 0) {
if (arr[i].file_html == '') { if (arr[i].file_html == '') {
var html_ = '' var html_ = ''
} else { } else {
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + arr[i].file_html + '" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)&nbsp;&nbsp;' var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + arr[i].file_html + '" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)'
} }
} else { } else {
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)&nbsp;&nbsp;' var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)'
} }
if (arr[i].file_pdf == '') { if (arr[i].file_pdf == '') {
var pdf_ = '' var pdf_ = ''
@@ -255,9 +255,11 @@ function bf_list() {
html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle
+ '<p class="txt_content">' + arr[i].cite + '</p><div>' + arr[i].abstract + '</div>'; + '<p class="txt_content">' + arr[i].cite + '</p><div>' + arr[i].abstract + '</div>';
var lr_top = '' var lr_top = ''
if (arr[i].topic && arr[i].topic.length > 0) {
for (var t = 0; t < arr[i].topic.length; t++) { for (var t = 0; t < arr[i].topic.length; t++) {
lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>' lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>'
} }
}
if (arr[i].tradition_tag == '') { if (arr[i].tradition_tag == '') {

View File

@@ -63,14 +63,19 @@
<script src="js/js.js"></script> <script src="js/js.js"></script>
<script src="js/side.js"></script> <script src="js/side.js"></script>
<script src="js/article.js"></script> <script src="js/article.js"></script>
<script src="js/articleJS/index.js"></script>
<script src="js/articleJS/article_t.js"></script>
<script> <script>
$(function () { $(function () {
if(Jour_num=='22'){ if (Jour_num == '22') {
$('.gue_chinese_tot').html('共 <b class="tioashu"></b> 条'); $('.gue_chinese_tot').html('共 <b class="tioashu"></b> 条');
} }
side_list() side_list()
at_list(); at_list();
initArticleT()
}); });