From 747fd949687f9527b6ab463665b208f073e493d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Fri, 23 Aug 2024 09:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20top=20cite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- artihom_list_cite.html | 61 ++++ js/scientist.js | 501 +++++++++++++++++---------------- js/scientist/index.js | 334 ++++++++++++++++++++++ js/scientist/scientist_cite.js | 155 ++++++++++ style/form.css | 117 ++++++++ 5 files changed, 920 insertions(+), 248 deletions(-) create mode 100644 artihom_list_cite.html create mode 100644 js/scientist/index.js create mode 100644 js/scientist/scientist_cite.js diff --git a/artihom_list_cite.html b/artihom_list_cite.html new file mode 100644 index 0000000..dc91b24 --- /dev/null +++ b/artihom_list_cite.html @@ -0,0 +1,61 @@ + + + + + + + TMR + + + + + + + + +
+
+
+ + + +
+
+
+
+

+ +

+
    + +
+
+ +
+
+ + +
+ + +
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/js/scientist.js b/js/scientist.js index a98a673..8635f7e 100644 --- a/js/scientist.js +++ b/js/scientist.js @@ -56,12 +56,12 @@ function sy_index() { var new_arry = result.data.topic; new_arry = old_arry.map(o => { - return {id: o.base_topic_id, text: o.title} + return { id: o.base_topic_id, text: o.title } }) for (var i = 0; i < old_arry.length; i++) { new_arry[i].children = old_arry[i].children.map(o => { - return {id: o.base_topic_id, text: o.title} + return { id: o.base_topic_id, text: o.title } }) } @@ -75,7 +75,7 @@ function sy_index() { $('.es_serch_span').css('display', 'none') if ($('#com_index').selectivity('val') == null) { $('.es_serch_span').css('display', 'block') - + ShowDanger("Request was aborted!"); } else { window.open("atr_wisdom.html?&wis_dom=" + $('#com_index').selectivity('val')); @@ -499,28 +499,33 @@ function sy_index() { // 中下侧Top cited / Top read / Top download文章 $.ajax({ - type: 'post', url: apiUrl + 'api/Main/getThireTopArticles', - data: { - "type": 'cite', - "pageIndex": '1', - "pageSize": '8' - }, + type: 'post', url: apiUrl + 'api/Main/getCitedTopArticles', + data: {}, success: function (result) { if (result.code == 0) { - var arr = result.data.articles; + var arr = result.data.list; var str = ""; var j = 0; for (var i = 0; i < arr.length; i++) { - if (j == 4) break; - if (arr[i].icon != '') { - str += '
  • ' + - '
    ' + arr[i].title + '
    ' + - '
    ' + arr[i].abbr + ' | ' + arr[i].stage_year + ' | ' + arr[i].journal_short + '
  • ' - j += 1; - } + + + str += ` +
  • +
    ${arr[i].title}
    +
    ${arr[i].abbr ? arr[i].abbr : ''} ${arr[i].abbr && arr[i].stage_year ? ' | ' : ''}${arr[i].stage_year ? arr[i].stage_year : ''}${arr[i].stage_year && arr[i].journal_short ? ' | ' : ''}${arr[i].journal_short ? arr[i].journal_short : ''} +
    +
  • + + + ` + j += 1; + } - $('.sy_tcrd>div>a').attr('href', 'artihom_list.html?J_num=' + Jour_num + '&cite_id=1'); + $('.sy_tcrd>div>a').attr('href', 'artihom_list_cite.html?J_num=' + Jour_num + '&cite_id=1'); $('.sy_tcrd>div>ul').html(str + '
    '); // var arr = result.data.articles; @@ -782,7 +787,7 @@ function sy_index() { + arr[i].title + '' st_allIst += ''+ arr[i].title + '' + + arr[i].base_topic_id + '">' + arr[i].title + '' } } $('.sy_dmne ul.sy_dmne_lies').html(st_talk); @@ -824,9 +829,9 @@ function sy_index() { $('.sy_notice>div>div>ul').html(str); var unslider04 = $('#b04').unslider({ - dots: true, - delay: 3000 - }), + dots: true, + delay: 3000 + }), data04 = unslider04.data('unslider'); $('.unslider-arrow04').click(function () { @@ -1199,7 +1204,7 @@ function art_list() { // 所有more点进去文章列表 function more_list() { -// 获取地址栏信息 + // 获取地址栏信息 function getQueryString(key) { // 获取参数 var url = window.location.search; @@ -1317,7 +1322,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -1339,7 +1344,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -1351,7 +1356,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1360,7 +1365,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -1371,7 +1376,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1380,7 +1385,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -1390,7 +1395,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1399,7 +1404,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -1433,7 +1438,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1446,7 +1451,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1459,7 +1464,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1472,7 +1477,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1599,7 +1604,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -1616,7 +1621,7 @@ function more_list() { + '' + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - +trad_tion+'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -1628,7 +1633,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1637,7 +1642,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -1648,7 +1653,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1657,7 +1662,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -1667,7 +1672,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1676,7 +1681,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -1710,7 +1715,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1723,7 +1728,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1736,7 +1741,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1749,7 +1754,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -1865,7 +1870,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -1882,7 +1887,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -1897,7 +1902,7 @@ function more_list() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1920,7 +1925,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1942,7 +1947,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -1988,7 +1993,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2001,7 +2006,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2014,7 +2019,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2027,7 +2032,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2184,7 +2189,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -2201,7 +2206,7 @@ function more_list() { + '' + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -2213,7 +2218,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2222,7 +2227,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -2233,7 +2238,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2242,7 +2247,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -2252,7 +2257,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2261,7 +2266,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -2295,7 +2300,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2308,7 +2313,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2321,7 +2326,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2334,7 +2339,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2447,7 +2452,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -2464,7 +2469,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -2479,7 +2484,7 @@ function more_list() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2502,7 +2507,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2524,7 +2529,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2570,7 +2575,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2583,7 +2588,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2596,7 +2601,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2609,7 +2614,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2757,7 +2762,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -2773,7 +2778,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } @@ -2787,7 +2792,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2796,7 +2801,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -2807,7 +2812,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2816,7 +2821,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -2826,7 +2831,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -2835,7 +2840,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -2869,7 +2874,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2882,7 +2887,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2895,7 +2900,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -2908,7 +2913,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3024,7 +3029,7 @@ function more_list() { 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,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -3040,7 +3045,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'

    ' + + trad_tion + '
    ' } @@ -3054,7 +3059,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3063,7 +3068,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3074,7 +3079,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3083,7 +3088,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3093,7 +3098,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3102,7 +3107,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3136,7 +3141,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3149,7 +3154,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3162,7 +3167,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3175,7 +3180,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3302,7 +3307,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -3319,7 +3324,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -3331,7 +3336,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3340,7 +3345,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3351,7 +3356,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3360,7 +3365,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3370,7 +3375,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3379,7 +3384,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3413,7 +3418,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3426,7 +3431,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3439,7 +3444,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3452,7 +3457,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3568,7 +3573,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -3585,7 +3590,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -3600,7 +3605,7 @@ function more_list() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3623,7 +3628,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3645,7 +3650,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3691,7 +3696,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3704,7 +3709,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3717,7 +3722,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3730,7 +3735,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -3890,7 +3895,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -3907,7 +3912,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -3919,7 +3924,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3928,7 +3933,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3939,7 +3944,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3948,7 +3953,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -3958,7 +3963,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -3967,7 +3972,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -4001,7 +4006,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4014,7 +4019,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4027,7 +4032,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4040,7 +4045,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4156,7 +4161,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -4173,7 +4178,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -4188,7 +4193,7 @@ function more_list() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4211,7 +4216,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4233,7 +4238,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4279,7 +4284,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4292,7 +4297,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4305,7 +4310,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4318,7 +4323,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4479,7 +4484,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -4496,7 +4501,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -4508,7 +4513,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4517,7 +4522,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -4528,7 +4533,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4537,7 +4542,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -4547,7 +4552,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4556,7 +4561,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -4590,7 +4595,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4603,7 +4608,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4616,7 +4621,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4629,7 +4634,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4745,7 +4750,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -4762,7 +4767,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -4777,7 +4782,7 @@ function more_list() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4800,7 +4805,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4822,7 +4827,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -4868,7 +4873,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4881,7 +4886,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4894,7 +4899,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -4907,7 +4912,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5147,7 +5152,7 @@ function more_list() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -5169,7 +5174,7 @@ function more_list() { + arr[i].journal_title + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'<
    ' + + trad_tion + '<
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -5181,7 +5186,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5190,7 +5195,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -5201,7 +5206,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5210,7 +5215,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -5220,7 +5225,7 @@ function more_list() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5229,7 +5234,7 @@ function more_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -5263,7 +5268,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5276,7 +5281,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5289,7 +5294,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5302,7 +5307,7 @@ function more_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5340,8 +5345,8 @@ function more_list() { str += '
  • ' + '

    ' + arr[i].med_ename + '

    ' + arr[i].med_title + '
  • ' } - $('.wenz_list>ul').css({"overflow":"auto","padding":"10px 0 0 0"}) - $('.wenz_list>ul').html(str+'
    '); + $('.wenz_list>ul').css({ "overflow": "auto", "padding": "10px 0 0 0" }) + $('.wenz_list>ul').html(str + '
    '); } else { ShowDanger("请求失败!"); @@ -5518,7 +5523,7 @@ function scout_ind() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -5535,7 +5540,7 @@ function scout_ind() { + arr[i].journal.title + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -5547,7 +5552,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5556,7 +5561,7 @@ function scout_ind() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -5567,7 +5572,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5576,7 +5581,7 @@ function scout_ind() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -5586,7 +5591,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5595,7 +5600,7 @@ function scout_ind() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -5629,7 +5634,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5642,7 +5647,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5655,7 +5660,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5668,7 +5673,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5780,7 +5785,7 @@ function scout_ind() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -5797,7 +5802,7 @@ function scout_ind() { + arr[i].journal.title + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -5812,7 +5817,7 @@ function scout_ind() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5835,7 +5840,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5857,7 +5862,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -5903,7 +5908,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5916,7 +5921,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5929,7 +5934,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -5942,7 +5947,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6101,7 +6106,7 @@ function scout_ind() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -6118,7 +6123,7 @@ function scout_ind() { + arr[i].journal.title + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -6130,7 +6135,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -6139,7 +6144,7 @@ function scout_ind() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -6150,7 +6155,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -6159,7 +6164,7 @@ function scout_ind() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -6169,7 +6174,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -6178,7 +6183,7 @@ function scout_ind() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -6212,7 +6217,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6225,7 +6230,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6238,7 +6243,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6251,7 +6256,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6363,7 +6368,7 @@ function scout_ind() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -6380,7 +6385,7 @@ function scout_ind() { + arr[i].journal.title + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -6395,7 +6400,7 @@ function scout_ind() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -6418,7 +6423,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -6440,7 +6445,7 @@ function scout_ind() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -6486,7 +6491,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6499,7 +6504,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6512,7 +6517,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6525,7 +6530,7 @@ function scout_ind() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -6587,7 +6592,7 @@ function seek_senior() { // 增加访问次数 $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': 'de'}, + data: { 'type': 'de' }, success: function (result) { if (result.code == 0) { @@ -7147,7 +7152,7 @@ function seek_senior() { }); var groups = chk_value.join(","); - if(groups==''){ + if (groups == '') { ShowDanger("Please select a journal!"); return } @@ -7278,7 +7283,7 @@ function seek_senior() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -7295,7 +7300,7 @@ function seek_senior() { + arr[i].journal.title + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); @@ -7307,7 +7312,7 @@ function seek_senior() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -7316,7 +7321,7 @@ function seek_senior() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -7327,7 +7332,7 @@ function seek_senior() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -7336,7 +7341,7 @@ function seek_senior() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -7346,7 +7351,7 @@ function seek_senior() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -7355,7 +7360,7 @@ function seek_senior() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1'}, + data: { 'type': $(this).siblings('.jum_art_id').attr('alt'), 'is_detail': '1' }, success: function (result) { } }); @@ -7389,7 +7394,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7402,7 +7407,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7415,7 +7420,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7428,7 +7433,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7540,7 +7545,7 @@ function seek_senior() { if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { var maxwidth = 800;//显示多少字符 if (arr[i].abstract.length > maxwidth) { - var abstNew= arr[i].abstract.replace(/<.*?>/ig,"") + var abstNew = arr[i].abstract.replace(/<.*?>/ig, "") abstNew = abstNew.substring(0, maxwidth) abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) var trad_tion = '
    ' + abstNew + '...
    ' @@ -7557,7 +7562,7 @@ function seek_senior() { + arr[i].journal.title + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ + '' + doi_ + '' + '
    ' + person_img + '' - + trad_tion +'
    ' + + trad_tion + '
    ' } $('.wenz_list>ul').html(str); $('.goup-container').click(); @@ -7572,7 +7577,7 @@ function seek_senior() { type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'abs'}, + data: { "article_id": $(this).attr('alt'), "type": 'abs' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -7595,7 +7600,7 @@ function seek_senior() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'html'}, + data: { "article_id": $(this).attr('alt'), "type": 'html' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -7617,7 +7622,7 @@ function seek_senior() { var num = $(this).next().html(); $.ajax({ type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, + data: { "article_id": $(this).attr('alt'), "type": 'pdf' }, success: function (result) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -7663,7 +7668,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7676,7 +7681,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7689,7 +7694,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -7702,7 +7707,7 @@ function seek_senior() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -8125,12 +8130,12 @@ function art_wisdom() { var old_arry = result.data.topic; new_arry = old_arry.map(o => { - return {id: o.base_topic_id, text: o.title} + return { id: o.base_topic_id, text: o.title } }) for (var i = 0; i < old_arry.length; i++) { new_arry[i].children = old_arry[i].children.map(o => { - return {id: o.base_topic_id, text: o.title} + return { id: o.base_topic_id, text: o.title } }) } @@ -8362,12 +8367,12 @@ function rev_ver() { var new_arry = result.data.topic; new_arry = old_arry.map(o => { - return {id: o.base_topic_id, text: o.title} + return { id: o.base_topic_id, text: o.title } }) for (var i = 0; i < old_arry.length; i++) { new_arry[i].children = old_arry[i].children.map(o => { - return {id: o.base_topic_id, text: o.title} + return { id: o.base_topic_id, text: o.title } }) } @@ -8380,7 +8385,7 @@ function rev_ver() { $('.es_serch_btn').click(function () { $('.es_serch_span').css('display', 'none') if ($('#com_index').selectivity('val') == null) { - $('.es_serch_span').css('display', 'inline') + $('.es_serch_span').css('display', 'inline') ShowDanger("Request was aborted!"); } else { window.open("atr_wisdom.html?&wis_dom=" + $('#com_index').selectivity('val')); diff --git a/js/scientist/index.js b/js/scientist/index.js new file mode 100644 index 0000000..f4fd45e --- /dev/null +++ b/js/scientist/index.js @@ -0,0 +1,334 @@ +function getQueryString(key) { + // 获取参数 + var url = window.location.search; + // 正则筛选地址栏 + var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)"); + // 匹配目标参数 + var result = url.substr(1).match(reg); + //返回参数值 + return result ? decodeURIComponent(result[2]) : null; +} +function commonGetAxiosData(url, type, data) { + var resultData; + $.ajax({ + type: type, + url: apiUrl + url, + data: data, + }).then((result) => { + if (result.code == 0) { + resultData = result.data + } else { + ShowDanger("请求失败!"); + resultData = null + } + }) + return resultData; +} +function commonInit() { + $('.art_main_con').append('
    ') + $('.wenz_list').append('
    all total
    ') + + + +} +function commonGetItemHtml(doc) { + + var data = doc.data; + var i = doc.i; + var img_i = doc.img_i; + var c_t_a = doc.c_t_a; + var tong_geogle = doc.tong_geogle; + console.log('img_i at line 31:', img_i) + var baseInfo = { + doi_: !data.doi ? '' : `https://doi.org/${data.doi}`, + npp_: data.npp == '' || data.npp == ' ' ? '' : `: ${data.npp}.  `, + html_: '', + otStat: '', + pub_date: '', + mp4_: data.article_id != '172' ? '' : ``, + c_t_a: '', + trad_tion: '', + lr_top: '', + person_img: '', + tong_geogle: tong_geogle ? tong_geogle : '', + pdf_: !data.file_pdf || data.file_pdf == '' ? '' : `PDF ( ${data.pdf_num} )`, + cite_: !data.cite_num || data.cite_num == 0 ? '' : + `  + + WOS Citations ( ${data.cite_num} ) + + `, + abstract: data.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153"), + link_: '' + } + if (data.mains == '') { + if (data.file_html == '') { + baseInfo.html_ = '' + } else { + baseInfo.html_ = 'HTML ( ' + data.html_num + ' )  ' + } + } else { + baseInfo.html_ = 'HTML ( ' + data.html_num + ' )  ' + } + + + + if (data.other_state == 0) { + baseInfo.otStat = '' + } else if (data.other_state == 1) { + baseInfo.otStat = 'Editorial Expression of Concern' + } else if (data.other_state == 2) { + baseInfo.otStat = 'Retracted' + } + if (data.isShowOtime == 1) { + if (data.pub_date && data.pub_date != '') { + baseInfo.pub_date = `
    Published Date: ${data.pub_date}
    ` + } + } + + if (data.article_id == '86' || data.article_id == '176' || data.article_id == '455' || data.article_id == '400' || data.article_id == '145' || data.article_id == '116' || data.article_id == '717' || data.article_id == '632' || data.article_id == '24') { + baseInfo.person_img = '' + } else { + baseInfo.person_img = '' + } + if (c_t_a == 'different') { + if (data.journal_id == 22) { + baseInfo.c_t_a = '' + } else { + baseInfo.c_t_a = '' + } + } else { + baseInfo.c_t_a = '' + + } + + + baseInfo.link_ = `Abstract ( ${data.abs_num} )   ${baseInfo.html_}${baseInfo.pdf_}${baseInfo.mp4_}${baseInfo.c_t_a}${baseInfo.cite_}${baseInfo.tong_geogle} +

    ${data.cite}

    ${data.abstract}
    `; + + + + if (data.tradition_tag == '' || data.tradition_tag == null) { + var maxwidth = 800;//显示多少字符 + if (data.abstract.length > maxwidth) { + var abstNew = data.abstract.replace(/<.*?>/ig, "") + abstNew = abstNew.substring(0, maxwidth) + abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length) + baseInfo.trad_tion = '
    ' + abstNew + '...
    ' + } else { + baseInfo.trad_tion = '
    ' + data.abstract + '
    ' + } + } else { + baseInfo.trad_tion = '

    ' + data.tradition_tag + '

    ' + data.tradition + '

    ' + } + + if (data.topic && data.topic.length > 0) { + for (var t = 0; t < data.topic.length; t++) { + baseInfo.lr_top += '' + data.topic[t].title + '' + } + } + + + + return baseInfo +} + +function commonHandleClickHtml() { + + // 点击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'); + commonGetCiteList($(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(); + } + }) + }) +} +//获取 cite 并添加 html +function commonGetCiteList(a_ID) { + $('.cite_box .export_cite').html('
    '); + 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 += ` +

    ${Number(i) + 1}.

    +
    +

    + ${arr[i].article_name} +

    + +

    + ${arr[i].author ? `${arr[i].author},` : ''} ${arr[i].journal_name}${arr[i].vol ? `${arr[i].vol},` : ''} + + +

    + +
    ` + } + journalCiteStr += `
    ` + + $('.cite_box .export_cite').html(journalCiteStr); + + + + + + } + } + }) +} \ No newline at end of file diff --git a/js/scientist/scientist_cite.js b/js/scientist/scientist_cite.js new file mode 100644 index 0000000..142fce3 --- /dev/null +++ b/js/scientist/scientist_cite.js @@ -0,0 +1,155 @@ +function initCite() { + var cite_ID = getQueryString('cite_id'); //Top cited + localStorage.setItem("Journals_color", '#006699'); + + // Top cited点进去的文章列表 + if (cite_ID != null) { + var urlList = { + list: 'api/Main/getAllCiteArticles' + } + // cited + commonInit() + var cited_tcp = {}; + cited_tcp.page = 1; + cited_tcp.limit = 10; + cited_tcp.type = 'cite'; + + var totalPage;//总页码 + var totalRecords;//总数据条数 + var pageNo = cited_tcp.page;//当前页码 + + $.ajax({ + type: 'post', url: apiUrl + urlList.list, + data: cited_tcp, + success: function (result) { + if (result.code == 0) { + $('.wenz_list>h4').html('Top cited'); + totalPage = result.data.count % cited_tcp.limit == 0 ? (result.data.count / cited_tcp.limit) : (Math.ceil(result.data.count / cited_tcp.limit)); + totalRecords = result.data.count; + $('.wenz_list .tioashu').html(result.data.count); + + + initArticle(result.data.list) + + + + + + //生成分页 + //有些参数是可选的,比如lang,若不传有默认值 + kkpager.generPageHtml({ + pno: pageNo, + //总页码 + total: totalPage, + //总数据条数 + totalRecords: totalRecords, + mode: 'click',//默认值是link,可选link或者click + click: function (n) { + this.selectPage(n); + + //除了第一页写逻辑跳转 + cited_tcp.page = n; + $.ajax({ + type: 'post', url: apiUrl + urlList.list, + data: cited_tcp, + success: function (result) { + if (result.code == 0) { + $('.goup-container').click(); + totalRecords = result.data.count; + + $('.wenz_list .tioashu').html(result.data.count); + + $('.wenz_list>h4').html('Top cited'); + + + initArticle(result.data.list) + + + + + + } 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!"); + } + }) + + + function initArticle(arr) { + var str = ""; + for (var i = 0; i < arr.length; i++) { + if (arr[i].icon == '') { + continue + } + + if (arr[i].icon == '') { + var img_i = 'img/baiss.png' + } else { + var img_i = imgarticleUrl + arr[i].icon + } + var baseInfo = commonGetItemHtml({ data: arr[i], i: i, img_i: img_i, c_t_a: '' }) + + + + + str += ` + +
  • +
    ${arr[i].type}${baseInfo.pub_date}
    ${baseInfo.otStat}${arr[i].title} +
    ${arr[i].authortitle}
    + ${arr[i].journal_title}. ${arr[i].stage_year}, ${arr[i].stage_vol}${baseInfo.stage_}${baseInfo.npp_}${baseInfo.doi_} +
    + +
    ${baseInfo.person_img}${baseInfo.trad_tion}
    +
  • + + ` + } + $('.wenz_list>ul').html(str); + $('.links_ .txt_copy').css('background', localStorage.Journals_color); + commonHandleClickHtml() + } + } +} + diff --git a/style/form.css b/style/form.css index 17009d9..3037f95 100644 --- a/style/form.css +++ b/style/form.css @@ -3560,3 +3560,120 @@ input.disable { background-color: #fff; margin: 0 auto; } +.cite_box { + + position: relative; + display: inline-block; + cursor: pointer; + padding-left: 5px; +} + +.pai_two .current_list li .cite_box { + padding-left: 0px; +} + +.cite_box .export_cite { + position: absolute; max-height: 65vh; + overflow-y: auto; + left: 5px; + top: 35px; + background-color: #fff; + width: 500px; + padding: 5px 10px; + box-shadow: 2px 2px 5px #ccc; + z-index: 100; +} + + + +.cite_box .export_cite li { + color: #444; + text-align: left; + line-height: 26px; +} + +.cite_box .export_cite li:hover { + text-decoration: underline; +} + +.cite_box .export_cite a:hover { + text-decoration: underline !important; +} + + +[class*="loader-"] { + display: inline-block; + width: 1em; + height: 1em; + color: inherit; + vertical-align: middle; + pointer-events: none; +} + +.loader-01 { + border: .2em dotted currentcolor; + border-radius: 50%; + -webkit-animation: 1s loader-01 linear infinite; + animation: 1s loader-01 linear infinite; +} + +@-webkit-keyframes loader-01 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loader-01 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +.cite_txt_button { + background: #fff !important; + padding: 0 !important; + color: #7a2702 !important; + margin-left: 5px !important; + font-family: "Helvetica Neue", Helvetica, Georgia, sans-serif !important; + + font-size: 14px !important; +} + +.cite_txt_button .export { + left: 130px !important; +} + +.pai_two .cite_txt_button { + + margin-left: 0px !important; +} + + +/* 设置滚动条的样式 */ +.cite_box .export_cite::-webkit-scrollbar { + width: 4px; + background-color: #f0f0f0; +} + +/* 滚动槽 */ +.cite_box .export_cite::-webkit-scrollbar-track { + border-radius: 10px; +} + +/* 滚动条滑块 */ +.cite_box .export_cite::-webkit-scrollbar-thumb { + border-radius: 10px; + background: #b1b1b1; +} \ No newline at end of file