diff --git a/img/link_6.jpg b/img/link_6.jpg new file mode 100644 index 0000000..6c68b47 Binary files /dev/null and b/img/link_6.jpg differ diff --git a/img/link_7.jpg b/img/link_7.jpg new file mode 100644 index 0000000..9147d5c Binary files /dev/null and b/img/link_7.jpg differ diff --git a/js/article.js b/js/article.js index 0d8377e..2e464c3 100644 --- a/js/article.js +++ b/js/article.js @@ -1129,9 +1129,16 @@ function at_list() { } else { var pdf_ = 'PDF ( ' + arr[i].pdf_num + ' )' } + if (arr[i].cite_num == 0) { + var cite_ = '' + } else { + var cite_ = ` WOS Citations ( ${arr[i].cite_num}  ) + ` + } + if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) { var tong_geogle = ' ' + + 'target = "_blank" style="color:#7a2702;;margin-left: 10px;"> ' + 'Google Scholar' //搜索引用次数 } else { var tong_geogle = '' //少于21天隐藏 @@ -1198,16 +1205,15 @@ function at_list() { var person_img = '' } - if (localStorage.Journals_num == '22') { - var c_t_a = '' + if (arr[i].journal_id == 22) { + var c_t_a = '' } else { - var c_t_a = '' + var c_t_a = '' } - arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153") var link_ = 'Abstract ( ' + arr[i].abs_num + ' )   ' + - html_ + pdf_ + mp4_ + c_t_a + tong_geogle + + html_ + pdf_ + mp4_ + c_t_a+ cite_ + tong_geogle + '

' + arr[i].cite + '

' + '
' + arr[i].abstract + '
'; @@ -1302,6 +1308,18 @@ function at_list() { }); $(this).next().html(num); }) + $('.export_cite').css('display', 'none'); + $(document).click(function (e) { + if (!$(e.target).is('.export_cite') && !$(e.target).is('.cite_box')) { + $('.export_cite').hide(); + } + }) + $('.cite_box').click(function () { + $('.export_cite').css('display', 'none'); + getCiteList($(this).attr('article_id')) + $(this).find('.export_cite').fadeIn(200); + }) + $('.export_cite').click(function (e) { e.stopPropagation() }) // 点击弹窗出现 复制和下载 $('.txt_content').css('display', 'none'); @@ -8031,3 +8049,48 @@ function showComments(num) { , content: shenCode[num] }); } +function getCiteList(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/journal.js b/js/journal.js index 4d7edb4..3d8c4c9 100644 --- a/js/journal.js +++ b/js/journal.js @@ -178,6 +178,12 @@ function bf_list() { } else { var pdf_ = 'PDF ( ' + arr[i].pdf_num + ' )' } + if (arr[i].cite_num == 0) { + var cite_ = '' + } else { + var cite_ = ` WOS Citations ( ${arr[i].cite_num}  ) + ` + } if (arr[i].article_id == '172') { var mp4_ = '' } else { @@ -185,7 +191,7 @@ function bf_list() { } if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) { var tong_geogle = ' ' + + 'target = "_blank" style="color:#7a2702;margin-left: 10px;font-weight: 600;"> ' + 'Google Scholar' //搜索引用次数 } else { var tong_geogle = '' //少于21天隐藏 @@ -208,12 +214,12 @@ function bf_list() { } if (arr[i].journal_id == 22) { - var c_t_a = '' + var c_t_a = '' } else { - var c_t_a = '' + var c_t_a = '' } var link_ = 'Abstract ( ' + arr[i].abs_num + ' )  ' + - html_ + pdf_ + mp4_ + c_t_a + tong_geogle + + html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle + '

' + arr[i].cite + '

' + '
' + arr[i].abstract + '
'; @@ -387,6 +393,19 @@ function bf_list() { $(this).next().html(num); }) + $('.current_list .export_cite').css('display', 'none'); + $(document).click(function (e) { + if (!$(e.target).is('.export_cite') && !$(e.target).is('.cite_box')) { + $('.export_cite').hide(); + } + }) + $('.current_list .cite_box').click(function () { + $('.export_cite').css('display', 'none'); + getCiteList($(this).attr('article_id')) + $(this).find('.export_cite').fadeIn(200); + }) + $('.export_cite').click(function (e) { e.stopPropagation() }) + // 点击弹窗出现 复制和下载 $('.current_list .txt_content').css('display', 'none'); $('.current_list .export').css('display', 'none'); @@ -1242,3 +1261,48 @@ function bf_list() { } +function getCiteList(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/jstmr/journal.js b/jstmr/journal.js index 7b2a4ae..dc95db6 100644 --- a/jstmr/journal.js +++ b/jstmr/journal.js @@ -193,6 +193,12 @@ function bf_list() { } else { var pdf_ = 'PDF ( ' + arr[i].pdf_num + ' )' } + if (arr[i].cite_num == 0) { + var cite_ = '' + } else { + var cite_ = ` WOS Citations ( ${arr[i].cite_num}  ) + ` + } if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) { var tong_geogle = ' ' + @@ -209,7 +215,7 @@ function bf_list() { } if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) { var tong_geogle_2_2 = ' ' + + 'target = "_blank" style="color: #7a2702;margin:5px 37px 0 0;font-weight: 600;display: inline-block;"> ' + 'Google Scholar' //搜索引用次数 } else { var tong_geogle_2_2 = '' //少于21天隐藏 @@ -243,10 +249,10 @@ function bf_list() { arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153") - var c_t_a = '' + var c_t_a = '' var link_ = 'Abstract ( ' + arr[i].abs_num + ' )   ' + - html_ + pdf_ + mp4_ + c_t_a + tong_geogle + html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle + '

' + arr[i].cite + '

' + arr[i].abstract + '
'; var lr_top = '' for (var t = 0; t < arr[i].topic.length; t++) { @@ -369,6 +375,18 @@ function bf_list() { }); $(this).next().html(num); }) + $('.current_list .export_cite').css('display', 'none'); + $(document).click(function (e) { + if (!$(e.target).is('.export_cite') && !$(e.target).is('.cite_box')) { + $('.export_cite').hide(); + } + }) + $('.current_list .cite_box').click(function () { + $('.export_cite').css('display', 'none'); + getCiteList($(this).attr('article_id')) + $(this).find('.export_cite').fadeIn(200); + }) + $('.export_cite').click(function (e) { e.stopPropagation() }) // 点击弹窗出现 复制和下载 $('.current_list .txt_content').css('display', 'none'); @@ -1272,3 +1290,48 @@ function bf_list() { }) } +function getCiteList(a_ID) { + $('.cite_box .export_cite').html('
'); + 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/jstmr/style.css b/jstmr/style.css index 531a196..59f86da 100644 --- a/jstmr/style.css +++ b/jstmr/style.css @@ -2144,6 +2144,39 @@ ul li .ab_tad { .current_list li .links_ button .export li:hover { text-decoration: underline; } +.current_list li .cite_box { + position: relative; + display: inline-block; + cursor: pointer; + padding-left: 5px; +} + +.pai_two .current_list li .cite_box { + padding-left: 0px; +} + +.current_list li .cite_box .export_cite { + position: absolute; + left: 5px; + top: 35px; + background-color: #fff; + width: 500px; + padding: 5px 10px; + box-shadow: 2px 2px 5px #ccc; + z-index: 100; +} + + + +.current_list li .cite_box .export_cite li { + color: #444; + text-align: left; + line-height: 26px; +} + +.current_list li .cite_box .export_cite li:hover { + text-decoration: underline; +} .wenz_list li .links_ button { position: relative; @@ -3063,3 +3096,60 @@ ul li .ab_tad { margin-bottom: 2px; display: block; } +[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; +} \ No newline at end of file diff --git a/style/style.css b/style/style.css index 7389a87..f2c55db 100644 --- a/style/style.css +++ b/style/style.css @@ -2646,6 +2646,44 @@ ul li .ab_tad { text-decoration: underline; } +.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; + 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; +} + .wenz_list li .links_ button { position: relative; } @@ -5198,4 +5236,64 @@ ul li .ab_tad { } -/* 20240306 */ \ No newline at end of file +/* 20240306 */ + +[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 { + z-index: 10; + left: 130px !important; +} + +.pai_two .cite_txt_button { + + margin-left: 0px !important; +} \ No newline at end of file