From 5a3193feb4aabab9303a94c01e6bf4b6c1bab6e2 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: Thu, 22 Aug 2024 16:53:15 +0800 Subject: [PATCH] y_id cite --- img/link_6.jpg | Bin 0 -> 3234 bytes img/link_7.jpg | Bin 0 -> 749 bytes js/article.js | 75 ++++++++++++++++++++++++++++++++--- js/journal.js | 72 ++++++++++++++++++++++++++++++++-- jstmr/journal.js | 69 ++++++++++++++++++++++++++++++-- jstmr/style.css | 90 ++++++++++++++++++++++++++++++++++++++++++ style/style.css | 100 ++++++++++++++++++++++++++++++++++++++++++++++- 7 files changed, 392 insertions(+), 14 deletions(-) create mode 100644 img/link_6.jpg create mode 100644 img/link_7.jpg diff --git a/img/link_6.jpg b/img/link_6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c68b47cbea7ab0ccf9718f1a4d986634898ff3b GIT binary patch literal 3234 zcmd5<`8(8Y7ypj2OoUM)8D?TsmMARPQ4(27_8Er9HkKX}(u{pcl&zsg z8Z(9PXcI{ulq^$ZpJAqwtiwCK*Y&=CLqFW-e116Bb|*fIq`QomHzoUPZM^J_`T{Jh(PR2oYxGmX(`zQU zM32{t@*5RY@lHi+npn!Usr@xACriApA3#KPRmaP9zk5pRYak#?PVVhPRIVV9LsNbm z#MpRKX+GmEA&g;(f%|r^4Y&7o_+&lM-31@L{7CVBj5D)TQRcOm+m2WA&R!Krdvmxi zVN*CW`-9_!$z65PLp2R}1f7Qo9L&2ztwKsI(UW3fiz{trttQF&vzOGQbg=6rtal*F1M@I4e|h-2zg-qM|!s)dG@VgDuH|I`-N z=6)JtT8cTa#K$(zpEE}3T2;^H%JXks-Nv$(WTZVgYXW&~w6EmnE!BmuJ&{5|*YgWs z`GMY+HN>IKvmPQ*O?o|$0rU&=>$^u6Z%KnppAsHgy?dcswU6&mF!(Fc@0Tb-l zC43w^Y3~7OKRj^xI}=I|b_8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+ 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