提交 has

This commit is contained in:
2024-09-23 13:19:35 +08:00
parent a46d0dafb6
commit 59afa15c9c
38 changed files with 13248 additions and 9456 deletions

View File

@@ -31,7 +31,7 @@ function commonInit() {
}
function commonGetItemHtml(doc) {
function commonGetItemHtml(doc,maxwidth) {
var data = doc.data;
var i = doc.i;
@@ -54,23 +54,33 @@ function commonGetItemHtml(doc) {
pdf_: !data.file_pdf || data.file_pdf == '' ? '' : `<img src="img/link_3.jpg" width="14" height="16"><a href="${imgFileUrl}articlePDF/${data.file_pdf}" target="_blank" class="txt_pdf" alt="${data.article_id}">PDF</a>&nbsp;(&nbsp;<span style="color: red">${data.pdf_num}</span>&nbsp;)`,
cite_: !data.cite_num || data.cite_num == 0 ? '' :
`&nbsp;<span article_id="${data.article_id}" class="cite_box" style="color: #7a2702;">
<img src="img/link_6.jpg" width="14" height="16">
WOS Citations&nbsp;(&nbsp;<span style="color: red">${data.cite_num}</span>&nbsp;)
<ul class="export_cite "> </ul>
</span>`,
<img src="img/link_6.jpg" width="14" height="16">
WOS Citations&nbsp;(&nbsp;<span style="color: red">${data.cite_num}</span>&nbsp;)
<ul class="export_cite "> </ul>
</span>`,
abstract: data.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153"),
link_: '',
stage_: '',
}
if (data.mains == '') {
if (data.has_mains == 0) {
if (data.file_html == '') {
baseInfo.html_ = ''
} 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;<span style="color: red">' + data.html_num + '</span>&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&nbsp;'
}
} 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;<span style="color: red">' + data.html_num + '</span>&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&nbsp;'
}
// if (data.mains == '') {
// if (data.file_html == '') {
// baseInfo.html_ = ''
// } 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;<span style="color: red">' + data.html_num + '</span>&nbsp;)&nbsp;&nbsp;'
// }
// } 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;<span style="color: red">' + data.html_num + '</span>&nbsp;)&nbsp;&nbsp;'
// }
if (data.stage_no == '0') {
@@ -114,7 +124,7 @@ function commonGetItemHtml(doc) {
if (data.tradition_tag == '' || data.tradition_tag == null) {
var maxwidth = 800;//显示多少字符
var maxwidth = maxwidth?maxwidth:800;//显示多少字符
if (data.abstract.length > maxwidth) {
var abstNew = data.abstract.replace(/<.*?>/ig, "")
abstNew = abstNew.substring(0, maxwidth)