9224 lines
578 KiB
JavaScript
9224 lines
578 KiB
JavaScript
|
||
var commonSupColor = 'rgb(0,112,192)'//上角标颜色
|
||
var commonTableTitleColor = 'rgb(210,90,90)'//上角标颜色
|
||
var commonSupFontColor = 'color:rgb(0,112,192);'//上角标字体颜色
|
||
|
||
function loadMathJax(callback) {
|
||
const script = document.createElement('script');
|
||
|
||
// 可选:配置 MathJax(必须在加载 script 前设置)
|
||
window.MathJax = {
|
||
tex: {
|
||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
||
},
|
||
startup: {
|
||
typeset: false // 不自动 typeset,手动触发更灵活
|
||
}
|
||
};
|
||
|
||
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
|
||
script.onload = callback;
|
||
document.head.appendChild(script);
|
||
}
|
||
loadMathJax()
|
||
|
||
// 列表
|
||
function at_list() {
|
||
|
||
|
||
|
||
|
||
|
||
function adjustNavHeight() {
|
||
var windowHeight = window.innerHeight; // 获取页面高度
|
||
$(".anchor-nav").css("height", windowHeight + "px"); // 设置导航栏高度为页面高度
|
||
}
|
||
|
||
// 页面加载时调整导航栏高度
|
||
adjustNavHeight();
|
||
|
||
// 窗口大小变化时调整导航栏高度
|
||
$(window).resize(function () {
|
||
adjustNavHeight(); // 重新调整导航栏高度
|
||
});
|
||
|
||
// 获取地址栏信息
|
||
function getQueryString(name) {
|
||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||
var r = window.location.search.substr(1).match(reg);
|
||
if (r != null) return unescape(r[2]);
|
||
return null;
|
||
}
|
||
|
||
var J_ID = getQueryString('J_num'); //期刊
|
||
var t_ID = getQueryString('t_id'); //话题
|
||
var y_ID = getQueryString('y_id'); //分期时间
|
||
var p_ID = getQueryString('p_id'); //New Papers
|
||
var o_ID = getQueryString('o_id'); //Online First
|
||
var n_ID = getQueryString('n_id'); //News & Commentdian
|
||
var new_ID = getQueryString('new_id'); //News
|
||
var con_ID = getQueryString('con_id'); //Commentdian
|
||
var h_ID = getQueryString('h_id'); //Highlights
|
||
var cite_ID = getQueryString('cite_id'); //Top cited
|
||
var read_ID = getQueryString('read_id'); //Top read
|
||
var down_ID = getQueryString('down_id'); //Top download
|
||
var top_ID = getQueryString('top_id'); //Top cited / Top read / Top download
|
||
var time_ID = getQueryString('time_id'); //时间轴
|
||
|
||
var shenCode = [] // 审稿意见(复审和初审)
|
||
// 话题点进去的文章列表
|
||
// if (t_ID != null) {
|
||
// // 增加访问次数
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// } else {
|
||
// // ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// // ShowDanger("error!");
|
||
// }
|
||
// });
|
||
|
||
// // 话题
|
||
// var topic_mess = {};
|
||
// topic_mess.topic_id = t_ID;
|
||
// topic_mess.pageIndex = 1;
|
||
// topic_mess.pageSize = 10;
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = topic_mess.pageIndex;//当前页码
|
||
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
|
||
// // 时间轴
|
||
|
||
// if (t_ID != '369') {
|
||
// $('.wenz_list .about2').css('display', 'none')
|
||
// }
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getJournalLine',
|
||
// data: {
|
||
// "journal_id": Jour_num
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// var arr = result.data.lines;
|
||
// var str = "";
|
||
// var dis_ = '';
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (i == arr.length - 1) {
|
||
// if (i == 0) {
|
||
// dis_ = '20'
|
||
// } else {
|
||
// dis_ = parseInt(dis_) + parseInt(arr[i].dist * 130);
|
||
// }
|
||
// str += '<li style="margin-top: ' + dis_ + 'px"><h4 class="f30">' + arr[i].time + '</h4>' +
|
||
// '<a href="article_list.html?J_num=' + Jour_num + '&time_id=' + arr[i].journal_line_id + '" target="_blank">' +
|
||
// '<h3 class="span">>> ' + arr[i].title + '</h3></a>' +
|
||
// '<img src="' + imglineUrl + arr[i].img + '" style="width: 80px;height: 100px;margin-top: 10px">' +
|
||
// '<p class="f14">' + arr[i].intro + '</p></li>'
|
||
// } else {
|
||
// if (arr[i].time == arr[i + 1].time) {
|
||
// if (i == 0) {
|
||
// dis_ = '20'
|
||
// } else {
|
||
// dis_ = parseInt(dis_) + parseInt(arr[i].dist * 130);
|
||
// }
|
||
// str += '<li style="margin-top: ' + dis_ + 'px"><h4 class="f30">' + arr[i].time + '</h4>' +
|
||
// '<a href="article_list.html?J_num=' + Jour_num + '&time_id=' + arr[i].journal_line_id + '" target="_blank">' +
|
||
// '<h3 class="span">>> ' + arr[i].title + '</h3></a>' +
|
||
// '<img src="' + imglineUrl + arr[i].img + '" style="width: 80px;height: 100px;margin-top: 10px">' +
|
||
// '<p class="f14">' + arr[i].intro + '</p>' +
|
||
// '<a href="article_list.html?J_num=' + Jour_num + '&time_id=' + arr[i + 1].journal_line_id + '" target="_blank">' +
|
||
// '<h3 class="span">>> ' + arr[i + 1].title + '</h3></a>' +
|
||
// '<img src="' + imglineUrl + arr[i + 1].img + '" style="width: 80px;height: 100px;margin-top: 10px">' +
|
||
// '<p class="f14">' + arr[i + 1].intro + '</p></li>'
|
||
// i = i + 1;
|
||
// } else {
|
||
// if (i == 0) {
|
||
// dis_ = '20'
|
||
// } else {
|
||
// dis_ = parseInt(dis_) + parseInt(arr[i].dist * 130);
|
||
// }
|
||
// str += '<li style="margin-top: ' + dis_ + 'px"><h4 class="f30">' + arr[i].time + '</h4>' +
|
||
// '<a href="article_list.html?J_num=' + Jour_num + '&time_id=' + arr[i].journal_line_id + '" target="_blank">' +
|
||
// '<h3 class="span">>> ' + arr[i].title + '</h3></a>' +
|
||
// '<img src="' + imglineUrl + arr[i].img + '" style="width: 80px;height: 100px;margin-top: 10px">' +
|
||
// '<p class="f14">' + arr[i].intro + '</p></li>'
|
||
// }
|
||
// }
|
||
|
||
// }
|
||
|
||
|
||
// if (Jour_num == '1' && t_ID == '369') {
|
||
// $('.wenz_list>.about2 ul').html(str);
|
||
// $('#kkpager').css('display', 'none')
|
||
// $('.gue_chinese_tot').css('display', 'none')
|
||
// } else {
|
||
// $('.wenz_list .about2').css('display', 'none')
|
||
|
||
// }
|
||
|
||
|
||
// } else {
|
||
// // ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopicArticles',
|
||
// data: topic_mess,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// totalPage = result.data.count % topic_mess.pageSize == 0 ? (result.data.count / topic_mess.pageSize) : (Math.ceil(result.data.count / topic_mess.pageSize));
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html(result.data.topicInfo.title);
|
||
|
||
// if (result.data.topicInfo.intro != '') {
|
||
// $('.wenz_list>h4').after('<h3 style="font-size: 12px;color: #666;margin: 0 18px 10px 18px;">' + result.data.topicInfo.intro + '</h3>');
|
||
// }
|
||
|
||
// // 古籍按钮
|
||
// if (t_ID == '368') {
|
||
// $('.wenz_list>h4').append('<a href="topic_list.html?J_num=1&t_id=369" class="ancient_btn" target="_blank">Ancient Medical Books</a>')
|
||
// }
|
||
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '' || arr[i].npp == ' ') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
|
||
// if (localStorage.Journals_num == '22') {
|
||
// var c_t_a = '<button class="txt_copy">引用这篇文章<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> 复制引用信息</li><li class="Exc_2"><i class="fa fa-download"></i> 下载EndNote格式</li><li class="Exc_3"><i class="fa fa-download"></i> 下载RIS格式</li><li class="Exc_4"><i class="fa fa-download"></i> 下载BibTex格式</li><li class="Exc_5"><i class="fa fa-download"></i> 下载text格式</li><div class="triangle"></div></ul></button>'
|
||
// } else {
|
||
// 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>'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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 +
|
||
// '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv"><img src="' + img_i + '" alt=""></a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
|
||
// if (Jour_num == '22') {
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// topic_mess.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopicArticles',
|
||
// data: topic_mess,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html(result.data.topicInfo.title);
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '' || arr[i].npp == ' ') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
|
||
// if (localStorage.Journals_num == '22') {
|
||
// var c_t_a = '<button class="txt_copy">引用这篇文章<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> 复制引用信息</li><li class="Exc_2"><i class="fa fa-download"></i> 下载EndNote格式</li><li class="Exc_3"><i class="fa fa-download"></i> 下载RIS格式</li><li class="Exc_4"><i class="fa fa-download"></i> 下载BibTex格式</li><li class="Exc_5"><i class="fa fa-download"></i> 下载text格式</li><div class="triangle"></div></ul></button>'
|
||
// } else {
|
||
// 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>'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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 +
|
||
// '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv"><img src="' + img_i + '" alt=""></a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticleenw',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticleRis',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticlebib',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticletext',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: '首页',
|
||
// firstPageTipText: '首页',
|
||
// lastPageText: '尾页',
|
||
// lastPageTipText: '尾页',
|
||
// prePageText: '上一页',
|
||
// prePageTipText: '上一页',
|
||
// nextPageText: '下一页',
|
||
// nextPageTipText: '下一页',
|
||
// totalPageBeforeText: ' 共 ',
|
||
// totalPageAfterText: ' 页',
|
||
// currPageBeforeText: '当前第 ',
|
||
// currPageAfterText: ' 页',
|
||
// totalInfoSplitStr: ' ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
// } else {
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// topic_mess.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopicArticles',
|
||
// data: topic_mess,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html(result.data.topicInfo.title);
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '' || arr[i].npp == ' ') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv"><img src="' + img_i + '" alt=""></a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticleenw',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticleRis',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticlebib',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'api/Article/getArticletext',
|
||
// async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
// }
|
||
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
|
||
|
||
// }
|
||
|
||
|
||
// 分期时间的文章列表
|
||
// if (y_ID != null) {
|
||
// // 分期时间
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", J_ID);
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getStageArticles',
|
||
// data: {
|
||
// "stage_id": y_ID
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// var atg = result.data.stageInfo;
|
||
// if (atg.stage_no == '0') {
|
||
// var time_ = atg.issue_date + ', Volume ' + atg.stage_vol;
|
||
// } else {
|
||
// var time_ = atg.issue_date + ', Volume ' + atg.stage_vol + ' Issue ' + atg.stage_no;
|
||
// }
|
||
|
||
// if (atg.stage_no == '0') {
|
||
// var act_year = atg.stage_year + ', ' + atg.stage_vol;
|
||
// } else {
|
||
// var act_year = atg.stage_year + ', ' + atg.stage_vol + ' (' + atg.stage_no + ')';
|
||
// }
|
||
// $('.wenz_list>h4').html(time_);
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '' || arr[i].npp == ' ') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].has_mains == 0) {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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>   '
|
||
// }
|
||
// } 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>   '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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:#7a2702;;margin-left: 10px;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (Jour_num == 1) {
|
||
// if (arr[i].stage_year >= 2019) {
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
// } else {
|
||
// var img_i = 'img/baiss.png'
|
||
// }
|
||
// } else if (Jour_num == 4 && Jour_num == 8 && Jour_num == 14) {
|
||
// if (arr[i].stage_year >= 2020) {
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
// } else {
|
||
// var img_i = 'img/baiss.png'
|
||
// }
|
||
// } else {
|
||
// if (arr[i].stage_year > 2020) {
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
// } else {
|
||
// var img_i = 'img/baiss.png'
|
||
// }
|
||
// }
|
||
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// if (arr[i].journal_id == 22) {
|
||
// var c_t_a = '<button class="txt_copy cite_txt_button" > <img src="img/link_7.jpg" width="14" height="16">引用这篇文章<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> 复制引用信息</li><li class="Exc_2"><i class="fa fa-download"></i> 下载EndNote格式</li><li class="Exc_3"><i class="fa fa-download"></i> 下载RIS格式</li><li class="Exc_4"><i class="fa fa-download"></i> 下载BibTex格式</li><li class="Exc_5"><i class="fa fa-download"></i> 下载text格式</li><div class="triangle"></div></ul></button>'
|
||
// } else {
|
||
// 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>'
|
||
// }
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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 + cite_ + tong_geogle +
|
||
// '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + arr[i].journal_title + '. ' + act_year + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.export_cite').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export_cite') && !$(e.target).is('.cite_box')) {
|
||
// $('.export_cite').hide();
|
||
// }
|
||
// })
|
||
// $('.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() })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// New Papers点进去的文章列表
|
||
// if (p_ID != null) {
|
||
// //New Papers
|
||
// localStorage.setItem("Journals_num", p_ID);
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Main/getMoreArticles',
|
||
// data: {},
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('New Papers');
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].html == 0) {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
|
||
// Online First点进去的文章列表
|
||
// if (o_ID != null) {
|
||
// //Online First
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", o_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var online_first = {};
|
||
// online_first.pageIndex = 1;
|
||
// online_first.pageSize = 10;
|
||
// online_first.journal_id = o_ID;
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = online_first.pageIndex;//当前页码
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getOnlineArticle',
|
||
// data: online_first,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('Online First');
|
||
// totalPage = result.data.count % online_first.pageSize == 0 ? (result.data.count / online_first.pageSize) : (Math.ceil(result.data.count / online_first.pageSize));
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articlelist;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// if (arr[i].abstract != null) {
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
// }
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// online_first.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getOnlineArticle',
|
||
// data: online_first,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html('Online First');
|
||
// var arr = result.data.articlelist;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// News & Commentdian点进去的文章列表
|
||
// if (n_ID != null) {
|
||
// // Highlights
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", n_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var high_top = {};
|
||
// high_top.page = 1;
|
||
// high_top.limit = 10;
|
||
// high_top.journal_id = n_ID;
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = high_top.page;//当前页码
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getNewsArticleNew',
|
||
// data: {
|
||
// "journal_id": n_ID,
|
||
// "limit": 10,
|
||
// "page": 1
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('News & Comment');
|
||
// totalPage = result.data.count % high_top.limit == 0 ? (result.data.count / high_top.limit) : (Math.ceil(result.data.count / high_top.limit));
|
||
// totalRecords = result.data.count;
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
|
||
|
||
// var arr = result.data.articlelist;
|
||
// var str = "";
|
||
// var sgr = "";
|
||
// var n_ = "0";
|
||
// var c_ = "0";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].type == 'News') {
|
||
// n_ = '1';
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].html_num == 0) {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
|
||
// } else if (arr[i].type == 'Comment') {
|
||
// c_ = '1';
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// sgr += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
|
||
|
||
// }
|
||
// if (n_ == "0") {
|
||
// str = ''
|
||
// } else {
|
||
// str = '<h4 class="rgb_color" style="color: ' + localStorage.Journals_color + '">News</h4><ul>' + str + '</ul>' + '<div style="height: 15px;background-color: #f4fafd;margin-left: -15px;margin-right: -15px;">'
|
||
// }
|
||
// if (c_ == "0") {
|
||
// sgr = ''
|
||
// } else {
|
||
// sgr = '</div><h4 class="rgb_color" style="color: ' + localStorage.Journals_color + '">Comment</h4><ul>' + sgr + '</ul>'
|
||
// }
|
||
|
||
|
||
// $('.wenz_list').html(str + sgr);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
|
||
// // var totalPage;//总页码
|
||
// // var totalRecords;//总数据条数
|
||
// // var pageNo = high_top.pageIndex;//当前页码
|
||
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalPage,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// high_top.page = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getNewsArticleNew',
|
||
// data: high_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articlelist;
|
||
// var str = "";
|
||
// var sgr = "";
|
||
// var n_ = "0";
|
||
// var c_ = "0";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].type == 'News') {
|
||
// n_ = '1';
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].html_num == 0) {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
|
||
// } else if (arr[i].type == 'Comment') {
|
||
// c_ = '1';
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// sgr += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
|
||
|
||
// }
|
||
// if (n_ == "0") {
|
||
// str = ''
|
||
// } else {
|
||
// str = '<h4 class="rgb_color" style="color: ' + localStorage.Journals_color + '">News</h4><ul>' + str + '</ul>' + '<div style="height: 15px;background-color: #f4fafd;margin-left: -15px;margin-right: -15px;">'
|
||
// }
|
||
// if (c_ == "0") {
|
||
// sgr = ''
|
||
// } else {
|
||
// sgr = '</div><h4 class="rgb_color" style="color: ' + localStorage.Journals_color + '">Comment</h4><ul>' + sgr + '</ul>'
|
||
// }
|
||
|
||
|
||
// $('.wenz_list').html(str + sgr);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// News点进去的文章列表
|
||
// if (new_ID != null) {
|
||
// // News
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", new_ID);
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getNewsArticle',
|
||
// data: {
|
||
// "journal_id": new_ID
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// if (Jour_num == 1) {
|
||
// $('.wenz_list>h4').after('<p style="margin-bottom: 15px;padding: 10px 20px;background-color: #fff">News should focus on policy, science and society or purely scientific issues related to traditional medicine around the world. They should be of immediate interest to a broad readership and should be written in an accessible, non-technical style. Figures and diagrams are encouraged, but are not a requirement. News articles are not peer-reviewed, but undergo editing after consultation with the author.</p>');
|
||
// }
|
||
// $('.wenz_list>h4').html('News');
|
||
// // var doi_ = '';
|
||
// // var npp_ = '';
|
||
// var arr = result.data.articlelist;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].type == 'News') {
|
||
// str += '<li><a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a><div>'
|
||
// '<h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div><br clear="both"></div></li>'
|
||
// }
|
||
|
||
// }
|
||
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
|
||
// Comment点进去的文章列表
|
||
// if (con_ID != null) {
|
||
// // Comment
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", con_ID);
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getNewsArticle',
|
||
// data: {
|
||
// "journal_id": con_ID
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// if (Jour_num == 1) {
|
||
// $('.wenz_list>h4').after('<p style="margin-bottom: 15px;padding: 10px 20px;background-color: #fff">We welcome influential scientists to write a field of vision commentary on recent perspectives of seminal articles, hot topic articles, or the latest articles in the research field, to keep readers at the forefront of research and increase the impact of their clinical research. Seminal (classic) articles are papers that included in the Web of Science and reflecting the article’s quality and their impact on the field. Hot topic articles are papers that included in the Web of Science and reflecting their representation of cutting-edge trends in scientific research. Comments are typically no longer than 1,500 words and include up to 25 references.</p>');
|
||
// }
|
||
// $('.wenz_list>h4').html('Comment');
|
||
// // var doi_ = '';
|
||
// // var npp_ = '';
|
||
// var arr = result.data.articlelist;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].type == 'Comment') {
|
||
// str += '<li><a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a><div>'
|
||
// '<h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div><br clear="both"></div></li>'
|
||
// }
|
||
|
||
// }
|
||
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
|
||
// Highlights点进去的文章列表
|
||
// if (h_ID != null) {
|
||
// // Highlights
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", h_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var high_top = {};
|
||
// high_top.pageIndex = 1;
|
||
// high_top.pageSize = 10;
|
||
// high_top.journal_id = h_ID;
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = high_top.pageIndex;//当前页码
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getTopArticle',
|
||
// data: {
|
||
// "journal_id": h_ID,
|
||
// "pageIndex": '1',
|
||
// "pageSize": '10'
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('Highlights');
|
||
// totalPage = result.data.count % high_top.pageSize == 0 ? (result.data.count / high_top.pageSize) : (Math.ceil(result.data.count / high_top.pageSize));
|
||
// totalRecords = result.data.count;
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articles;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// high_top.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getTopArticle',
|
||
// data: high_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articles;
|
||
// $('.wenz_list>h4').html('Highlights');
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// Top cited点进去的文章列表
|
||
// if (cite_ID != null) {
|
||
// // cited
|
||
// localStorage.setItem("Journals_num", cite_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var cited_top = {};
|
||
// cited_top.pageIndex = 1;
|
||
// cited_top.pageSize = 10;
|
||
// cited_top.journal_id = cite_ID;
|
||
// cited_top.type = 'cited';
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = cited_top.pageIndex;//当前页码
|
||
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopArt',
|
||
// data: cited_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('Top cited');
|
||
|
||
// totalPage = result.data.count % cited_top.pageSize == 0 ? (result.data.count / cited_top.pageSize) : (Math.ceil(result.data.count / cited_top.pageSize));
|
||
// totalRecords = result.data.count;
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// cited_top.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopArt',
|
||
// data: cited_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html('Top cited');
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// Top read点进去的文章列表
|
||
// if (read_ID != null) {
|
||
// // read
|
||
// localStorage.setItem("Journals_num", read_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var read_top = {};
|
||
// read_top.pageIndex = 1;
|
||
// read_top.pageSize = 10;
|
||
// read_top.journal_id = read_ID;
|
||
// read_top.type = 'read';
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = read_top.pageIndex;//当前页码
|
||
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopArt',
|
||
// data: read_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('Top read');
|
||
// totalPage = result.data.count % read_top.pageSize == 0 ? (result.data.count / read_top.pageSize) : (Math.ceil(result.data.count / read_top.pageSize));
|
||
// totalRecords = result.data.count;
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// read_top.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopArt',
|
||
// data: read_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html('Top read');
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// Top down点进去的文章列表
|
||
// if (down_ID != null) {
|
||
// // down
|
||
// localStorage.setItem("Journals_num", down_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var down_top = {};
|
||
// down_top.pageIndex = 1;
|
||
// down_top.pageSize = 10;
|
||
// down_top.journal_id = down_ID;
|
||
// down_top.type = 'download';
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = down_top.pageIndex;//当前页码
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopArt',
|
||
// data: down_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html('Top download');
|
||
// totalPage = result.data.count % down_top.pageSize == 0 ? (result.data.count / down_top.pageSize) : (Math.ceil(result.data.count / down_top.pageSize));
|
||
// totalRecords = result.data.count;
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// down_top.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getTopArt',
|
||
// data: down_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html('Top download');
|
||
// var arr = result.data.articleList;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
// Top cited / Top read / Top download点进去的文章列表
|
||
// if (top_ID != null) {
|
||
// // Top
|
||
// $('.art_side').css('display', 'none');
|
||
// $('.art_main_con').css('width', '1070px');
|
||
// $('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||
|
||
// localStorage.setItem("Journals_num", top_ID);
|
||
// $('.art_main_con').append('<div id="kkpager"></div>')
|
||
// $('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||
|
||
// var top_top = {};
|
||
// top_top.pageIndex = 1;
|
||
// top_top.pageSize = 10;
|
||
// top_top.journal_id = top_ID;
|
||
|
||
// var totalPage;//总页码
|
||
// var totalRecords;//总数据条数
|
||
// var pageNo = top_top.pageIndex;//当前页码
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getTopArticle',
|
||
// data: top_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// if (localStorage.Journals_num == '22') {
|
||
// $('.wenz_list>h4').html('推荐文章');
|
||
// } else {
|
||
// $('.wenz_list>h4').html('Highlights');
|
||
// }
|
||
|
||
// totalPage = result.data.count % top_top.pageSize == 0 ? (result.data.count / top_top.pageSize) : (Math.ceil(result.data.count / top_top.pageSize));
|
||
// totalRecords = result.data.count;
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// var arr = result.data.articles;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// if (localStorage.Journals_num == '22') {
|
||
// var c_t_a = '<button class="txt_copy">引用这篇文章<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> 复制引用信息</li><li class="Exc_2"><i class="fa fa-download"></i> 下载EndNote格式</li><li class="Exc_3"><i class="fa fa-download"></i> 下载RIS格式</li><li class="Exc_4"><i class="fa fa-download"></i> 下载BibTex格式</li><li class="Exc_5"><i class="fa fa-download"></i> 下载text格式</li><div class="triangle"></div></ul></button>'
|
||
// } else {
|
||
// 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>'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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 +
|
||
// '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// //生成分页
|
||
// //有些参数是可选的,比如lang,若不传有默认值
|
||
// kkpager.generPageHtml({
|
||
// pno: pageNo,
|
||
// //总页码
|
||
// total: totalPage,
|
||
// //总数据条数
|
||
// totalRecords: totalRecords,
|
||
// mode: 'click',//默认值是link,可选link或者click
|
||
// click: function (n) {
|
||
// this.selectPage(n);
|
||
|
||
// //除了第一页写逻辑跳转
|
||
// top_top.pageIndex = n;
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getTopArticle',
|
||
// data: top_top,
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// totalRecords = result.data.count;
|
||
|
||
// $('.wenz_list .tioashu').html(result.data.count);
|
||
|
||
// $('.wenz_list>h4').html('Highlights');
|
||
// var arr = result.data.articles;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].stage_no == '0') {
|
||
// var stage_ = ''
|
||
// } else {
|
||
// var stage_ = ' (' + arr[i].stage_no + ')'
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.goup-container').click();
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post',
|
||
// url: apiUrl + 'yuan/Article/addArticleNum',
|
||
// async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// return false;
|
||
// }, lang: {
|
||
// firstPageText: 'First page',
|
||
// firstPageTipText: 'First page',
|
||
// lastPageText: 'Last page',
|
||
// lastPageTipText: 'Last page',
|
||
// prePageText: 'Previous page',
|
||
// prePageTipText: 'Previous page',
|
||
// nextPageText: 'Next page',
|
||
// nextPageTipText: 'Next page',
|
||
// totalPageBeforeText: '',
|
||
// totalPageAfterText: '',
|
||
// currPageBeforeText: 'on page ',
|
||
// currPageAfterText: '',
|
||
// totalInfoSplitStr: ' of ',
|
||
// totalRecordsBeforeText: '',
|
||
// totalRecordsAfterText: '',
|
||
// gopageBeforeText: ' Go to page',
|
||
// gopageButtonOkText: 'Go',
|
||
// gopageAfterText: 'page',
|
||
// buttonTipBeforeText: '第',
|
||
// buttonTipAfterText: '页'
|
||
// }
|
||
// });
|
||
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
|
||
// 时间轴点进去的文章列表
|
||
// if (time_ID != null) {
|
||
// // 时间轴
|
||
// localStorage.setItem("Journals_num", J_ID);
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getJournalLineArt',
|
||
// data: {
|
||
// "journal_line_id": time_ID
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
|
||
// $('.wenz_list>h4').html(result.data.journalLine.title);
|
||
// // var doi_ = '';
|
||
// // var npp_ = '';
|
||
// var arr = result.data.articles;
|
||
// var str = "";
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (arr[i].doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'https://doi.org/' + arr[i].doi
|
||
// }
|
||
// if (arr[i].npp == '') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// var npp_ = ': ' + arr[i].npp + '. '
|
||
// }
|
||
// if (arr[i].mains == '') {
|
||
// if (arr[i].file_html == '') {
|
||
// var html_ = ''
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// } 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> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||
// }
|
||
// if (arr[i].file_pdf == '') {
|
||
// var pdf_ = ''
|
||
// } 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 ((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;"> ' +
|
||
// 'Google Scholar</a>' //搜索引用次数
|
||
// } else {
|
||
// var tong_geogle = '' //少于21天隐藏
|
||
// }
|
||
// if (arr[i].article_id == '172') {
|
||
// var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
// } else {
|
||
// var mp4_ = ''
|
||
// }
|
||
// if (arr[i].icon == '') {
|
||
// var img_i = 'img/baiss.png'
|
||
// } else {
|
||
// var img_i = imgarticleUrl + arr[i].icon
|
||
// }
|
||
|
||
// if (arr[i].other_state == 0) {
|
||
// var otStat = ''
|
||
// } else if (arr[i].other_state == 1) {
|
||
// var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
// } else if (arr[i].other_state == 2) {
|
||
// var otStat = '<span class="otStat">Retracted</span>'
|
||
// }
|
||
|
||
// if (arr[i].isShowOtime == 1) {
|
||
// if (arr[i].pub_date == '') {
|
||
// var pub_date = ''
|
||
// } else {
|
||
// var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||
// }
|
||
// } else {
|
||
// var pub_date = ''
|
||
// }
|
||
// if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||
// var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||
// } else {
|
||
// var person_img = '<img src="' + img_i + '" alt="">'
|
||
// }
|
||
|
||
// arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
|
||
// 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_ +
|
||
// '<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>' +
|
||
// tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||
// '<div>' + arr[i].abstract + '</div>';
|
||
|
||
// if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||
// var maxwidth = 500;//显示多少字符
|
||
// if (arr[i].abstract.length > maxwidth) {
|
||
// var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||
// abstNew = abstNew.substring(0, maxwidth)
|
||
// abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||
// var trad_tion = '<div>' + abstNew + '...</div>'
|
||
// } else {
|
||
// var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||
// }
|
||
// } else {
|
||
// var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||
// }
|
||
|
||
// var lr_top = ''
|
||
// 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>'
|
||
// }
|
||
|
||
// str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||
// '<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||
// '<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||
// + localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + ' (' + arr[i].stage_no + ')' + npp_ +
|
||
// '<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||
// '</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||
// + trad_tion + '<br clear="both"></div></li>'
|
||
// }
|
||
// $('.wenz_list>ul').html(str);
|
||
// $('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||
|
||
// // 点击Abstract显示隐藏
|
||
// $('.txt_zhaiyao').click(function () {
|
||
// $(this).nextAll('div').toggle();
|
||
// if ($(this).nextAll('div').css("display") == 'block') {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// }
|
||
// })
|
||
// $('.txt_html').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
// $('.txt_pdf').click(function () {
|
||
// var num = $(this).next().html();
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
// data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// num = num * 1 + 1 * 1
|
||
// }
|
||
// }
|
||
// })
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||
// success: function (result) {
|
||
// }
|
||
// });
|
||
// $(this).next().html(num);
|
||
// })
|
||
|
||
// // 点击弹窗出现 复制和下载
|
||
// $('.txt_content').css('display', 'none');
|
||
// $('.export').css('display', 'none');
|
||
// $(document).click(function (e) {
|
||
// if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||
// $('.export').hide();
|
||
// }
|
||
// })
|
||
// $('.txt_copy').click(function () {
|
||
// $('.export').css('display', 'none');
|
||
// $(this).find('.export').fadeIn(200);
|
||
// })
|
||
// $('.Exc_1').click(function () {
|
||
// var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||
// var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||
// text: function () {
|
||
// return content_;
|
||
// }
|
||
// })
|
||
// clipboard.on('success', function (e) {
|
||
// ShowSuccess("Citation information has been copied!");
|
||
// });
|
||
// })
|
||
// $('.Exc_2').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_3').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_4').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
// $('.Exc_5').click(function () {
|
||
// var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
// data: { "article_id": ecx_id },
|
||
// success: function (result) {
|
||
// var a = document.createElement('a');
|
||
// a.href = result.data.url;
|
||
// a.download = ''
|
||
// a.click();
|
||
// }
|
||
// })
|
||
// })
|
||
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
// }
|
||
|
||
|
||
}
|
||
|
||
|
||
// 时间戳格式化
|
||
|
||
function timestampToTime(str) {
|
||
//str = str * 1000
|
||
var oDate = new Date(str * 1000),
|
||
oYear = oDate.getFullYear(),
|
||
oMonth = oDate.getMonth() + 1,
|
||
oDay = oDate.getDate(),
|
||
oHour = oDate.getHours(),
|
||
oMin = oDate.getMinutes(),
|
||
oSen = oDate.getSeconds(),
|
||
oTime = oYear + '-' + getzf(oMonth) + '-' + getzf(oDay) + ' ' + getzf(oHour) + ':' +
|
||
getzf(oMin) + ':' + getzf(oSen);//最后拼接时间
|
||
return oTime;
|
||
};
|
||
//补0操作
|
||
function getzf(num) {
|
||
if (parseInt(num) < 10) {
|
||
num = '0' + num;
|
||
}
|
||
return num;
|
||
}
|
||
|
||
/* 相关引用次数 */
|
||
function getCitations(doi, a_ID) {
|
||
|
||
|
||
// var doi = '10.53388/IMD202408001';
|
||
$('.article-quote-box').css({
|
||
width: '25%',
|
||
'margin-right': '0px',
|
||
'border-right': '1px solid ' + localStorage.Journals_color,
|
||
})
|
||
$('.DimensionsBadge .quote-source').html('Dimensions Badge')
|
||
$('.SciteBadge .quote-source').html('Scite Badge (Wiley)')
|
||
$('.Crossref .quote-source').html('Crossref')
|
||
$('.Crossref').css({ 'border-right': 'none' })
|
||
$('.Wos .quote-source').html('Wos')
|
||
var list = [doi];
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleCites',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var str1 = `<div style="text-align:center;" class="WosNumber quoteNumber"> ${result.data.list && result.data.list.length > 0 ? result.data.list.length : 0}</div>`
|
||
var journalCiteStr = ""
|
||
$('.Wos .quote-content1').html(str1)
|
||
var arr = result.data.list
|
||
for (let i in arr) {
|
||
journalCiteStr += ` <div style="margin:10px 0;display:flex;"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||
<div>
|
||
<p style="display: block;
|
||
font-size: 13px;
|
||
margin-bottom: 3px;">${arr[i].article_name}</p>
|
||
|
||
<p>
|
||
<span style="color: #a2b1b6;
|
||
font-size: 13px;"> ${arr[i].journal_name},
|
||
<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>
|
||
|
||
<span style="margin-left:5px;color:#205493;">
|
||
<a
|
||
target="_blank"
|
||
href="https://doi.org/${arr[i].doi}">https://doi.org/${arr[i].doi}</a> </span></p></div>
|
||
|
||
</div>`
|
||
}
|
||
|
||
if (result.data.list && result.data.list.length > 0) {
|
||
$('.WosNumber').click(function () {
|
||
var infoStr = `Citations registered in Wos`
|
||
$('#framed_div .info-box').html(infoStr);
|
||
$('#framed_div .quote-content').html(journalCiteStr);
|
||
$('#framed_div').addClass('isWos');
|
||
|
||
if ($('#framed_div').hasClass('openCrossref')) {
|
||
|
||
if ($('#framed_div').hasClass('isCrossref')) {
|
||
|
||
$('#framed_div').removeClass('isCrossref');
|
||
$('#framed_div').removeClass('openCrossref');
|
||
setTimeout(() => {
|
||
$('#framed_div').addClass('openCrossref');
|
||
}, 100)
|
||
|
||
} else {
|
||
$('#framed_div').removeClass('openCrossref');
|
||
$('#framed_div').removeClass('isWos');
|
||
}
|
||
|
||
} else {
|
||
$('#framed_div').addClass('isWos');
|
||
$('#framed_div').addClass('openCrossref');
|
||
}
|
||
|
||
|
||
})
|
||
}
|
||
|
||
|
||
}
|
||
}
|
||
})
|
||
//Dimensions Badge
|
||
$.ajax({
|
||
type: 'get',
|
||
url: 'https://metrics-api.dimensions.ai/doi/' + doi,//正式环境
|
||
success: function (result) {
|
||
console.log('result at line 212:', result)
|
||
// var str = `<span class="__dimensions_badge_embed__" data-doi="${doi}" data-legend="always"></span>`
|
||
$('.DimensionsBadge a').attr('href', 'https://badge.dimensions.ai/details/doi/' + doi)
|
||
var str = `<div style="text-align:center;" class="quoteNumber"> ${result.times_cited}</div>`
|
||
$('.DimensionsBadge .quote-content').html(str)
|
||
},
|
||
error: function (result) {
|
||
console.log('result at line 212:', result)
|
||
// var str = `<span class="__dimensions_badge_embed__" data-doi="${doi}" data-legend="always"></span>`
|
||
|
||
var str = `<div style="text-align:center;" class="quoteNumber"> 0</div>`
|
||
$('.DimensionsBadge .quote-content').html(str)
|
||
}
|
||
})
|
||
//Scite Badge (Wiley)
|
||
$.ajax({
|
||
type: 'post',
|
||
url: 'https://api.scite.ai/tallies',//正式环境
|
||
contentType: "application/json",
|
||
dataType: "json",
|
||
data: JSON.stringify(list),
|
||
success: function (result) {
|
||
console.log('result at line 212:', result)
|
||
for (let i in result.tallies) {
|
||
$('.SciteBadge a').attr('href', 'https://scite.ai/reports/' + i)
|
||
var str1 = ` <div style="text-align:center;" class="crossrefNumber quoteNumber"> ${result.tallies[i]['citingPublications']}</div>`
|
||
}
|
||
$('.SciteBadge .quote-content1').html(str1)
|
||
},
|
||
error: function (result) {
|
||
console.log('result at line 212:', result)
|
||
var str1 = ` <div style="text-align:center;" class="crossrefNumber quoteNumber"> 0</div>`
|
||
|
||
$('.SciteBadge .quote-content1').html(str1)
|
||
}
|
||
})
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleDetailCites',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var str1 = `<div style="text-align:center;" class="crossrefNumber quoteNumber"> ${result.data && result.data.length > 0 ? result.data.length : 0}</div>`
|
||
var journalCiteStr = ""
|
||
$('.Crossref .quote-content1').html(str1)
|
||
var arr = result.data
|
||
for (let i in arr) {
|
||
journalCiteStr += ` <div style="margin:10px 0;display:flex;"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||
<div>
|
||
<p style="display: block;
|
||
font-size: 13px;
|
||
margin-bottom: 3px;">${arr[i].article_title}</p>
|
||
|
||
<p>
|
||
<span style="color: #a2b1b6;
|
||
font-size: 13px;"> ${arr[i].journal_title},
|
||
<span style="margin-left:5px">
|
||
${arr[i].year}</span></span>
|
||
|
||
<span style="margin-left:5px;color:#205493;">
|
||
<a
|
||
target="_blank"
|
||
href="https://doi.org/${arr[i].doi}">https://doi.org/${arr[i].doi}</a> </span></p></div>
|
||
|
||
</div>`
|
||
}
|
||
|
||
if (result.data && result.data.length > 0) {
|
||
|
||
$('.crossrefNumber').click(function () {
|
||
var infoStr = `Citations registered in CrossRef`
|
||
$('#framed_div .info-box').html(infoStr);
|
||
$('#framed_div .quote-content').html(journalCiteStr); $('#framed_div').addClass('isCrossref');
|
||
if ($('#framed_div').hasClass('openCrossref')) {
|
||
|
||
if ($('#framed_div').hasClass('isWos')) {
|
||
|
||
$('#framed_div').removeClass('isWos');
|
||
$('#framed_div').removeClass('openCrossref');
|
||
$('#framed_div').addClass('isCrossref');
|
||
setTimeout(() => {
|
||
$('#framed_div').addClass('openCrossref');
|
||
}, 100)
|
||
} else {
|
||
$('#framed_div').removeClass('openCrossref');
|
||
$('#framed_div').removeClass('isCrossref');
|
||
}
|
||
|
||
} else {
|
||
$('#framed_div').addClass('isCrossref');
|
||
$('#framed_div').addClass('openCrossref');
|
||
}
|
||
})
|
||
}
|
||
|
||
|
||
}
|
||
}
|
||
})
|
||
|
||
|
||
}
|
||
|
||
// 文章内容
|
||
function article_con() {
|
||
|
||
|
||
|
||
// 获取地址栏信息
|
||
function getQueryString(name) {
|
||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||
var r = window.location.search.substr(1).match(reg);
|
||
if (r != null) return unescape(r[2]);
|
||
return null;
|
||
}
|
||
|
||
var a_ID = getQueryString('a_id'); //文章
|
||
var htm_ID = getQueryString('s_htm'); //目前显示html
|
||
const isPre = getQueryString('preview');
|
||
|
||
// 增加访问次数
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
// ShowDanger("error!");
|
||
}
|
||
});
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
data: { "article_id": a_ID, "type": 'abs' },
|
||
success: function (result) {
|
||
}
|
||
})
|
||
|
||
if (isPre) {
|
||
$('#top_bar .top').css('display', 'none')
|
||
|
||
$('.wen_rong .content-box .conthtmn').html(`
|
||
<div class="" style="display: flex;align-items: center;justify-content: center;">接收到来自父页面的数据:
|
||
<div class="loader-01" style="display: flex;align-items: center;justify-content: space-around;"></div></div>`
|
||
);
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getHtmlByPAID',
|
||
data: {
|
||
"p_article_id": a_ID
|
||
},
|
||
success: function (res) {
|
||
if (res.code == 0) {
|
||
var arr = res.data.list;
|
||
initArticleHtmlFun(arr, res, 2)
|
||
|
||
|
||
}
|
||
},
|
||
error: function () {
|
||
// ShowDanger("error!");
|
||
}
|
||
|
||
})
|
||
// window.addEventListener('message', function (event) {
|
||
// // if (event.origin !== 'https://submission.tmrjournals.com') return;
|
||
// const result = event.data;
|
||
// console.log('接收到来自父页面的数据:', result);
|
||
// if (result) {
|
||
// var j_artc = { ...result }
|
||
// // 文章路径基本信息
|
||
// var j_our =
|
||
// {
|
||
// title: result.journal_title,
|
||
// journal_id: result.journal_id,
|
||
// }
|
||
|
||
// var j_info = {};
|
||
// $('.wen_jian .left>span a').html(j_our.title);
|
||
|
||
// localStorage.setItem("Journals_num", j_our.journal_id);
|
||
// if (j_artc.doi == '') {
|
||
// var doi_ = ''
|
||
// } else {
|
||
// var doi_ = 'DOI:' + j_artc.doi
|
||
// }
|
||
|
||
// var stage_ = ''
|
||
|
||
// if (j_artc.npp == '' || j_artc.npp == ' ') {
|
||
// var npp_ = ''
|
||
// } else {
|
||
// // if (j_info.stage_pagename == 'pp.') {
|
||
// // var npp_ = j_artc.npp + ' '
|
||
// // } else {
|
||
// var npp_ = j_artc.npp + ' '
|
||
// // }
|
||
// }
|
||
|
||
// var our_time = ''
|
||
// $('.wen_jian .left>span').append(our_time);
|
||
// $('.wen_jian .left>h4').html(j_artc.title);
|
||
|
||
|
||
// // 文章基本作者机构
|
||
// var str = '';
|
||
// var j_authior = j_artc.authors;
|
||
// var stra = '';
|
||
// var Corr_Auth = '';
|
||
// var Corr_Emai = '';
|
||
// var rep = '';
|
||
// var rep_pd = '';
|
||
// var ORC_ID = '';
|
||
// var report_num = 0;
|
||
|
||
// for (var i = 0; i < j_authior.length; i++) {
|
||
// rep = '';
|
||
// var mes = '';
|
||
// if (j_authior[i].is_first == '1') {
|
||
// rep = '#'
|
||
// rep_pd += '#'
|
||
// }
|
||
// if (j_authior[i].is_report == '1') {
|
||
// rep += '*'
|
||
// mes = ' (<a href="mailto:' + j_authior[i].email + '."><img src="img/email.png"></a>) '
|
||
// Corr_Auth += ' ' + j_authior[i].author_name + ',';
|
||
// Corr_Emai += ' ' + j_authior[i].email + ',';
|
||
// report_num += 1;
|
||
// }
|
||
// if (j_authior[i].orcid == '') {
|
||
// ORC_ID = ''
|
||
// } else {
|
||
// ORC_ID = '<a href="https://orcid.org/' + j_authior[i].orcid + '" target="_blank"><img src="img/or_id.png" alt="" style="width: 15px;margin-left: 3px;"></a>'
|
||
// }
|
||
// if (i == j_authior.length - 1) {
|
||
// stra += j_authior[i].author_name + '<sup>' + j_authior[i].ors + rep + '</sup>' + ORC_ID + mes
|
||
// } else {
|
||
// stra += j_authior[i].author_name + '<sup>' + j_authior[i].ors + rep + '</sup>' + ORC_ID + mes + ', '
|
||
// }
|
||
// }
|
||
|
||
// str += stra + '<br/>';
|
||
|
||
// var j_organ = j_authior.filter((e) => e.organs);
|
||
// var strg = '';
|
||
// for (var i = 0; i < j_organ.length; i++) {
|
||
// strg += '<sup>' + j_organ[i].alias + '</sup> ' + j_organ[i].organ_name + '<br/>'
|
||
// }
|
||
// str += strg;
|
||
|
||
// $('.wen_jian .left>div.zuo_zhe').html(str);
|
||
|
||
// if (rep_pd == "#") {
|
||
// $('.wen_jian .left>div').each(function () {
|
||
// $(this).html($(this).html().split("#").join(""));
|
||
// });
|
||
// }
|
||
|
||
// if (report_num != 1) {
|
||
// $('.coau b').html('Corresponding authors:');
|
||
// }
|
||
|
||
// if (Jour_num == 1) {
|
||
// j_artc.abstract = j_artc.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
// }
|
||
|
||
// // 文章内容
|
||
// Corr_Auth = Corr_Auth.replace(/,$/, "")
|
||
// Corr_Emai = Corr_Emai.replace(/,$/, "")
|
||
// $('.wen_rong .content-box .contercon .abst').html(j_artc.abstract);
|
||
// $('.wen_rong .content-box .contercon .keyw span').html(j_artc.keywords);
|
||
// $('.wen_rong .content-box .contercon .fund span').html(j_artc.fund);
|
||
// $('.wen_rong .content-box .contercon .coau span').html(Corr_Auth);
|
||
// $('.wen_rong .content-box .contercon .emai span').html(Corr_Emai);
|
||
// $('.wen_rong .content-box .contercon .cite span').html(result.data.cite);
|
||
// $('.wen_rong .content-box .contercon .time span').html(j_artc.pub_date);
|
||
// $('.wen_rong .content-box .contercon .url span').html('<a target="_blank" href="https://doi.org/' + j_artc.doi + '">https://doi.org/' + j_artc.doi + '</a>');
|
||
|
||
|
||
|
||
|
||
// if (j_artc.ordoi == '') {
|
||
// $('.wen_rong .content-box .contercon .udr').css('display', 'none')
|
||
// } else {
|
||
// $('.wen_rong .content-box .contercon .udr span').html('<a target="_blank" href="https://doi.org/' + j_artc.ordoi + '">https://doi.org/' + j_artc.ordoi + '</a>');
|
||
// }
|
||
|
||
// if (j_artc.abstract == '') {
|
||
// $('.wen_rong .content-box .contercon .abst').css('display', 'none')
|
||
// }
|
||
// if (j_artc.keywords == '') {
|
||
// $('.wen_rong .content-box .contercon .keyw').css('display', 'none')
|
||
// }
|
||
// if (j_artc.fund == '') {
|
||
// $('.wen_rong .content-box .contercon .fund').css('display', 'none')
|
||
// }
|
||
// if (Corr_Auth == '') {
|
||
// $('.wen_rong .content-box .contercon .coau').css('display', 'none')
|
||
// }
|
||
// if (Corr_Emai == '') {
|
||
// $('.wen_rong .content-box .contercon .emai').css('display', 'none')
|
||
// }
|
||
// if (j_artc.pub_date == '') {
|
||
// $('.wen_rong .content-box .contercon .time').css('display', 'none')
|
||
// }
|
||
// if (result.data.cite == '') {
|
||
// $('.wen_rong .content-box .contercon .cite').css('display', 'none')
|
||
// }
|
||
|
||
// //$('.wen_rong .content-box .conterad h1').html(j_artc.tradition_tag);
|
||
// //$('.wen_rong .content-box .conterad p').html(j_artc.tradition);
|
||
// //$('.wen_rong #tablist .tarad').html(j_artc.tradition_tag);
|
||
// $('.wen_rong .content-box .contemho').html(j_artc.mhoo);
|
||
|
||
|
||
// if (j_artc.mhoo == '' || j_artc.mhoo == null) {
|
||
// $('.wen_rong #tablist .tarmho').css('display', 'none');
|
||
// $('.wen_rong .content-box .contemho').css('display', 'none');
|
||
// }
|
||
|
||
|
||
// // 首先显示html
|
||
// if (htm_ID != null) {
|
||
// $("#tablist li.tarhtmn").click()
|
||
|
||
|
||
|
||
// }
|
||
|
||
|
||
|
||
// $('title').before('<meta name="citation_title" content="' + j_artc.old_title + '">' +
|
||
// '<meta name="citation_publication_date" content="' + j_artc.publication + '">' +
|
||
// '<meta name="citation_journal_title" content="' + j_our.title + '">' +
|
||
// '<meta name="citation_volume" content="' + j_info.stage_vol + '">' +
|
||
// '<meta name="citation_issue" content="' + j_info.stage_no + '">' +
|
||
// '<meta name="citation_pdf_url" content="' + 'https://www.tmrjournals.com' + imgFileUrl + 'articlePDF/' + j_artc.file_pdf + '">')
|
||
// for (var i = 0; i < j_authior.length; i++) {
|
||
// $('title').before('<meta name="citation_author" content="' + j_authior[i].author_name + '">')
|
||
// }
|
||
// if (j_artc.first_page != undefined) {
|
||
// $('title').before('<meta name="citation_firstpage" content="' + j_artc.first_page + '">')
|
||
// }
|
||
// if (j_artc.last_page != undefined) {
|
||
// $('title').before('<meta name="citation_lastpage" content="' + j_artc.last_page + '">')
|
||
// }
|
||
|
||
|
||
|
||
// if (Jour_num != '1') {
|
||
// $('.wen_rong .right .tmr_doaj').css('display', 'none')
|
||
// } else {
|
||
// $('.wen_rong .right .tmr_doaj').css('display', 'none')
|
||
// }
|
||
|
||
// if (Jour_num == '22') {
|
||
// $('.wen_jian .right h5').html('引用:');
|
||
// $('.wen_jian .right .export .Exc_2').html('<i class="fa fa-download"></i> 下载EndNote格式');
|
||
// $('.wen_jian .right .export .Exc_3').html('<i class="fa fa-download"></i> 下载RIS格式');
|
||
// $('.wen_jian .right .export .Exc_4').html('<i class="fa fa-download"></i> 下载BibTex格式');
|
||
// $('.wen_jian .right .export .Exc_5').html('<i class="fa fa-download"></i> 下载text格式');
|
||
// $('.wenzhang .wen_rong .right>p').html('本作品根据“知识共享”国际许可协议4.0进行授权。');
|
||
// $('.keyw b').html('关键字:')
|
||
// $('.fund b').html('基金项目:')
|
||
// $('.coau b').html('通讯作者:')
|
||
// $('.emai b').html('邮箱:')
|
||
// $('.cite b').html('引用:')
|
||
// $('.time b').html('出版时间:')
|
||
// $('.url b').html('链接:')
|
||
// $('#tablist li').html('')
|
||
// $('#tablist .tabin').html('摘要')
|
||
// $('.links_').css('font-size', '20px')
|
||
// $('.links_ img').css({ 'width': '20px', 'height': '22px' })
|
||
// $('.right p').css('font-family', 'Times New Roman')
|
||
// $('.cite span').css('font-family', 'Times New Roman')
|
||
// }
|
||
|
||
|
||
// }
|
||
|
||
|
||
|
||
// });
|
||
|
||
// 新 HTML
|
||
|
||
|
||
} else {
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleDetail',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
$('.wenzhang .wen_rong .left').css({
|
||
'background-color': '#f4fafd'
|
||
})
|
||
$('.wenzhang .wen_rong .left .rong_box').css({
|
||
'background-color': '#fff',
|
||
'margin-top': '0px'
|
||
})
|
||
$('.wenzhang .wen_rong .left .mb_aform').css({
|
||
'background-color': '#fff'
|
||
})
|
||
if (result.code == 0) {
|
||
var html_type = result.data.articleInfo.html_type
|
||
var has_html = result.data.articleInfo.has_html
|
||
if (has_html == 0) {
|
||
$('.wen_rong #tablist .tarhtmn').css('display', 'none');
|
||
$('.wen_rong #tablist .tarfihml').css('display', 'none');
|
||
$('.wen_rong .content-box .conthtmn').css('display', 'none');
|
||
}
|
||
|
||
// 文章Cite this article
|
||
var j_artc = result.data.articleInfo
|
||
|
||
$('.wen_jian .right>p').html(result.data.cite);
|
||
|
||
if ((Math.round(Date.parse(new Date()) / 1000) - j_artc.ctime) / 86400 >= 21) {
|
||
$('.wen_jian .right>p').after('<a href="https://scholar.google.com/scholar?&q=' + j_artc.title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '" target="_blank" style="color:#006699;margin-left: 10px;font-weight: 600;">Google Scholar</a>');
|
||
}
|
||
|
||
var lnk_ = '';
|
||
if (j_artc.file_pdf != '') {
|
||
lnk_ += '<img src="img/link_3.jpg" width="14" height="16" style="vertical-align: middle;"><a href="' + imgFileUrl + 'articlePDF/' + j_artc.file_pdf + '" target="_blank" class="txt_pdf"> PDF</a> '
|
||
}
|
||
|
||
if (j_artc.file_html != '') {
|
||
lnk_ += ' <img src="img/link_2.png" width="14" height="16" style="vertical-align: middle;"><a href="' + imgFileUrl + 'articleHTML/' + j_artc.file_html + '" target="_blank" class="txt_html"> HTML</a>'
|
||
}
|
||
|
||
if (j_artc.article_id == '172') {
|
||
lnk_ += ' <a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||
}
|
||
|
||
$('.wen_jian .right>.links_').html(lnk_);
|
||
if (Jour_num != 13) {
|
||
//获取文章引用
|
||
getCitations(j_artc.doi, a_ID);
|
||
// 点击增加数字
|
||
$('.txt_html').click(function () {
|
||
var num = $(this).next().html();
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
data: { "article_id": a_ID, "type": 'html' },
|
||
success: function (result) {
|
||
}
|
||
})
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||
success: function (result) {
|
||
}
|
||
});
|
||
$(this).next().html(num);
|
||
})
|
||
$('.txt_pdf').click(function () {
|
||
var num = $(this).next().html();
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
data: { "article_id": a_ID, "type": 'pdf' },
|
||
success: function (result) {
|
||
}
|
||
})
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||
success: function (result) {
|
||
}
|
||
});
|
||
$(this).next().html(num);
|
||
})
|
||
} else {
|
||
$('.article-quote').css('display', 'none');
|
||
$('.mb_aform').css('display', 'none');
|
||
$('.pos_ter').css('display', 'none');
|
||
$('.footer').css('display', 'none');
|
||
$('.wen_rong .right').css('display', 'none');
|
||
$('.wenzhang .wen_rong .left').css('width', '100%');
|
||
}
|
||
|
||
|
||
|
||
var NotTeX_ = ''
|
||
// if(j_artc.endnote!=''){
|
||
// NotTeX_+='<a href="'+apiUrl+'public/endNote/'+j_artc.endnote+'" style="color: #7a2702;" target="_blank">EndNote<span style="color: #444;">(RIS)</span></a> '
|
||
// }
|
||
if (j_artc.bibtex != '') {
|
||
NotTeX_ += '<a href="' + apiUrl + 'public/bibTex/' + j_artc.bibtex + '" style="color: #7a2702;" target="_blank">BibTeX</a>'
|
||
}
|
||
$('.wen_jian .right>.Note_TeX').html(NotTeX_);
|
||
|
||
|
||
// 点击复制和下载
|
||
$('.Exc_2').click(function () {
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||
data: { "article_id": a_ID },
|
||
success: function (result) {
|
||
var a = document.createElement('a');
|
||
a.href = result.data.url;
|
||
a.download = ''
|
||
a.click();
|
||
}
|
||
})
|
||
})
|
||
$('.Exc_3').click(function () {
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||
data: { "article_id": a_ID },
|
||
success: function (result) {
|
||
var a = document.createElement('a');
|
||
a.href = result.data.url;
|
||
a.download = ''
|
||
a.click();
|
||
}
|
||
})
|
||
})
|
||
$('.Exc_4').click(function () {
|
||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||
data: { "article_id": a_ID },
|
||
success: function (result) {
|
||
var a = document.createElement('a');
|
||
a.href = result.data.url;
|
||
a.download = ''
|
||
a.click();
|
||
}
|
||
})
|
||
})
|
||
$('.Exc_5').click(function () {
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||
data: { "article_id": a_ID },
|
||
success: function (result) {
|
||
var a = document.createElement('a');
|
||
a.href = result.data.url;
|
||
a.download = ''
|
||
a.click();
|
||
}
|
||
})
|
||
})
|
||
|
||
|
||
// 文章路径基本信息
|
||
var j_our = result.data.journalInfo;
|
||
var j_info = result.data.stageInfo;
|
||
$('.wen_jian .left>span a').html(j_our.title);
|
||
$('.wen_jian .left>span a').attr('href', '/' + j_our.usx);
|
||
localStorage.setItem("Journals_num", j_our.journal_id);
|
||
if (j_artc.doi == '') {
|
||
var doi_ = ''
|
||
} else {
|
||
var doi_ = 'DOI:' + j_artc.doi
|
||
}
|
||
if (j_info.stage_no == '0') {
|
||
var stage_ = ''
|
||
} else {
|
||
var stage_ = 'Issue (' + j_info.stage_no + '): '
|
||
}
|
||
if (j_artc.npp == '' || j_artc.npp == ' ') {
|
||
var npp_ = ''
|
||
} else {
|
||
if (j_info.stage_pagename == 'pp.') {
|
||
var npp_ = j_artc.npp + ' '
|
||
} else {
|
||
var npp_ = j_info.stage_pagename + j_artc.npp + ' '
|
||
}
|
||
}
|
||
|
||
if (localStorage.Journals_title == '经典中医研究') {
|
||
if (j_info.stage_vol == '1') {
|
||
j_info.stage_vol = '一'
|
||
}
|
||
if (j_info.stage_vol == '2') {
|
||
j_info.stage_vol = '二'
|
||
}
|
||
if (j_info.stage_vol == '3') {
|
||
j_info.stage_vol = '三'
|
||
}
|
||
if (j_info.stage_vol == '4') {
|
||
j_info.stage_vol = '四'
|
||
}
|
||
if (j_info.stage_vol == '5') {
|
||
j_info.stage_vol = '五'
|
||
}
|
||
if (j_info.stage_vol == '6') {
|
||
j_info.stage_vol = '六'
|
||
}
|
||
var our_time = ' | ' + j_info.stage_year + '年第' + j_info.stage_vol + '卷 | 第' + j_info.stage_no + '期:' + npp_ + doi_;
|
||
} else {
|
||
var our_time = ' | ' + j_info.stage_year + ', Vol. ' + j_info.stage_vol + ' | ' + stage_ + npp_ + doi_;
|
||
}
|
||
|
||
$('.wen_jian .left>span').append(our_time);
|
||
|
||
if (j_artc.other_state == 0) {
|
||
var otStat = ''
|
||
} else if (j_artc.other_state == 1) {
|
||
var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||
} else if (j_artc.other_state == 2) {
|
||
var otStat = '<span class="otStat">Retracted</span>'
|
||
}
|
||
|
||
$('.wen_jian .left>h4').html(otStat + j_artc.title);
|
||
|
||
|
||
// 文章基本作者机构
|
||
var str = '';
|
||
var j_authior = result.data.author.authors;
|
||
var stra = '';
|
||
var Corr_Auth = '';
|
||
var Corr_Emai = '';
|
||
var rep = '';
|
||
var rep_pd = '';
|
||
var ORC_ID = '';
|
||
var report_num = 0;
|
||
|
||
for (var i = 0; i < j_authior.length; i++) {
|
||
rep = '';
|
||
var mes = '';
|
||
if (j_authior[i].is_first == '1') {
|
||
rep = '#'
|
||
rep_pd += '#'
|
||
}
|
||
if (j_authior[i].is_report == '1') {
|
||
rep += '*'
|
||
mes = ' (<a href="mailto:' + j_authior[i].email + '."><img src="img/email.png"></a>) '
|
||
Corr_Auth += ' ' + j_authior[i].author_name + ',';
|
||
Corr_Emai += ' ' + j_authior[i].email + ',';
|
||
report_num += 1;
|
||
}
|
||
if (j_authior[i].orcid == '') {
|
||
ORC_ID = ''
|
||
} else {
|
||
ORC_ID = '<a href="https://orcid.org/' + j_authior[i].orcid + '" target="_blank"><img src="img/or_id.png" alt="" style="width: 15px;margin-left: 3px;"></a>'
|
||
}
|
||
if (i == j_authior.length - 1) {
|
||
stra += j_authior[i].author_name + '<sup>' + j_authior[i].ors + rep + '</sup>' + ORC_ID + mes
|
||
} else {
|
||
stra += j_authior[i].author_name + '<sup>' + j_authior[i].ors + rep + '</sup>' + ORC_ID + mes + ', '
|
||
}
|
||
}
|
||
|
||
str += stra + '<br/>';
|
||
|
||
var j_organ = result.data.author.organs;
|
||
var strg = '';
|
||
for (var i = 0; i < j_organ.length; i++) {
|
||
strg += '<sup>' + j_organ[i].alias + '</sup> ' + j_organ[i].organ_name + '<br/>'
|
||
}
|
||
str += strg;
|
||
|
||
$('.wen_jian .left>div.zuo_zhe').html(str);
|
||
$('.wen_jian .left>div.zuo_zhe>sup').css({
|
||
color: commonSupColor,
|
||
});
|
||
|
||
if (rep_pd == "#") {
|
||
$('.wen_jian .left>div').each(function () {
|
||
$(this).html($(this).html().split("#").join(""));
|
||
});
|
||
}
|
||
|
||
if (report_num != 1) {
|
||
$('.coau b').html('Corresponding authors:');
|
||
}
|
||
|
||
if (Jour_num == 1) {
|
||
j_artc.abstract = j_artc.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||
}
|
||
|
||
// 文章内容
|
||
Corr_Auth = Corr_Auth.replace(/,$/, "")
|
||
Corr_Emai = Corr_Emai.replace(/,$/, "")
|
||
|
||
$('.wen_rong .content-box .contercon .abst').html(j_artc.abstract);
|
||
let strongElements = document.querySelectorAll('.wen_rong .content-box .contercon .abst strong');
|
||
|
||
// 遍历每个 <strong> 标签
|
||
strongElements.forEach(function (element) {
|
||
// 检查 <strong> 标签内的文本内容是否为 "Background:", "Methods:", "Results:", "Conclusion:"
|
||
|
||
if (element.textContent.includes("Background:") ||
|
||
element.textContent.includes("Methods:") ||
|
||
element.textContent.includes("Method:") ||
|
||
element.textContent.includes("Results:") ||
|
||
element.textContent.includes("Result:") ||
|
||
element.textContent.includes("Conclusion:") ||
|
||
element.textContent.includes("Conclusions:") ||
|
||
element.textContent.includes("Background") ||
|
||
element.textContent.includes("Methods") ||
|
||
element.textContent.includes("Method") ||
|
||
element.textContent.includes("Results") ||
|
||
element.textContent.includes("Result") ||
|
||
element.textContent.includes("Conclusion") ||
|
||
element.textContent.includes("Conclusions")
|
||
|
||
|
||
|
||
) {
|
||
// 修改该 <strong> 标签的样式,改变颜色
|
||
element.style.color = commonSupColor; // 设置颜色为黑色(你可以修改为其他颜色)
|
||
}
|
||
});
|
||
$('.wen_rong .content-box .contercon .keyw span').html(j_artc.keywords);
|
||
$('.wen_rong .content-box .contercon .fund span').html(j_artc.fund);
|
||
$('.wen_rong .content-box .contercon .coau span').html(Corr_Auth);
|
||
$('.wen_rong .content-box .contercon .emai span').html(Corr_Emai);
|
||
$('.wen_rong .content-box .contercon .cite span').html(result.data.cite);
|
||
$('.wen_rong .content-box .contercon .time span').html(j_artc.pub_date);
|
||
$('.wen_rong .content-box .contercon .url span').html('<a target="_blank" href="https://doi.org/' + j_artc.doi + '">https://doi.org/' + j_artc.doi + '</a>');
|
||
|
||
|
||
// if (Jour_num == '1' && j_artc.article_id <= '1540') {
|
||
// $('.wen_rong .content-box .contercon .udr span').html('<a target="_blank" href="https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + '">https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + '</a>');
|
||
// } else if (Jour_num == '14' && j_artc.article_id <= '1540') {
|
||
// $('.wen_rong .content-box .contercon .udr span').html('<a target="_blank" href="https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + '">https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + '</a>');
|
||
// } else {
|
||
// $('.wen_rong .content-box .contercon .udr').css('display', 'none')
|
||
// }
|
||
|
||
if (j_artc.ordoi == '') {
|
||
$('.wen_rong .content-box .contercon .udr').css('display', 'none')
|
||
} else {
|
||
$('.wen_rong .content-box .contercon .udr span').html('<a target="_blank" href="https://doi.org/' + j_artc.ordoi + '">https://doi.org/' + j_artc.ordoi + '</a>');
|
||
}
|
||
|
||
if (j_artc.abstract == '') {
|
||
$('.wen_rong .content-box .contercon .abst').css('display', 'none')
|
||
}
|
||
if (j_artc.keywords == '') {
|
||
$('.wen_rong .content-box .contercon .keyw').css('display', 'none')
|
||
}
|
||
if (j_artc.fund == '') {
|
||
$('.wen_rong .content-box .contercon .fund').css('display', 'none')
|
||
}
|
||
if (Corr_Auth == '') {
|
||
$('.wen_rong .content-box .contercon .coau').css('display', 'none')
|
||
}
|
||
if (Corr_Emai == '') {
|
||
$('.wen_rong .content-box .contercon .emai').css('display', 'none')
|
||
}
|
||
if (j_artc.pub_date == '') {
|
||
$('.wen_rong .content-box .contercon .time').css('display', 'none')
|
||
}
|
||
if (result.data.cite == '') {
|
||
$('.wen_rong .content-box .contercon .cite').css('display', 'none')
|
||
}
|
||
|
||
//$('.wen_rong .content-box .conterad h1').html(j_artc.tradition_tag);
|
||
//$('.wen_rong .content-box .conterad p').html(j_artc.tradition);
|
||
//$('.wen_rong #tablist .tarad').html(j_artc.tradition_tag);
|
||
$('.wen_rong .content-box .contemho').html(j_artc.mhoo);
|
||
|
||
// 新的HTML
|
||
|
||
if (html_type == 0) {
|
||
// 原 HTML
|
||
$('.wen_rong .content-box .conthtmn').html(`
|
||
<div class="" style="display: flex;align-items: center;justify-content: center;">
|
||
<div class="loader-01" style="display: flex;align-items: center;justify-content: space-around;"></div></div>`
|
||
);
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleDetailHtml',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
|
||
var arr = result.data.mains;
|
||
var str = '';
|
||
for (var i = 0; i < arr.length; i++) {
|
||
let sectionId = 'section-' + i; // 生成唯一的 ID
|
||
if (arr[i].width == 0) {
|
||
if (arr[i].is_title == 1) {
|
||
if (arr[i].content.indexOf("<p>") >= 0) {
|
||
str += `<div class="Ptitle pMain" id="${sectionId}">${arr[i].content}</div>`
|
||
} else {
|
||
str += `<div class="Ptitle pMain" id="${sectionId}"><p>${arr[i].content}</p></div>`
|
||
}
|
||
} else {
|
||
if (arr[i].content.indexOf("<p>") >= 0) {
|
||
str += arr[i].content.replace("<p>", `<p id="${sectionId}" class="pMain">`);
|
||
} else {
|
||
str += `<p id="${sectionId}" class="pMain">${arr[i].content}</p>`
|
||
}
|
||
}
|
||
} else {
|
||
var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + arr[i].content;
|
||
var fun = "picPreview('" + picsrc + "');"
|
||
// console.log(fun)
|
||
str += `<div class='imgHnkl' id="${sectionId}">` + "<img class='mainPicItem' onclick=" + fun + " src='https://submission.tmrjournals.com/public/mainimg/"
|
||
+ arr[i].content + "' width='" + arr[i].width + `"'/><p class='' style='font-size: 14px;font-family: 'Charis SIL';'>` + arr[i].note + "</p></div>"
|
||
}
|
||
}
|
||
str = `<div style="margin-left:300px;">${str}</div>`
|
||
$('.wen_rong .content-box .conthtmn').html(str);
|
||
|
||
|
||
// 引用
|
||
if (result.data.refers.length > 0) { // 如果有引用数据
|
||
var refs = '';
|
||
var xuhao = 0;
|
||
for (var rr = 0; rr < result.data.refers.length; rr++) {
|
||
// 如果格式不正确,或者信息不全
|
||
let item = '';
|
||
if (result.data.refers[rr].refer_type == 'journal' && result.data.refers[rr].doilink != '') {
|
||
// journal 类型
|
||
xuhao++;
|
||
item = "<div><p>" + xuhao + '. ' + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". <i>" + result.data.refers[rr].joura + ". </i>" + result.data.refers[rr].dateno + ".";
|
||
// 在 "Available at:" 之前插入 <br/> 标签
|
||
item += "<br/><a class='refsLink' href='" + result.data.refers[rr].doilink + "' target='_blank' style='color:#006699; word-wrap:break-word;'>Available at: " + result.data.refers[rr].doilink + "</a></p></div>";
|
||
refs += item;
|
||
} else if (result.data.refers[rr].refer_type == 'book' && result.data.refers[rr].isbn != '') {
|
||
// book 类型
|
||
xuhao++;
|
||
item = "<div><p>" + xuhao + '. ' + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].dateno + ".";
|
||
// 在 "Available at:" 之前插入 <br/> 标签
|
||
item += "<br/><a target='_blank' style='color:#006699; word-wrap:break-word;' href='" + result.data.refers[rr].isbn + "'>ISBN: " + result.data.refers[rr].isbn + "</a></p></div>";
|
||
refs += item;
|
||
} else if (result.data.refers[rr].refer_type == 'other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15) {
|
||
// other 类型,检查 refer_frag 中是否有 "Available at:"
|
||
xuhao++;
|
||
item = "<div><p data-other='1'>" + xuhao + '. ';
|
||
// 如果 refer_frag 包含 "Available at:",在其前面插入 <br/> 标签
|
||
if (result.data.refers[rr].refer_frag.indexOf('Available at:') !== -1) {
|
||
item += result.data.refers[rr].refer_frag.replace('Available at:', '<br/>Available at:');
|
||
} else {
|
||
item += result.data.refers[rr].refer_frag;
|
||
}
|
||
item += ". </p></div>";
|
||
refs += item;
|
||
} else {
|
||
continue;
|
||
}
|
||
}
|
||
// 将生成的所有引用内容插入到页面中
|
||
$('.wen_rong .content-box .conthtmn').append('<div id="ArticleRef" style="margin-left:300px;" class="ArticleRef"><p id="References" class="Ptitle "><b>References</b></p>' + refs + '</div>');
|
||
}
|
||
|
||
initArticleHtml(arr, result.data.refers, html_type)
|
||
}
|
||
},
|
||
error: function () {
|
||
// ShowDanger("error!");
|
||
}
|
||
|
||
})
|
||
} else if (html_type == 1) {
|
||
//外链
|
||
$('.wen_rong #tablist .tarhtmn').css('display', 'none');
|
||
$('.wen_rong .content-box .conthtmn').css('display', 'none');
|
||
|
||
} else if (html_type == 2) {
|
||
// 新 HTML
|
||
$('.wen_rong .content-box .conthtmn').html(`
|
||
<div class="" style="display: flex;align-items: center;justify-content: center;">
|
||
<div class="loader-01" style="display: flex;align-items: center;justify-content: space-around;"></div></div>`
|
||
);
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleDetailHtmlFor2',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
|
||
var arr = result.data.mains;
|
||
initArticleHtmlFun(arr, result, html_type)
|
||
|
||
}
|
||
},
|
||
error: function () {
|
||
// ShowDanger("error!");
|
||
}
|
||
|
||
})
|
||
}
|
||
|
||
|
||
// 稿件跟踪
|
||
// 图标------------
|
||
var detailIcon = ''
|
||
var lis = ''
|
||
|
||
if (result.data.track && result.data.track.length > 0) {
|
||
// console.log(result.data.track.length,33)
|
||
// $('.wen_rong #tablist .tarrecord').css('display', 'block');
|
||
// $('.wen_rong .content-box .conterecord').text(333)
|
||
for (var tt = 0; tt < result.data.track.length; tt++) {
|
||
var ttypeName = ''
|
||
var li = ""
|
||
var ttime = ''
|
||
var typeClass = ''
|
||
switch (result.data.track[tt].type) {
|
||
case (0):
|
||
ttypeName = 'Received'
|
||
break;
|
||
case (1):
|
||
ttypeName = 'With editor'
|
||
break;
|
||
case (2):
|
||
ttypeName = 'Under review'
|
||
break;
|
||
case (3):
|
||
ttypeName = 'Reject'
|
||
break;
|
||
case (4):
|
||
ttypeName = 'Revision'
|
||
break;
|
||
case (5):
|
||
ttypeName = 'Accept'
|
||
break;
|
||
case (6):
|
||
ttypeName = 'Pre-accept'
|
||
break;
|
||
case (7):
|
||
ttypeName = 'Proof'
|
||
break;
|
||
case (8):
|
||
ttypeName = 'Online'
|
||
break;
|
||
}
|
||
// 二级的时间
|
||
var reviewers = ""
|
||
if (result.data.track[tt].reviewers && result.data.track[tt].reviewers.length > 0) {
|
||
shenCode = []
|
||
for (var er = 0; er < result.data.track[tt].reviewers.length; er++) {
|
||
var neiTag = ''
|
||
var reviewerState = ''
|
||
var reviewerItem = ''
|
||
var time1 = '' // 创建时间
|
||
var time2 = '' // 回应时间
|
||
|
||
// 初审和复审的审核意见
|
||
// var fushenContent = ''
|
||
var chushenContent = ''
|
||
var timess = ''
|
||
// 进入页面前清空
|
||
if (result.data.track[tt].type == 2 && result.data.track[tt].reviewers[er].question != null) {
|
||
chushenContent = ''
|
||
timess = ''
|
||
chushenContent = result.data.track[tt].reviewers[er].question.comments
|
||
timess = timestampToTime(result.data.track[tt].reviewers[er].question.ctime)
|
||
|
||
shenCode.push("<div class='shenheComments'><p><span>Comments:</span> <br/>" + chushenContent + "</p><p class='time'><span>Review comments received: </span>" + timess + "</p></div>")
|
||
|
||
// detailIcon = '<svg onclick="showComments(' + er + ')" style="vertical-align: middle; cursor: pointer; margin-left: 10px" t="1691720445324" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4032" width="26" height="26"><path d="M512 298.666667c-162.133333 0-285.866667 68.266667-375.466667 213.333333 89.6 145.066667 213.333333 213.333333 375.466667 213.333333s285.866667-68.266667 375.466667-213.333333c-89.6-145.066667-213.333333-213.333333-375.466667-213.333333z m0 469.333333c-183.466667 0-328.533333-85.333333-426.666667-256 98.133333-170.666667 243.2-256 426.666667-256s328.533333 85.333333 426.666667 256c-98.133333 170.666667-243.2 256-426.666667 256z m0-170.666667c46.933333 0 85.333333-38.4 85.333333-85.333333s-38.4-85.333333-85.333333-85.333333-85.333333 38.4-85.333333 85.333333 38.4 85.333333 85.333333 85.333333z m0 42.666667c-72.533333 0-128-55.466667-128-128s55.466667-128 128-128 128 55.466667 128 128-55.466667 128-128 128z" fill="#1296db" p-id="4033"></path></svg>'
|
||
detailIcon = '<i class="detailsBtn" onclick="showComments(' + er + ')">(Detail)</i>'
|
||
}
|
||
switch (result.data.track[tt].reviewers[er].state) {
|
||
case (1):
|
||
reviewerState = 'Accept with major revision'
|
||
break;
|
||
case (2):
|
||
reviewerState = 'Reject'
|
||
break;
|
||
case (3):
|
||
reviewerState = 'Accept with minor revision'
|
||
break;
|
||
}
|
||
time1 = timestampToTime(result.data.track[tt].reviewers[er].ctime)
|
||
time2 = timestampToTime(result.data.track[tt].reviewers[er].qtime)
|
||
reviewerItem = "<div class='reviewerBox'><span class='time1 time'>Invitation time: <br/>" + time1 + "</span><div class='box'><span class='title'>" + reviewerState + detailIcon + "</span><span class='score'>Score: " + result.data.track[tt].reviewers[er].rated + "</span><span class='reviewer'>reviewer: " + result.data.track[tt].reviewers[er].reviewer_name + "</span><span class='time2'>Review comments received: " + time2 + "</span></div></div>"
|
||
reviewers += reviewerItem
|
||
}
|
||
}
|
||
// 获得时间
|
||
ttime = timestampToTime(result.data.track[tt].time)
|
||
|
||
var Revitag = ''
|
||
if (result.data.track[tt].type == 4 && result.data.track[tt].response) {
|
||
var title = '<h4>Response to reviewers: </h4>'
|
||
var lisss = ''
|
||
for (var s = 0; s < result.data.track[tt].response.length; s++) {
|
||
var xuhao = s + 1
|
||
var Revfile_url = ''
|
||
// var tptime = timestampToTime(result.data.track[tt].time)
|
||
Revfile_url = '<span><a href="https://submission.tmrjournals.com/public/' + result.data.track[tt].response[s].file_url + '" target="_blank" class="txt_html">' + xuhao + '. Download</a></span>'
|
||
//Revitag +=
|
||
lisss += Revfile_url
|
||
}
|
||
Revitag = '<div class="filerev">' + title + lisss + '</div>'
|
||
}
|
||
li = "<div class='trackItem " + typeClass + "'><span class='time'>" + ttime + "</span><div class='type'><span class='title'>" + ttypeName + "</span>" + reviewers + Revitag + "</div></div>"
|
||
lis += li
|
||
}
|
||
$('.wen_rong .content-box .conterecord').html(lis)
|
||
|
||
} else {
|
||
// console.log(result.data.track.length)
|
||
|
||
$('.wen_rong #tablist .tarrecord').css('display', 'none');
|
||
}
|
||
// console.log(j_artc)
|
||
// Original data 附加文件
|
||
if (j_artc.file_original == '') {
|
||
console.log('--------------')
|
||
$('.wen_rong #tablist .OriginalData').css('display', 'none');
|
||
$('.wen_rong #tablist .Original').css('display', 'none');
|
||
} else {
|
||
// console.log('有值')
|
||
// $('.wen_rong #tablist .OriginalData').css('display', 'block');
|
||
// $('.wen_rong #tablist .Original').css('display', 'block');
|
||
$('#OriginalData').html('<p>Original data: ----<a target="_blank" href="public' + apiUrl + 'articleOriginal/' + j_artc.file_original + '">Download</a></p>');
|
||
}
|
||
|
||
if (j_artc.file_pdf == '') {
|
||
$('.wen_rong #tablist .tarfipdf').css('display', 'none');
|
||
// $('.wen_rong .rong_box .contfdf').css('display','none');
|
||
} else {
|
||
$('.wen_rong #tablist .tarfipdf').html('<a href="' + imgFileUrl + 'articlePDF/' + j_artc.file_pdf + '" target="_blank" class="txt_html">PDF</a>');
|
||
// $('.wen_rong .rong_box .contfdf ul').html('<img src="img/link_3.jpg" width="14" height="16" style="vertical-align: middle;"><a href="'+imgFileUrl+'articlePDF/'+j_artc.file_pdf+'" target="_blank" class="txt_html"><b> PDF</b></a>');
|
||
}
|
||
if (j_artc.file_html == '') {
|
||
$('.wen_rong #tablist .tarfihml').css('display', 'none');
|
||
// $('.wen_rong .rong_box .contfhml').css('display','none');
|
||
} else {
|
||
$('.wen_rong #tablist .tarfihml').html('<a href="' + imgFileUrl + 'articleHTML/' + j_artc.file_html + '" target="_blank" class="txt_html">HTML</a>');
|
||
$('.wen_rong .rong_box .contfhml ul').html('<img src="img/link_2.png" width="14" height="16" style="vertical-align: middle;"><a href="' + imgFileUrl + 'articleHTML/' + j_artc.file_html + '" target="_blank" class="txt_html"><b> HTML</b></a>');
|
||
}
|
||
//if (j_artc.tradition_tag == '' || j_artc.tradition == '') {
|
||
// $('.wen_rong #tablist .tarad').css('display', 'none');
|
||
// $('.wen_rong .content-box .conterad').css('display', 'none');
|
||
//}
|
||
if (j_artc.mhoo == '' || j_artc.mhoo == null) {
|
||
$('.wen_rong #tablist .tarmho').css('display', 'none');
|
||
$('.wen_rong .content-box .contemho').css('display', 'none');
|
||
}
|
||
|
||
$('#tablist .tarfipdf a').click(function () {
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||
data: { "article_id": j_artc.article_id, "type": 'pdf' },
|
||
success: function (result) {
|
||
}
|
||
})
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||
success: function (result) {
|
||
}
|
||
});
|
||
})
|
||
|
||
var pdf_list = ''
|
||
if (j_artc.file_sub != '') {
|
||
var fileType = ''
|
||
var imgLink = ''
|
||
var fileTypeArr = j_artc.file_sub.split('.')
|
||
fileType = fileTypeArr[fileTypeArr.length - 1]
|
||
// console.log(fileType)
|
||
switch (fileType) {
|
||
case 'xlsx':
|
||
imgLink = 'img/xlsx.png'
|
||
break;
|
||
case 'zip':
|
||
imgLink = 'img/zip.png'
|
||
break;
|
||
case 'rar':
|
||
imgLink = 'img/zip.png'
|
||
break;
|
||
case 'docx':
|
||
imgLink = 'img/link_1.png'
|
||
break;
|
||
case 'pdf':
|
||
imgLink = 'img/link_3.jpg'
|
||
break;
|
||
default:
|
||
imgLink = 'img/otherfile.png'
|
||
break;
|
||
}
|
||
pdf_list += '<li><div><img src="' + imgLink + '" width="14" height="16"><b>' + fileType + '</b></div>' +
|
||
'<p>Supplementary Material for doi: ' + j_artc.doi + '----<a target="_blank" href="' + apiUrl + 'public/articleSUB/' + j_artc.file_sub + '">Download</a></p></li>';
|
||
}
|
||
if (j_artc.file_sub2 != '') {
|
||
pdf_list += '<li><div></div>' +
|
||
'<p>Supplementary Material for doi: ' + j_artc.doi + '----<a target="_blank" href="' + apiUrl + 'public/articleSUB2/' + j_artc.file_sub2 + '">Download</a></p></li>';
|
||
}
|
||
|
||
$('.wen_rong .content-box .contepdf ul').html(pdf_list);
|
||
if (j_artc.file_sub == '' && j_artc.file_sub2 == '') {
|
||
$('.wen_rong #tablist .tarpdf').css('display', 'none');
|
||
$('.wen_rong .content-box .contepdf').css('display', 'none');
|
||
}
|
||
|
||
// 首先显示html
|
||
if (htm_ID != null) {
|
||
$("#tablist li.tarhtmn").click()
|
||
}
|
||
|
||
// meta添加
|
||
// j_artc = result.data.articleInfo
|
||
// j_authior = result.data.author.authors;
|
||
// j_our = result.data.journalInfo;
|
||
// j_info = result.data.stageInfo;
|
||
|
||
|
||
$('title').before('<meta name="citation_title" content="' + j_artc.old_title + '">' +
|
||
'<meta name="citation_publication_date" content="' + j_artc.publication + '">' +
|
||
'<meta name="citation_journal_title" content="' + j_our.title + '">' +
|
||
'<meta name="citation_volume" content="' + j_info.stage_vol + '">' +
|
||
'<meta name="citation_issue" content="' + j_info.stage_no + '">' +
|
||
'<meta name="citation_pdf_url" content="' + 'https://www.tmrjournals.com' + imgFileUrl + 'articlePDF/' + j_artc.file_pdf + '">')
|
||
for (var i = 0; i < j_authior.length; i++) {
|
||
$('title').before('<meta name="citation_author" content="' + j_authior[i].author_name + '">')
|
||
}
|
||
if (j_artc.first_page != undefined) {
|
||
$('title').before('<meta name="citation_firstpage" content="' + j_artc.first_page + '">')
|
||
}
|
||
if (j_artc.last_page != undefined) {
|
||
$('title').before('<meta name="citation_lastpage" content="' + j_artc.last_page + '">')
|
||
}
|
||
|
||
|
||
// 右侧引入插件
|
||
// if(result.data.journalInfo.title=='Food Therapy and Health Care'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79603', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Medical Theory and Hypothesis'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79601', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='TMR Non-Drug Therapy'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79600', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='TMR Modern Herbal Medicine'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79599', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Nursing Communications'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79598', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Integrative Medicine Discovery'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79597', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Clinical Research Communications'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79596', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Psychosomatic Medicine Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79595', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Life Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79594', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Gastroenterology & Hepatology Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79593', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Medical Data Mining'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79592', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Toxicology Communications'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79591', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Tumor Microenvironment Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79590', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='History and Philosophy of Medicine'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79589', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Precision Medicine Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79588', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Drug Combination Therapy'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79587', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='tmRxiv'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79586', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Infectious Diseases Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79585', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Aging Communications'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79584', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Cancer Advances'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79583', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
// if(result.data.journalInfo.title=='Traditional Medicine Research'){
|
||
// document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'journal_id':'79582', 'element':'#trendmd-suggestions'}")
|
||
// }
|
||
|
||
if (Jour_num != '1') {
|
||
$('.wen_rong .right .tmr_doaj').css('display', 'none')
|
||
} else {
|
||
$('.wen_rong .right .tmr_doaj').css('display', 'none')
|
||
}
|
||
|
||
if (Jour_num == '22') {
|
||
$('.wen_jian .right h5').html('引用:');
|
||
$('.wen_jian .right .export .Exc_2').html('<i class="fa fa-download"></i> 下载EndNote格式');
|
||
$('.wen_jian .right .export .Exc_3').html('<i class="fa fa-download"></i> 下载RIS格式');
|
||
$('.wen_jian .right .export .Exc_4').html('<i class="fa fa-download"></i> 下载BibTex格式');
|
||
$('.wen_jian .right .export .Exc_5').html('<i class="fa fa-download"></i> 下载text格式');
|
||
$('.wenzhang .wen_rong .right>p').html('本作品根据“知识共享”国际许可协议4.0进行授权。');
|
||
$('.keyw b').html('关键字:')
|
||
$('.fund b').html('基金项目:')
|
||
$('.coau b').html('通讯作者:')
|
||
$('.emai b').html('邮箱:')
|
||
$('.cite b').html('引用:')
|
||
$('.time b').html('出版时间:')
|
||
$('.url b').html('链接:')
|
||
$('#tablist li').html('')
|
||
$('#tablist .tabin').html('摘要')
|
||
$('.links_').css('font-size', '20px')
|
||
$('.links_ img').css({ 'width': '20px', 'height': '22px' })
|
||
$('.right p').css('font-family', 'Times New Roman')
|
||
$('.cite span').css('font-family', 'Times New Roman')
|
||
}
|
||
|
||
|
||
} else {
|
||
ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
}
|
||
})
|
||
}
|
||
|
||
|
||
// 右侧话题
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getTopicsForArticle',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.topics;
|
||
var str = '';
|
||
for (var i = 0; i < arr.length; i++) {
|
||
str += '<li><a target="_blank" href="topic_list.html?J_num=' + Jour_num + '&t_id='
|
||
+ arr[i].journal_topic_id + '"><img src="' + imgtopicUrl + arr[i].icon + '"/></a>' +
|
||
'<h6 style="text-align: center"><a target="_blank" ' +
|
||
'href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].journal_topic_id + '">'
|
||
+ arr[i].title + '</a></h6></li>'
|
||
}
|
||
if (str != '') {
|
||
$('.wenzhang .wen_rong .right .pos_topic').html(str);
|
||
$('.wenzhang .wen_rong .right .pos_topic').css('border-bottom', '2px solid #dcdcdc')
|
||
// $('.wenzhang .wen_rong .right .pos_topic').after('<p style="background-color: #f4fafd;height: 10px;"></p>');
|
||
}
|
||
|
||
|
||
$('.wenzhang .wen_rong .right .pos_topic li:last-child').css('border-bottom', 0);
|
||
|
||
} else {
|
||
ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
}
|
||
});
|
||
|
||
|
||
// 期刊内搜索
|
||
$('.sfor_btnw').click(function () {
|
||
// console.log($('select[name="cut"] option:selected').val());
|
||
window.open("jour_search.html?J_num=" + Jour_num + "&se_ch=" + $(".sfor_inpw").val());
|
||
})
|
||
// 期刊内订阅
|
||
$('.top .jour_ts input.tishi_author').css('background-color', localStorage.Journals_color);
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Journal/getTopicForSubscribe',
|
||
data: {
|
||
"journal_id": Jour_num
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.topics;
|
||
var data_4 = [];
|
||
for (var i = 0; i < arr.length; i++) {
|
||
data_4.push({
|
||
id: arr[i].journal_topic_id,
|
||
text: arr[i].title
|
||
});
|
||
}
|
||
$("#combox4").combox({
|
||
id: "id",
|
||
name: "text",
|
||
data: data_4,
|
||
valueChange: function (data) {
|
||
// debugger
|
||
//返回data,filterData,selectData
|
||
}
|
||
})
|
||
var cb4 = $("#combox4").data('combox');
|
||
|
||
|
||
// 订阅提交
|
||
$(".yue_addm").click(function () {
|
||
$(".spa").text('');
|
||
|
||
var add_mess = {};
|
||
add_mess.email = $('#emaplm').val();
|
||
add_mess.topic_ids = [];
|
||
var ar_mes = cb4.options.selectData
|
||
for (var i = 0; i < ar_mes.length; i++) {
|
||
add_mess.topic_ids.push(ar_mes[i]['id']);
|
||
}
|
||
|
||
var S_Dan = '0';
|
||
var reg = /^[-.-_A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
|
||
if (cb4.options.selectData == "") {
|
||
$(".spa111").text('Please choose topic');
|
||
S_Dan = '1';
|
||
} else if ($("#emaplm").val() == "") {
|
||
$(".spa111").text('Please fill in E-mail');
|
||
S_Dan = '1';
|
||
} else if (!(reg.test($("#emaplm").val()))) {
|
||
$(".spa111").text('Please fill in properly formatted E-mail');
|
||
S_Dan = '1';
|
||
}
|
||
|
||
|
||
if (S_Dan == '1') {
|
||
ShowDanger("Incomplete information!");
|
||
} else {
|
||
$(".yue_addm").addClass("disable");
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Journal/addSubscribeTopics',
|
||
data: add_mess,
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
$(".mb_aform input[type='text']").val('');
|
||
$(".yue_addm").removeClass("disable");
|
||
$(".jour_ts").fadeIn();
|
||
|
||
$(".jour_ts input.tishi_author").click(function () {
|
||
$(".jour_ts").fadeOut();
|
||
});
|
||
|
||
} else {
|
||
ShowDanger(result.msg);
|
||
$(".yue_addm").removeClass("disable");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
$(".yue_addm").removeClass("disable");
|
||
}
|
||
})
|
||
}
|
||
})
|
||
|
||
} else {
|
||
ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
}
|
||
});
|
||
|
||
|
||
// 相关文章
|
||
$.ajax({
|
||
type: 'post', url: apiUrl + 'api/Article/getArticleByKeywords',
|
||
data: {
|
||
"article_id": a_ID
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data;
|
||
var str = "";
|
||
$('.corr_late>ul').css({ 'padding': '0', 'border-bottom': 'none' })
|
||
|
||
|
||
for (var i = 0; i < arr.length; i++) {
|
||
str += '<li><a href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '" target="_blank">' + arr[i].title + '</a>' +
|
||
'<p>' + arr[i].abbr + ', ' + arr[i].journal.title + ', ' + arr[i].stage.stage_year + '</p></li>'
|
||
}
|
||
$('.corr_late>ul').html(str);
|
||
if (arr == '') {
|
||
$('.corr_late').css('display', 'none');
|
||
}
|
||
if (arr == '') {
|
||
$('.corr_late_bg').css('display', 'none');
|
||
}
|
||
$('.wenzhang .wen_rong .right .corr_late p').css({ 'padding': '0 0 10px 0' })
|
||
$('.wenzhang .wen_rong .right').css('border-bottom', 'none');
|
||
|
||
}
|
||
}
|
||
})
|
||
}
|
||
|
||
function shouldColor(rowIndex, cellIndex, row) {
|
||
// 判断是否是最左侧的单元格
|
||
if (cellIndex === 0 && row[0].rowspan) {
|
||
const rowspan = row[0].rowspan; // 获取最左侧单元格的 `rowspan`
|
||
const startRow = rowIndex; // 当前单元格所在的行
|
||
const endRow = startRow + rowspan - 1; // 跨越的最后一行
|
||
|
||
// 判断当前行是否在 `rowspan` 范围内,并且是奇数行
|
||
return rowIndex >= startRow && rowIndex <= endRow && (rowIndex + 1) % 2 !== 0; // 判断是否为奇数行
|
||
}
|
||
return false;
|
||
}
|
||
function addRowIdToData(data) {
|
||
console.log('data at line 8526:', data)
|
||
let idCounter = 0; // Initialize an ID counter
|
||
|
||
// Iterate through each row
|
||
for (let i = 0; i < data.length; i++) {
|
||
// Assign an ID to the current row
|
||
data[i].rowId = `row-${idCounter}`;
|
||
idCounter++;
|
||
|
||
// Check for rowspan and propagate the same ID to merged cells
|
||
for (let j = 0; j < data[i].length; j++) {
|
||
const cell = data[i][j];
|
||
|
||
// If the cell has a rowspan attribute, propagate the same ID across all affected rows
|
||
if (cell&&cell.text&&cell.rowspan && cell.rowspan > 1) {
|
||
for (let k = 0; k < cell.rowspan; k++) {
|
||
if (data[i + k]) {
|
||
|
||
// Ensure that all cells in the same column and across the rows have the same rowId
|
||
data[i + k][j] ={...data[i + k][j],rowId:`row-${idCounter - 1}`} ;
|
||
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
const seenIds = [];
|
||
data.map((row, rowIndex) => {
|
||
row.map((cell, cellIndex) => {
|
||
if (cell.rowId) {
|
||
row.rowId = cell.rowId
|
||
}
|
||
})
|
||
})
|
||
|
||
|
||
data.forEach(row => {
|
||
if (row.rowId && !seenIds.includes(row.rowId)) {
|
||
seenIds.push(row.rowId); // Mark this rowId as seen
|
||
}
|
||
});
|
||
|
||
|
||
console.log('data at line 最新8534:', seenIds, data)
|
||
const rowIds = seenIds.filter((_, index) => index % 2 === 0);
|
||
const rowData = data;
|
||
console.log(rowIds);
|
||
return { rowData, rowIds }
|
||
|
||
}
|
||
|
||
|
||
|
||
function initArticleHtmlFun(arr, result, html_type) {
|
||
var str = '';
|
||
var htmlContent = ''
|
||
htmlContent += arr.map((item, index) => {
|
||
//批注
|
||
let contentHtml = '';
|
||
let sectionId = 'section-' + index; // 生成唯一的 ID
|
||
// 判断是否是图片
|
||
if (item.type == 1) {
|
||
|
||
var picsrc = 'https://submission.tmrjournals.com/public/articleImage/' + item.image.url;
|
||
var fun = "picPreview('" + picsrc + "');"
|
||
|
||
contentHtml = `
|
||
<p contenteditable="false" main-state="${item.state}" style="display:flex;align-items: center;
|
||
justify-content: center;" class="MaxPicture pMain" data-id="${item.ami_id
|
||
}" main-id="${item.am_id}" id="${sectionId}">
|
||
|
||
<img src="${picsrc}" onclick="${fun}" style="width: ${item.width ? `${item.width}px` : '80%'
|
||
}" />
|
||
<p class="font htmlImageTitle commonTableTitleColor" style="width: ${item.width ? `${item.width}px` : '100%'};
|
||
|
||
font-size: 14px;
|
||
font-family: 'Charis SIL';
|
||
font-weight:normal;
|
||
line-height: 22px;
|
||
text-align:center;" >${item.image.title ? item.image.title : ''
|
||
}</p>
|
||
<p class="font htmlImageNote" style="width: ${item.width ? `${item.width}px` : '100%'};
|
||
|
||
font-size: 14px;
|
||
font-family: 'Charis SIL';
|
||
font-weight:normal;
|
||
line-height: 22px;
|
||
text-align:center;" >${item.image.note ? item.image.note : ''
|
||
}</p>
|
||
</p>
|
||
`;
|
||
} else if (item.type == 2) {
|
||
var tableList = JSON.parse(item.table.table_data);
|
||
|
||
|
||
const { header, content } = splitTable(tableList);
|
||
var { rowData, rowIds } = addRowIdToData(content)
|
||
console.log('content at line 8542:', rowIds, rowData)
|
||
// console.log('contentList at line 8571:', contentList)
|
||
|
||
contentHtml = `
|
||
<div contenteditable="false" data-id="${item.amt_id}" main-state="${item.state}" main-id="${item.am_id
|
||
}" class="thumbnailTableBox wordTableHtml table_Box pMain" style="width: 100%; padding: 8px 15px; box-sizing: border-box; border-radius: 4px; position: relative;" id="${sectionId}">
|
||
|
||
<font class="font tableTitle commonTableTitleColor " style="width:100%;font-family: 'Charis SIL';" >${item.table.title ? item.table.title : ''}</font>
|
||
<table border="1" style="width: 100%; border-collapse: collapse; text-align: center; ">
|
||
${header
|
||
.map((row, i) => {
|
||
return `
|
||
<tr class="table-header-row">
|
||
${row
|
||
.map((cell, cellIndex) => {
|
||
return `
|
||
<td colspan="${cell.colspan || 1}" rowspan="${cell.rowspan || 1}" >
|
||
<span style="font-family: 'Charis SIL';">${cell.text || ''}</span>
|
||
</td>
|
||
`;
|
||
})
|
||
.join('')}
|
||
</tr>
|
||
`;
|
||
})
|
||
.join('')}
|
||
${rowData
|
||
.map((row, i) => {
|
||
return `
|
||
<tr class="table-content-row ${row.rowId && rowIds.includes(row.rowId) ? 'oddColor' : ''}" >
|
||
${row
|
||
.map((cell, cellIndex) => {
|
||
return `
|
||
<td colspan="${cell.colspan || 1}" rowspan="${cell.rowspan || 1}" >
|
||
<span style="font-family: 'Charis SIL';">${cell.text || ''}</span>
|
||
</td>
|
||
`;
|
||
})
|
||
.join('')}
|
||
</tr>
|
||
`;
|
||
})
|
||
.join('')}
|
||
</table>
|
||
<p class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
|
||
font-size: 14px;
|
||
font-family: 'Charis SIL';
|
||
font-weight: 500 !important;
|
||
line-height: 22px;
|
||
text-align:left;color:#333;" >${item.table.note ? item.table.note : ''
|
||
}</p>
|
||
</div>
|
||
`;
|
||
} else {
|
||
|
||
contentHtml = `<p class="${item.is_h1 ? 'Ptitle pMain' : 'pMain'} " style="font-family: 'Charis SIL';min-height:12px;" main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}" id="${sectionId}">${item.content}</p>`;
|
||
|
||
|
||
|
||
}
|
||
|
||
// 判断是否是表格类型
|
||
|
||
return contentHtml;
|
||
}).join('');
|
||
htmlContent = `<div class="newHtml2" style="margin-left:300px;">${htmlContent}</div>`
|
||
$('.wen_rong .content-box .conthtmn').html(htmlContent);
|
||
|
||
if (result.data.refers.length > 0) { // 如果有引用数据
|
||
var refs = '';
|
||
var xuhao = 0;
|
||
for (var rr = 0; rr < result.data.refers.length; rr++) {
|
||
// 如果格式不正确,或者信息不全
|
||
let item = '';
|
||
if (result.data.refers[rr].refer_type == 'journal' && result.data.refers[rr].doilink != '') {
|
||
// journal 类型
|
||
xuhao++;
|
||
item = "<div><p style='word-wrap: break-word;'>" + `<b style="color:#006699;">${xuhao}</b>. ` + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". <i>" + result.data.refers[rr].joura + ". </i>" + result.data.refers[rr].dateno + ".";
|
||
// 在 "Available at:" 之前插入 <br/> 标签
|
||
item += "<br/><a class='refsLink' href='" + result.data.refers[rr].doilink + "' target='_blank' style='color:#006699; word-wrap:break-word;'>Available at: " + result.data.refers[rr].doilink + "</a> </p></div>";
|
||
refs += item;
|
||
} else if (result.data.refers[rr].refer_type == 'book' && result.data.refers[rr].isbn != '') {
|
||
// book 类型
|
||
xuhao++;
|
||
item = "<div><p style='word-wrap: break-word;'>" + `<b style="color:#006699;">${xuhao}</b>. ` + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].dateno + ".";
|
||
// 在 "Available at:" 之前插入 <br/> 标签
|
||
item += "<br/><a target='_blank' style='color:#006699; word-wrap:break-word;' href='" + result.data.refers[rr].isbn + "'>ISBN: " + result.data.refers[rr].isbn + "</a></p></div>";
|
||
refs += item;
|
||
} else if (result.data.refers[rr].refer_type == 'other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15) {
|
||
// other 类型,检查 refer_frag 中是否有 "Available at:" 链接
|
||
xuhao++;
|
||
item = "<div><p data-other='1' style='word-wrap: break-word;'>" + `<b style="color:#006699;">${xuhao}</b>. `
|
||
// 检查 refer_frag 中是否包含 "Available at:"
|
||
if (result.data.refers[rr].refer_frag.indexOf('Available at:') !== -1) {
|
||
// 如果包含 "Available at:",则在其前面插入 <br/> 标签
|
||
item += result.data.refers[rr].refer_frag.replace('Available at:', '<br/>Available at:');
|
||
} else {
|
||
item += result.data.refers[rr].refer_frag;
|
||
}
|
||
item += ". </p></div>";
|
||
refs += item;
|
||
} else {
|
||
continue;
|
||
}
|
||
}
|
||
// 将生成的所有引用内容插入到页面中
|
||
$('.wen_rong .content-box .conthtmn').append('<div id="ArticleRef" style="margin-left:300px;" class="ArticleRef"><p id="References" class="Ptitle "><b>References</b></p>' + refs + '</div>');
|
||
}
|
||
initArticleHtml(arr, result.data.refers, html_type)
|
||
}
|
||
function initArticleHtml(htmlData, refs, type) {
|
||
document.querySelectorAll('wmath').forEach(el => {
|
||
const latex = el.getAttribute('data-latex');
|
||
if (latex) {
|
||
el.innerHTML = latex;
|
||
MathJax.typesetPromise([el]);
|
||
}
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle').css({
|
||
background: 'rgb(222, 235, 247)',
|
||
'color': commonTableTitleColor, // No !important here
|
||
'text-align': 'center', // No !important here
|
||
'border': '1px solid rgba(222, 234, 247, 0.1)',
|
||
'border-radius': '10px',
|
||
'font-size': '16px',
|
||
'box-shadow': '0 4px 4px rgba(222, 234, 247, 0.6)',
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .oddColor > td').css({
|
||
background: 'rgb(250, 231, 232)',
|
||
|
||
});
|
||
|
||
|
||
// Apply styles to <i> inside .Ptitle using setProperty with !important
|
||
$('.wen_rong .content-box .conthtmn .Ptitle > b').each(function () {
|
||
this.style.setProperty('font-weight', 'bold', 'important');
|
||
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle > i').each(function () {
|
||
this.style.setProperty('font-style', 'normal', 'important');
|
||
this.style.setProperty('color', commonTableTitleColor, 'important');
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle p > strong').each(function () {
|
||
this.style.setProperty('font-weight', 'bold', 'important');
|
||
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle p').each(function () {
|
||
this.style.setProperty('text-align', 'center', 'important');
|
||
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle em').each(function () {
|
||
this.style.setProperty('font-style', 'normal', 'important');
|
||
this.style.setProperty('color', commonTableTitleColor, 'important');
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .commonTableTitleColor').each(function () {
|
||
|
||
this.style.setProperty('color', commonTableTitleColor, 'important');
|
||
});
|
||
|
||
|
||
// 获取所有段落
|
||
const allParagraphs = document.querySelectorAll('.pMain');
|
||
let abstractEndIndex = -1;
|
||
let citationEndIndex = -1;
|
||
|
||
// 查找包含“Abstract”文本的段落(无论被标签包裹多少层)
|
||
allParagraphs.forEach((p, index) => {
|
||
const text = p.innerText.trim().toLowerCase();
|
||
if (text === 'abstract') {
|
||
abstractEndIndex = index;
|
||
}
|
||
if (text === 'citation') {
|
||
citationEndIndex = index;
|
||
console.log('CitationEndIndex at line 8765:', citationEndIndex)
|
||
}
|
||
});
|
||
|
||
// 从 Abstract 段落之后开始查找并高亮标题词
|
||
if (abstractEndIndex !== -1 && abstractEndIndex + 1 < allParagraphs.length) {
|
||
const nextParagraph = allParagraphs[abstractEndIndex + 1];
|
||
const elements = nextParagraph.querySelectorAll('strong, b');
|
||
elements.forEach((element) => {
|
||
const text = element.textContent.trim();
|
||
if (["Background:", "Methods:", "Method:", "Results:", "Result:", "Conclusion:", "Conclusions:"].includes(text) ||
|
||
["Background", "Methods", "Method", "Results", "Result", "Conclusion", "Conclusions"].includes(text)) {
|
||
element.style.color = commonSupColor;
|
||
}
|
||
});
|
||
}
|
||
if (citationEndIndex !== -1 && citationEndIndex + 1 < allParagraphs.length) {
|
||
const nextParagraph = allParagraphs[citationEndIndex + 1];
|
||
nextParagraph.style.color = commonSupColor;
|
||
}
|
||
$('.wen_rong .content-box .conthtmn sup').each(function () {
|
||
var textContent = $(this).text().trim(); // 获取并清理文本内容
|
||
|
||
// 判断文本是否是纯数字
|
||
if (/^\d+$/.test(textContent)) {
|
||
this.style.setProperty('color', commonSupColor, 'important');
|
||
}
|
||
// 判断文本是否包含 "&"
|
||
else if (/&/.test(textContent)) {
|
||
this.style.setProperty('color', commonSupColor, 'important');
|
||
}
|
||
else if (/ỻ/.test(textContent)) {
|
||
this.style.setProperty('color', commonSupColor, 'important');
|
||
}
|
||
// 判断文本是否包含 "*"
|
||
else if (/\*/.test(textContent)) {
|
||
this.style.setProperty('color', commonSupColor, 'important');
|
||
}
|
||
// 判断文本是否包含 "#"
|
||
else if (/#/.test(textContent)) {
|
||
this.style.setProperty('color', commonSupColor, 'important');
|
||
}
|
||
// 判断文本是否为由数字和逗号组成的字符串(例如 "1,2,3")
|
||
// 判断文本是否为由数字和逗号组成,且逗号两边允许有空格(例如 "1, 2, 3")
|
||
else if (/^\d+(\s*,\s*\d+)*$/.test(textContent)) {
|
||
this.style.setProperty('color', commonSupColor, 'important');
|
||
}
|
||
});
|
||
|
||
|
||
$('.wen_rong .content-box .conthtmn b i').each(function () {
|
||
|
||
this.style.setProperty('font-weight', 'bold', 'important');
|
||
});
|
||
// $('.wen_rong .content-box .conthtmn .thumbnailTableBox td sup').each(function () {
|
||
|
||
// this.style.setProperty('color', commonSupColor, 'important');
|
||
// });
|
||
|
||
|
||
$('.wen_rong .content-box .conthtmn .Ptitle').each(function () {
|
||
this.style.setProperty('color', commonTableTitleColor, 'important');
|
||
this.style.setProperty('text-align', 'center', 'important');
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle b i').each(function () {
|
||
this.style.setProperty('font-style', 'normal', 'important');
|
||
});
|
||
$('.wen_rong .content-box .conthtmn .Ptitle i b').each(function () {
|
||
this.style.setProperty('font-style', 'normal', 'important');
|
||
});
|
||
|
||
|
||
var navLinks = {
|
||
content: [], // 存放 content 类型的链接
|
||
image: [], // 存放 image 类型的链接
|
||
table: [] // 存放 table 类型的链接
|
||
};
|
||
|
||
htmlData.forEach((item, index) => {
|
||
|
||
|
||
let sectionId = 'section-' + index; // 生成唯一的 ID
|
||
|
||
if (type == 0) {
|
||
if (item.width == 0) {
|
||
if (item.is_title == 1) {
|
||
var textContent = $('<div>').html(item.content).text(); // 提取纯文本
|
||
navLinks.content.push({ sectionId: sectionId, type: 'content', text: textContent, href: '#' + sectionId, is_h1: item.is_title, });
|
||
|
||
}
|
||
} else {
|
||
var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + item.content;
|
||
var textContentimg = $('<div>').html(item.note).text(); // 提取纯文本
|
||
navLinks.image.push({ sectionId: sectionId, type: 'image', text: textContentimg || 'Image ' + (index + 1), href: '#' + sectionId, url: picsrc });
|
||
|
||
}
|
||
} else {
|
||
// 判断是否是图片
|
||
if (item.type == 1) {
|
||
var picsrc = 'https://submission.tmrjournals.com/public/articleImage/' + item.image.url;
|
||
var textContentimg = $('<div>').html(item.note).text(); // 提取纯文本
|
||
|
||
navLinks.image.push({ sectionId: sectionId, type: 'image', text: textContentimg || 'Image ' + (index + 1), href: '#' + sectionId, url: picsrc });
|
||
} else if (item.type == 2) {
|
||
var textContentTable = $('<div>').html(item.table.title).text(); // 提取纯文本
|
||
navLinks.table.push({ sectionId: sectionId, type: 'table', text: textContentTable || 'Table ' + (index + 1), href: '#' + sectionId });
|
||
|
||
} else {
|
||
var textContent = $('<div>').html(item.content).text(); // 提取纯文本
|
||
|
||
if (item.is_h1) {
|
||
|
||
navLinks.content.push({ sectionId: sectionId, type: 'content', text: textContent, href: '#' + sectionId, is_h1: item.is_h1, });
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
})
|
||
console.log('navLinks.forEach at line 7752:', navLinks)
|
||
// 引用
|
||
var navHtml = `<div class="anchor-nav"><div class="jo-catalog-title"><span >OUTLINE</span></div><ul>`;
|
||
|
||
// 先添加 content 类型
|
||
navLinks.content.forEach(link => {
|
||
navHtml += `<li data-section="${link.sectionId}" class="outiline-item outiline-content ${link.is_h1 ? 'outiline-item-h1' : ''} ${link.is_h2 ? 'outiline-item-h2' : ''}" ><a href="${link.href}" style="font-style: italic;
|
||
|
||
font-weight: bold;"><b>${link.text}</b></a></li>`;
|
||
|
||
});
|
||
if (navLinks.image.length > 0) {
|
||
navHtml += `<li class="outiline-item outiline-img">
|
||
<h2 style="margin-bottom:20px;">Figures (${navLinks.image.length})</h2>
|
||
<div class="navLinksFigures">`;
|
||
|
||
// 使用 map 来遍历并返回 HTML 字符串
|
||
navHtml += navLinks.image.map((link, linkIndex) => {
|
||
return `<a href="${link.href}" data-section="${link.sectionId}">
|
||
|
||
<img src="${link.url}" style="object-fit: scale-down;width: 80px; height: 80px;border-radius:2px;border:1px solid #e0d4d4" />
|
||
<p style="margin-bottom:0; color: #333; cursor: pointer;font-family: 'Charis SIL';">Figure${linkIndex + 1}
|
||
</p>
|
||
</a>`;
|
||
}).join(''); // 使用 join 来拼接所有的 HTML 字符串
|
||
|
||
navHtml += `</div></li>`;
|
||
}
|
||
if (navLinks.table.length > 0) {
|
||
navHtml += `<li class="outiline-item outiline-img">
|
||
<h2 style="margin-bottom:20px;">Tables (${navLinks.table.length})</h2>
|
||
<div class="navLinksTables" >`;
|
||
|
||
// 使用 map 来遍历并返回 HTML 字符串
|
||
navHtml += navLinks.table.map((link, linkIndex) => {
|
||
|
||
let TableIndex = 'Table ' + (linkIndex + 1);
|
||
|
||
if (link.text.includes(TableIndex)) {
|
||
// 使用正则表达式替换 "Table 1" 部分并添加高亮样式
|
||
link.text = link.text.replace(TableIndex, `<span style="color:#006699;">${TableIndex}</span>`);
|
||
console.log(link.text, '99999')
|
||
}
|
||
|
||
return `<a data-section="${link.sectionId}" href="${link.href}" style="border-bottom: 1px solid rgb(255, 255, 255);
|
||
box-sizing: border-box;
|
||
font-weight: 500 !important;
|
||
padding: 2px 0 0 16px;
|
||
color: #333;
|
||
cursor: pointer;
|
||
font-family: 'Charis SIL';
|
||
line-height:18px;min-height: 12px;"
|
||
>
|
||
|
||
${link.text}
|
||
</a>`;
|
||
}).join(''); // 使用 join 来拼接所有的 HTML 字符串
|
||
|
||
navHtml += `</div></li>`;
|
||
}
|
||
if (refs.length > 0) {
|
||
navHtml += `<li class="outiline-item outiline-img">
|
||
<h2 style="margin-bottom:20px;"><a href="#References">References (${refs.length})</a></h2>
|
||
</li>`;
|
||
}
|
||
|
||
|
||
navHtml += '</ul></div>';
|
||
$('.wen_rong .content-box .conthtmn').prepend(navHtml);
|
||
// 给导航栏添加固定定位样式
|
||
// 给导航栏添加固定定位样式
|
||
$('.anchor-nav').css({
|
||
'position': 'fixed',
|
||
// 'display': 'none',
|
||
'top': '0', // 固定在顶部
|
||
'left': '0', // 固定在左侧
|
||
'width': '285px', // 设置固定宽度
|
||
'background': '#ffffff', // 背景色
|
||
|
||
// 'border-radius': '12px', // 圆角效果
|
||
'box-shadow': '0 4px 8px rgba(0, 0, 0, 0.1)', // 阴影效果
|
||
'z-index': '999', // 确保导航栏位于其他元素之上
|
||
'overflow-y': 'auto', // 允许垂直滚动
|
||
'height': '100vh', // 让导航栏充满整个页面高度
|
||
'position': 'sticky', /* 固定定位 */
|
||
'float': 'left', /* 固定定位 */
|
||
/* 导航栏顶部距离为0 */
|
||
'box-shadow': '2px 0 5px rgba(0, 0, 0, 0.1)',
|
||
});
|
||
$('.jo-catalog-title').css({
|
||
'line-height': '40px',
|
||
'font-size': '18px',
|
||
'color': '#333',
|
||
'border-bottom': '1px solid #f0f0f0',
|
||
|
||
});
|
||
$('.outiline-item').css({
|
||
'border-bottom': '1px solid #fff',
|
||
'box-sizing': 'border-box',
|
||
'font-size': '14px',
|
||
'color': '#454545',
|
||
'cursor': 'pointer',
|
||
});
|
||
$('.outiline-content').css({
|
||
'padding': '4px 0',
|
||
'margin-left': '16px',
|
||
'color': '#333',
|
||
'cursor': 'pointer',
|
||
'font-family': 'Charis SIL',
|
||
|
||
|
||
});
|
||
|
||
$('.outiline-img').css({
|
||
|
||
'margin-top': '20px',
|
||
'margin-bottom': '20px',
|
||
|
||
|
||
});
|
||
$('.outiline-table').css({
|
||
|
||
'margin-top': '20px',
|
||
'margin-bottom': '20px',
|
||
|
||
// 'border-left': '3px solid #efefef',
|
||
|
||
});
|
||
$('.navLinksFigures').css({
|
||
'display': 'flex',
|
||
'flex-wrap': 'wrap',
|
||
'gap': '10px',
|
||
|
||
'margin-bottom': '10px',
|
||
'margin-top': '10px',
|
||
|
||
});
|
||
$('.navLinksTables').css({
|
||
'display': 'flex',
|
||
'flex-wrap': 'wrap',
|
||
'gap': '4px',
|
||
|
||
'margin-bottom': '10px',
|
||
'margin-top': '10px',
|
||
|
||
});
|
||
|
||
// 在滚动时保持导航栏在视口内
|
||
|
||
$(document).ready(function () {
|
||
// 监听右侧滚动区域
|
||
$('.newBox').scroll(function () {
|
||
var scrollTop = $(this).scrollTop(); // 获取当前右侧滚动的位置
|
||
var scrollHeight = $(this)[0].scrollHeight; // 获取右侧滚动区域的总高度
|
||
var containerHeight = $(this).height(); // 获取右侧容器的高度
|
||
|
||
// 获取所有右侧的 .pMain
|
||
var sections = $('.newBox').find('.pMain');
|
||
var navLinks = $('.anchor-nav').find('a'); // 获取所有左侧的导航链接
|
||
|
||
// 初始化清除所有导航链接的高亮
|
||
navLinks.css({
|
||
'color': '', // 恢复默认颜色
|
||
'font-weight': '' // 恢复默认字体粗细
|
||
});
|
||
|
||
// 遍历所有的 section
|
||
sections.each(function (index, section) {
|
||
var sectionTop = $(section).offset().top - $('.newBox').offset().top + scrollTop; // 计算每个 .pMain 相对于 .newBox 的位置
|
||
var sectionBottom = sectionTop + $(section).outerHeight(); // 获取每个 section 的底部位置
|
||
|
||
// 判断该 section 是否在可视区域内
|
||
if (scrollTop + containerHeight >= sectionTop && scrollTop <= sectionBottom) {
|
||
// 高亮对应的导航链接
|
||
$(navLinks[index]).css({
|
||
'color': 'rgb(0, 102, 153)', // 激活时颜色变为蓝色
|
||
'font-weight': 'bold' // 激活时加粗
|
||
});
|
||
// 只高亮一个链接,找到第一个符合条件的并停止遍历
|
||
return false; // 结束 .each() 遍历
|
||
}
|
||
});
|
||
});
|
||
});
|
||
|
||
|
||
}
|
||
function isHeaderRow(rowIndex, table) {
|
||
|
||
|
||
console.log('table at line 697:', table)
|
||
var head = table[0]
|
||
console.log('head at line 699:', head[0].rowspan)
|
||
|
||
return rowIndex < head[0].rowspan; // 假设前两行是表头
|
||
}
|
||
function splitTable(tableList) {
|
||
// 获取头部行数
|
||
const headerRowCount = tableList[0][0].rowspan || 1; // 默认第一行是头部行,获取该行的 rowspan
|
||
|
||
// 用 isHeaderRow 判断头部行
|
||
const header = [];
|
||
const content = [];
|
||
|
||
tableList.forEach((row, rowIndex) => {
|
||
if (isHeaderRow(rowIndex, tableList)) {
|
||
header.push(row); // 将头部行添加到 header 数组
|
||
} else {
|
||
|
||
|
||
content.push(row); // 将内容行添加到 table 数组
|
||
}
|
||
});
|
||
//
|
||
console.log('header:', header); // 打印头部行数据
|
||
console.log('table:', content); // 打印内容行数据
|
||
|
||
return { header, content };
|
||
}
|
||
// 图片预览
|
||
function picPreview(src) {
|
||
console.log(src)
|
||
$('.PicPreview img').attr('src', src)
|
||
$('.PicPreview').show()
|
||
}
|
||
$('.PicPreview').on('click', function () {
|
||
$('.PicPreview').hide()
|
||
})
|
||
|
||
// 显示审核内容
|
||
function showComments(num) {
|
||
// console.log('显示初审内容',shenCode)
|
||
layer.open({
|
||
type: 1
|
||
, title: false //不显示标题栏
|
||
, closeBtn: true
|
||
, area: '600px;'
|
||
, shade: 0.8
|
||
, id: 'LAY_layuipro' //设定一个id,防止重复弹出
|
||
/// ,btn: ['close']
|
||
, btnAlign: 'c'
|
||
, moveType: 1 //拖拽模式,0或者1
|
||
, content: shenCode[num]
|
||
});
|
||
}
|
||
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);
|
||
|
||
|
||
|
||
|
||
|
||
}
|
||
}
|
||
})
|
||
} |