y_id cite
This commit is contained in:
@@ -193,6 +193,12 @@ function bf_list() {
|
||||
} else {
|
||||
var pdf_ = '<img src="img/link_3.jpg" width="14" height="16"><a href="' + imgFileUrl + 'articlePDF/' + arr[i].file_pdf + '" target="_blank" class="txt_pdf" alt="' + arr[i].article_id + '">PDF</a> ( <span style="color: red">' + arr[i].pdf_num + '</span> )'
|
||||
}
|
||||
if (arr[i].cite_num == 0) {
|
||||
var cite_ = ''
|
||||
} else {
|
||||
var cite_ = `<span article_id="${arr[i].article_id}" class="cite_box" style="color: #7a2702;"> <img src="img/link_6.jpg" width="14" height="16">WOS Citations ( <span style="color: red">${arr[i].cite_num} </span> )
|
||||
<ul class="export_cite "> </ul></span>`
|
||||
}
|
||||
if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) {
|
||||
var tong_geogle = '<a href = "https://scholar.google.com/scholar?&q=' + arr[i].title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '"' +
|
||||
'target = "_blank" style="color: ' + localStorage.Journals_color + ';margin-left: 10px;font-weight: 600;"> ' +
|
||||
@@ -209,7 +215,7 @@ function bf_list() {
|
||||
}
|
||||
if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) {
|
||||
var tong_geogle_2_2 = '<a href = "https://scholar.google.com/scholar?&q=' + arr[i].title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '"' +
|
||||
'target = "_blank" style="color: ' + localStorage.Journals_color + ';margin:5px 37px 0 0;font-weight: 600;display: inline-block;"> ' +
|
||||
'target = "_blank" style="color: #7a2702;margin:5px 37px 0 0;font-weight: 600;display: inline-block;"> ' +
|
||||
'Google Scholar</a>' //搜索引用次数
|
||||
} else {
|
||||
var tong_geogle_2_2 = '' //少于21天隐藏
|
||||
@@ -243,10 +249,10 @@ function bf_list() {
|
||||
|
||||
arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||||
|
||||
var c_t_a = '<button class="txt_copy">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"> <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> ( <span style="color: red">' + arr[i].abs_num + '</span> ) ' +
|
||||
html_ + pdf_ + mp4_ + c_t_a + tong_geogle
|
||||
html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle
|
||||
+ '<p class="txt_content">' + arr[i].cite + '</p><div>' + arr[i].abstract + '</div>';
|
||||
var lr_top = ''
|
||||
for (var t = 0; t < arr[i].topic.length; t++) {
|
||||
@@ -369,6 +375,18 @@ function bf_list() {
|
||||
});
|
||||
$(this).next().html(num);
|
||||
})
|
||||
$('.current_list .export_cite').css('display', 'none');
|
||||
$(document).click(function (e) {
|
||||
if (!$(e.target).is('.export_cite') && !$(e.target).is('.cite_box')) {
|
||||
$('.export_cite').hide();
|
||||
}
|
||||
})
|
||||
$('.current_list .cite_box').click(function () {
|
||||
$('.export_cite').css('display', 'none');
|
||||
getCiteList($(this).attr('article_id'))
|
||||
$(this).find('.export_cite').fadeIn(200);
|
||||
})
|
||||
$('.export_cite').click(function (e) { e.stopPropagation() })
|
||||
|
||||
// 点击弹窗出现 复制和下载
|
||||
$('.current_list .txt_content').css('display', 'none');
|
||||
@@ -1272,3 +1290,48 @@ function bf_list() {
|
||||
})
|
||||
}
|
||||
|
||||
function getCiteList(a_ID) {
|
||||
$('.cite_box .export_cite').html('<div class="loader-01"></div>');
|
||||
var journalCiteStr = ''
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Article/getArticleCites',
|
||||
data: {
|
||||
"article_id": a_ID
|
||||
},
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
|
||||
var arr = result.data.list
|
||||
for (let i in arr) {
|
||||
journalCiteStr += `
|
||||
<div class='cite_list_item' style="margin-bottom:10px;podding:10px 0;display:flex;border-bottom: ${i != arr.length - 1 ? '1px solid #ccc' : 'none'};}"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||||
<div>
|
||||
<p style="display: block; line-height: 20px;
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;"> <a style="color:#205493 !important;"
|
||||
target="_blank"
|
||||
href="${arr[i].doi ? 'https://doi.org/' + arr[i].doi : ''}">
|
||||
${arr[i].article_name}
|
||||
</a></p>
|
||||
|
||||
<p style="line-height: 14px;margin-bottom: 10px;">
|
||||
<span style="color: #a2b1b6;
|
||||
font-size: 13px;">${arr[i].author ? `${arr[i].author},` : ''} ${arr[i].journal_name}${arr[i].vol ? `${arr[i].vol},` : ''}
|
||||
</span>
|
||||
<span style="margin-left:5px;color:#205493 !important;">
|
||||
</span></p></div>
|
||||
|
||||
</div> `
|
||||
}
|
||||
journalCiteStr += ` <div class="cite_triangle"></div>`
|
||||
|
||||
$('.cite_box .export_cite').html(journalCiteStr);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user