diff --git a/Apc.html b/Apc.html index 39035d6..effc3cf 100644 --- a/Apc.html +++ b/Apc.html @@ -346,7 +346,7 @@ .footer { width: 100%; - background-color: #508576; + background-color: #428ae2; } .footer .bianma { diff --git a/ManuscriptProduce.html b/ManuscriptProduce.html new file mode 100644 index 0000000..1443736 --- /dev/null +++ b/ManuscriptProduce.html @@ -0,0 +1,588 @@ + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+
+
    + + +
  • HTML
  • + + + +
+
+ + +
+ +
+ + + +
+
+ +
+ +
+ +
+ +
+ + + +
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/article.html b/article.html index 8adceac..cbc45f0 100644 --- a/article.html +++ b/article.html @@ -588,17 +588,24 @@
-
+ + + -
+ -->
+
+

Related articles

+ +
diff --git a/img/h3_tit.png b/img/h3_tit.png new file mode 100644 index 0000000..61ae4a3 Binary files /dev/null and b/img/h3_tit.png differ diff --git a/img/h3_tit_new.png b/img/h3_tit_new.png new file mode 100644 index 0000000..8aed5b7 Binary files /dev/null and b/img/h3_tit_new.png differ diff --git a/img/home_5.jpg b/img/home_5.jpg index 8eda567..0553d4d 100644 Binary files a/img/home_5.jpg and b/img/home_5.jpg differ diff --git a/img/home_5_1.jpg b/img/home_5_1.jpg new file mode 100644 index 0000000..8eda567 Binary files /dev/null and b/img/home_5_1.jpg differ diff --git a/journals_nta.html b/journals_nta.html new file mode 100644 index 0000000..7c9ef0c --- /dev/null +++ b/journals_nta.html @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+
+ + + + + + + + Natural Therapy Advances incorporated into Integrative Medicine Discovery + (ISSN 3021-1670). This strategic decision aims to enhance the scope of our platform + for research in Integrative Medicine Discovery. Integrative Medicine Discovery is a + peer-reviewed, serialization open access (SOA) journal managed by TMR Publishing + Group. The aim of Integrative Medicine Discovery is to supply a platform to explore + the scientific connotation and new findings of traditional Medicines around the + world based on a holistic view using multidisciplinary knowledge. Integrative + Medicine Discovery covers evidence-based medicine, integrative pharmacology, + integrative oncology, herbal formulae, non-drug therapy. For the latest published + articles, please visit + Integrative Medicine Discovery + . + + + + + + + + + +
+
+
+ +
+
+ + + +
+ +
+
+

+ Archiving

+ +
+
    + +
+
+
+
+
+ + +
+ +
+ + +
+
+

Subscribe to receive latest research and news from 

+

We will exclusively utilize your email address to inform you about the release of new articles. You + have the freedom to unsubscribe at any given moment.

+
+
+

Email address

+
+ + +
+ + +
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/journals_pd.html b/journals_pd.html index 5484a90..6821fb4 100644 --- a/journals_pd.html +++ b/journals_pd.html @@ -46,10 +46,10 @@
Notice of Suspension of Publication

Dear Authors, Reviewers, and Readers,

We would like to extend our sincere gratitude for your continued support and - attention to Clinical Research Communications. + attention to Pharmacology Discovery. After thorough consideration and discussion, we regret to inform you that Clinical Research Communications will stop + class="have-italic">Pharmacology Discovery will stop publication on May 1, 2025.

This decision was made after considering operational costs and the @@ -83,13 +83,13 @@

Once again, we express our deepest gratitude for your ongoing support of - Clinical Research Communications, and we + Pharmacology Discovery, and we hope to collaborate again in the future on other platforms.


Sincerely,


-

Clinical Research Communications


+

Pharmacology Discovery


April 29, 2025


TMR Publishing Group

diff --git a/journals_tcr.html b/journals_tcr.html index f03e6e3..5484a90 100644 --- a/journals_tcr.html +++ b/journals_tcr.html @@ -40,75 +40,62 @@ Cancer Advances --> - +
- -
Notice of Suspension of Publication

-
- Dear Authors, Reviewers, and Readers,
- - We would like to extend our sincere gratitude for your continued support and - attention to Pharmacology Discovery. After +
Notice of Suspension of Publication

+
Dear Authors, Reviewers, and Readers,

+
We would like to extend our sincere gratitude for your continued support and + attention to Clinical Research Communications. + After thorough consideration and discussion, we regret to inform you that Pharmacology Discovery will stop publication on - May 1, 2025.
- - This decision was made after considering operational costs and the restructuring + class="have-italic">Clinical Research Communications will stop + publication on + May 1, 2025.

+
This decision was made after considering operational costs and the + restructuring of the publication group. We understand that this news may cause inconvenience, and we sincerely apologize to all authors, reviewers, editorial teams, and - readers who have supported the journal over the years.
-
+ readers who have supported the journal over the years.

-
Regarding Submitted and Upcoming Manuscripts:

-
+ +
Regarding Submitted and Upcoming Manuscripts:

+
    -
  • 1.For manuscripts that have already been submitted but not yet published, +
  • 1.For manuscripts that have already been submitted but not yet + published, we will contact the respective authors before May 1 to facilitate the transfer of the manuscripts to other relevant journals. The manuscript - handling process will not be affected by the transfer.

  • + handling process will not be affected by the transfer.
  • 2.For manuscripts that have not yet been submitted, we kindly suggest - authors select other suitable journals for submission.

  • + authors select other suitable journals for submission.
  • 3.Accepted manuscripts will be published as originally planned, with all articles that are pre-published to be made available before May 1.
- -
Data Archiving and Retrieval:

-
+
+
Data Archiving and Retrieval:

+
All published articles will remain in our database and will continue to be accessible through the provided Digital Object Identifiers (DOIs) and official - website. These articles will remain indexed and available for citation.
+ website. These articles will remain indexed and available for citation. +
+
+
+

Once again, we express our deepest gratitude for your ongoing support of + Clinical Research Communications, and we + hope to + collaborate again in the future on other platforms. +

+
+

Sincerely,


+

Clinical Research Communications


+

April 29, 2025


+

TMR Publishing Group

+
-
- Once again, we express our deepest gratitude for your ongoing support of Pharmacology Discovery, and we hope to - collaborate again in the future on other platforms.
- - Sincerely,
- Pharmacology Discovery
- April 29, 2025
- TMR Publishing Group -
- - +
diff --git a/js/article.js b/js/article.js index d39e9af..eca0de4 100644 --- a/js/article.js +++ b/js/article.js @@ -1,4 +1,9 @@ +var commonSupColor = 'rgb(0,112,192)'//上角标颜色 +var commonTableTitleColor = 'rgb(210,90,90)'//上角标颜色 +var commonSupFontColor = 'color:rgb(0,112,192);'//上角标字体颜色 + + // 列表 function at_list() { @@ -6,6 +11,7 @@ function at_list() { + function adjustNavHeight() { var windowHeight = window.innerHeight; // 获取页面高度 $(".anchor-nav").css("height", windowHeight + "px"); // 设置导航栏高度为页面高度 @@ -7023,10 +7029,18 @@ function getzf(num) { /* 相关引用次数 */ function getCitations(doi, a_ID) { + + // var doi = '10.53388/IMD202408001'; + $('.article-quote-box').css({ + width: '25%', + 'margin-right': '0px', + 'border-right': '1px solid ' + localStorage.Journals_color, + }) $('.DimensionsBadge .quote-source').html('Dimensions Badge') $('.SciteBadge .quote-source').html('Scite Badge (Wiley)') $('.Crossref .quote-source').html('Crossref') + $('.Crossref').css({ 'border-right': 'none' }) $('.Wos .quote-source').html('Wos') var list = [doi]; $.ajax({ @@ -7208,6 +7222,9 @@ function getCitations(doi, a_ID) { // 文章内容 function article_con() { + + + // 获取地址栏信息 function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); @@ -7218,6 +7235,7 @@ function article_con() { var a_ID = getQueryString('a_id'); //文章 var htm_ID = getQueryString('s_htm'); //目前显示html + const isPre = getQueryString('preview'); // 增加访问次数 $.ajax({ @@ -7241,922 +7259,1073 @@ function article_con() { } }) + if (isPre) { + $('#top_bar .top').css('display', 'none') + + $('.wen_rong .content-box .conthtmn').html(` +
接收到来自父页面的数据: +
` + ); + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getHtmlByPAID', + data: { + "p_article_id": a_ID + }, + success: function (res) { + if (res.code == 0) { + var arr = res.data.list; + initArticleHtmlFun(arr, res, 2) + - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticleDetail', - data: { - "article_id": a_ID - }, - success: function (result) { - if (result.code == 0) { - var html_type = result.data.articleInfo.html_type - var has_html = result.data.articleInfo.has_html - if (has_html == 0) { - $('.wen_rong #tablist .tarhtmn').css('display', 'none'); - $('.wen_rong #tablist .tarfihml').css('display', 'none'); - $('.wen_rong .content-box .conthtmn').css('display', 'none'); } - - // 文章Cite this article - var j_artc = result.data.articleInfo - - $('.wen_jian .right>p').html(result.data.cite); - - if ((Math.round(Date.parse(new Date()) / 1000) - j_artc.ctime) / 86400 >= 21) { - $('.wen_jian .right>p').after('Google Scholar'); - } - - var lnk_ = ''; - if (j_artc.file_pdf != '') { - lnk_ += ' PDF    ' - } - - if (j_artc.file_html != '') { - lnk_ += '     HTML' - } - - if (j_artc.article_id == '172') { - lnk_ += '    ' - } - - $('.wen_jian .right>.links_').html(lnk_); - if (Jour_num != 13) { - //获取文章引用 - getCitations(j_artc.doi, a_ID); - // 点击增加数字 - $('.txt_html').click(function () { - var num = $(this).next().html(); - $.ajax({ - type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: { "article_id": a_ID, "type": 'html' }, - success: function (result) { - } - }) - $.ajax({ - type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: { 'type': Jour_num, 'is_detail': '1' }, - success: function (result) { - } - }); - $(this).next().html(num); - }) - $('.txt_pdf').click(function () { - var num = $(this).next().html(); - $.ajax({ - type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: { "article_id": a_ID, "type": 'pdf' }, - success: function (result) { - } - }) - $.ajax({ - type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: { 'type': Jour_num, 'is_detail': '1' }, - success: function (result) { - } - }); - $(this).next().html(num); - }) - } else { - $('.article-quote').css('display', 'none'); - $('.mb_aform').css('display', 'none'); - $('.pos_ter').css('display', 'none'); - $('.footer').css('display', 'none'); - $('.wen_rong .right').css('display', 'none'); - $('.wenzhang .wen_rong .left').css('width', '100%'); - } - - - - var NotTeX_ = '' - // if(j_artc.endnote!=''){ - // NotTeX_+='EndNote(RIS)  ' - // } - if (j_artc.bibtex != '') { - NotTeX_ += 'BibTeX' - } - $('.wen_jian .right>.Note_TeX').html(NotTeX_); - - - // 点击复制和下载 - $('.Exc_2').click(function () { - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false, - data: { "article_id": a_ID }, - success: function (result) { - var a = document.createElement('a'); - a.href = result.data.url; - a.download = '' - a.click(); - } - }) - }) - $('.Exc_3').click(function () { - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false, - data: { "article_id": a_ID }, - success: function (result) { - var a = document.createElement('a'); - a.href = result.data.url; - a.download = '' - a.click(); - } - }) - }) - $('.Exc_4').click(function () { - var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id') - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false, - data: { "article_id": a_ID }, - success: function (result) { - var a = document.createElement('a'); - a.href = result.data.url; - a.download = '' - a.click(); - } - }) - }) - $('.Exc_5').click(function () { - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false, - data: { "article_id": a_ID }, - success: function (result) { - var a = document.createElement('a'); - a.href = result.data.url; - a.download = '' - a.click(); - } - }) - }) - - - // 文章路径基本信息 - var j_our = result.data.journalInfo; - var j_info = result.data.stageInfo; - $('.wen_jian .left>span a').html(j_our.title); - $('.wen_jian .left>span a').attr('href', '/' + j_our.usx); - localStorage.setItem("Journals_num", j_our.journal_id); - if (j_artc.doi == '') { - var doi_ = '' - } else { - var doi_ = 'DOI:' + j_artc.doi - } - if (j_info.stage_no == '0') { - var stage_ = '' - } else { - var stage_ = 'Issue (' + j_info.stage_no + '): ' - } - if (j_artc.npp == '' || j_artc.npp == ' ') { - var npp_ = '' - } else { - if (j_info.stage_pagename == 'pp.') { - var npp_ = j_artc.npp + '     ' - } else { - var npp_ = j_info.stage_pagename + j_artc.npp + '     ' - } - } - - if (localStorage.Journals_title == '经典中医研究') { - if (j_info.stage_vol == '1') { - j_info.stage_vol = '一' - } - if (j_info.stage_vol == '2') { - j_info.stage_vol = '二' - } - if (j_info.stage_vol == '3') { - j_info.stage_vol = '三' - } - if (j_info.stage_vol == '4') { - j_info.stage_vol = '四' - } - if (j_info.stage_vol == '5') { - j_info.stage_vol = '五' - } - if (j_info.stage_vol == '6') { - j_info.stage_vol = '六' - } - var our_time = '  |   ' + j_info.stage_year + '年第' + j_info.stage_vol + '卷  |   第' + j_info.stage_no + '期:' + npp_ + doi_; - } else { - var our_time = '  |   ' + j_info.stage_year + ', Vol. ' + j_info.stage_vol + '  |   ' + stage_ + npp_ + doi_; - } - - $('.wen_jian .left>span').append(our_time); - - if (j_artc.other_state == 0) { - var otStat = '' - } else if (j_artc.other_state == 1) { - var otStat = 'Editorial Expression of Concern' - } else if (j_artc.other_state == 2) { - var otStat = 'Retracted' - } - - $('.wen_jian .left>h4').html(otStat + j_artc.title); - - - // 文章基本作者机构 - var str = ''; - var j_authior = result.data.author.authors; - var stra = ''; - var Corr_Auth = ''; - var Corr_Emai = ''; - var rep = ''; - var rep_pd = ''; - var ORC_ID = ''; - var report_num = 0; - - for (var i = 0; i < j_authior.length; i++) { - rep = ''; - var mes = ''; - if (j_authior[i].is_first == '1') { - rep = '#' - rep_pd += '#' - } - if (j_authior[i].is_report == '1') { - rep += '*' - mes = ' () ' - Corr_Auth += ' ' + j_authior[i].author_name + ','; - Corr_Emai += ' ' + j_authior[i].email + ','; - report_num += 1; - } - if (j_authior[i].orcid == '') { - ORC_ID = '' - } else { - ORC_ID = '' - } - if (i == j_authior.length - 1) { - stra += j_authior[i].author_name + '' + j_authior[i].ors + rep + '' + ORC_ID + mes - } else { - stra += j_authior[i].author_name + '' + j_authior[i].ors + rep + '' + ORC_ID + mes + ', ' - } - } - - str += stra + '
'; - - var j_organ = result.data.author.organs; - var strg = ''; - for (var i = 0; i < j_organ.length; i++) { - strg += '' + j_organ[i].alias + ' ' + j_organ[i].organ_name + '
' - } - str += strg; - - $('.wen_jian .left>div.zuo_zhe').html(str); - - if (rep_pd == "#") { - $('.wen_jian .left>div').each(function () { - $(this).html($(this).html().split("#").join("")); - }); - } - - if (report_num != 1) { - $('.coau b').html('Corresponding authors:'); - } - - if (Jour_num == 1) { - j_artc.abstract = j_artc.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153") - } - - // 文章内容 - Corr_Auth = Corr_Auth.replace(/,$/, "") - Corr_Emai = Corr_Emai.replace(/,$/, "") - $('.wen_rong .content-box .contercon .abst').html(j_artc.abstract); - $('.wen_rong .content-box .contercon .keyw span').html(j_artc.keywords); - $('.wen_rong .content-box .contercon .fund span').html(j_artc.fund); - $('.wen_rong .content-box .contercon .coau span').html(Corr_Auth); - $('.wen_rong .content-box .contercon .emai span').html(Corr_Emai); - $('.wen_rong .content-box .contercon .cite span').html(result.data.cite); - $('.wen_rong .content-box .contercon .time span').html(j_artc.pub_date); - $('.wen_rong .content-box .contercon .url span').html('https://doi.org/' + j_artc.doi + ''); - - - // if (Jour_num == '1' && j_artc.article_id <= '1540') { - // $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + ''); - // } else if (Jour_num == '14' && j_artc.article_id <= '1540') { - // $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + ''); - // } else { - // $('.wen_rong .content-box .contercon .udr').css('display', 'none') - // } - - if (j_artc.ordoi == '') { - $('.wen_rong .content-box .contercon .udr').css('display', 'none') - } else { - $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.ordoi + ''); - } - - if (j_artc.abstract == '') { - $('.wen_rong .content-box .contercon .abst').css('display', 'none') - } - if (j_artc.keywords == '') { - $('.wen_rong .content-box .contercon .keyw').css('display', 'none') - } - if (j_artc.fund == '') { - $('.wen_rong .content-box .contercon .fund').css('display', 'none') - } - if (Corr_Auth == '') { - $('.wen_rong .content-box .contercon .coau').css('display', 'none') - } - if (Corr_Emai == '') { - $('.wen_rong .content-box .contercon .emai').css('display', 'none') - } - if (j_artc.pub_date == '') { - $('.wen_rong .content-box .contercon .time').css('display', 'none') - } - if (result.data.cite == '') { - $('.wen_rong .content-box .contercon .cite').css('display', 'none') - } - - //$('.wen_rong .content-box .conterad h1').html(j_artc.tradition_tag); - //$('.wen_rong .content-box .conterad p').html(j_artc.tradition); - //$('.wen_rong #tablist .tarad').html(j_artc.tradition_tag); - $('.wen_rong .content-box .contemho').html(j_artc.mhoo); - - // 新的HTML - - if (html_type == 0) { - // 原 HTML - $('.wen_rong .content-box .conthtmn').html(` -
-
` - ); - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticleDetailHtml', - data: { - "article_id": a_ID - }, - success: function (result) { - if (result.code == 0) { - - var arr = result.data.mains; - var str = ''; - for (var i = 0; i < arr.length; i++) { - let sectionId = 'section-' + i; // 生成唯一的 ID - if (arr[i].width == 0) { - if (arr[i].is_title == 1) { - if (arr[i].content.indexOf("

") >= 0) { - str += `

${arr[i].content}
` - } else { - str += `

${arr[i].content}

` - } - } else { - if (arr[i].content.indexOf("

") >= 0) { - str += arr[i].content.replace("

", `

`); - } else { - str += `

${arr[i].content}

` - } - } - } else { - var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + arr[i].content; - var fun = "picPreview('" + picsrc + "');" - // console.log(fun) - str += `
` + "

'" + arr[i].note + "

" - } - } - str = `
${str}
` - $('.wen_rong .content-box .conthtmn').html(str); - - // 引用 - if (result.data.refers.length > 0) { // 如果有引用数据 - var refs = ''; - var xuhao = 0; - for (var rr = 0; rr < result.data.refers.length; rr++) { - // 如果格式不正确,或者信息不全 - let item = ''; - if (result.data.refers[rr].refer_type == 'journal' && result.data.refers[rr].doilink != '') { - // journal 类型 - xuhao++; - item = "

" + xuhao + '. ' + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].joura + ". " + result.data.refers[rr].dateno + "."; - // 在 "Available at:" 之前插入
标签 - item += "
Available at: " + result.data.refers[rr].doilink + "

"; - refs += item; - } else if (result.data.refers[rr].refer_type == 'book' && result.data.refers[rr].isbn != '') { - // book 类型 - xuhao++; - item = "

" + xuhao + '. ' + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].dateno + "."; - // 在 "Available at:" 之前插入
标签 - item += "
ISBN: " + result.data.refers[rr].isbn + "

"; - refs += item; - } else if (result.data.refers[rr].refer_type == 'other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15) { - // other 类型,检查 refer_frag 中是否有 "Available at:" - xuhao++; - item = "

" + xuhao + '. '; - // 如果 refer_frag 包含 "Available at:",在其前面插入
标签 - if (result.data.refers[rr].refer_frag.indexOf('Available at:') !== -1) { - item += result.data.refers[rr].refer_frag.replace('Available at:', '
Available at:'); - } else { - item += result.data.refers[rr].refer_frag; - } - item += ". 

"; - refs += item; - } else { - continue; - } - } - // 将生成的所有引用内容插入到页面中 - $('.wen_rong .content-box .conthtmn').append('

References

' + refs + '
'); - } - - initArticleHtml(arr, result.data.refers, html_type) - } - }, - error: function () { - // ShowDanger("error!"); - } - - }) - } else if (html_type == 1) { - //外链 - $('.wen_rong #tablist .tarhtmn').css('display', 'none'); - $('.wen_rong .content-box .conthtmn').css('display', 'none'); - - } else if (html_type == 2) { - // 新 HTML - $('.wen_rong .content-box .conthtmn').html(` -
-
` - ); - $.ajax({ - type: 'post', url: apiUrl + 'api/Article/getArticleDetailHtmlFor2', - data: { - "article_id": a_ID - }, - success: function (result) { - if (result.code == 0) { - - var arr = result.data.mains; - var str = ''; - - - var htmlContent = '' - - - htmlContent += arr.map((item, index) => { - //批注 - let contentHtml = ''; - let sectionId = 'section-' + index; // 生成唯一的 ID - // 判断是否是图片 - if (item.type == 1) { - - var picsrc = 'https://submission.tmrjournals.com/public/articleImage/' + item.image.url; - var fun = "picPreview('" + picsrc + "');" - - contentHtml = ` -

- - -

${item.image.note ? item.image.note : '' - }

-

- `; - } else if (item.type == 2) { - var tableList = JSON.parse(item.table.table_data); - - contentHtml = ` -
- - ${item.table.title ? item.table.title : ''} - - ${tableList - .map((row, i) => { - return ` - - ${row - .map((cell) => { - return ` - - `; - }) - .join('')} - - `; - }) - .join('')} -
- ${cell.text || ''} -
-

${item.table.note ? item.table.note : '' - }

-
- `; - } else { - - contentHtml = `

${item.content}

`; - - - - } - - // 判断是否是表格类型 - - return contentHtml; - }).join(''); - htmlContent = `
${htmlContent}
` - $('.wen_rong .content-box .conthtmn').html(htmlContent); - - if (result.data.refers.length > 0) { // 如果有引用数据 - var refs = ''; - var xuhao = 0; - for (var rr = 0; rr < result.data.refers.length; rr++) { - // 如果格式不正确,或者信息不全 - let item = ''; - if (result.data.refers[rr].refer_type == 'journal' && result.data.refers[rr].doilink != '') { - // journal 类型 - xuhao++; - item = "

" + `${xuhao}. ` + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].joura + ". " + result.data.refers[rr].dateno + "."; - // 在 "Available at:" 之前插入
标签 - item += "
Available at: " + result.data.refers[rr].doilink + " 

"; - refs += item; - } else if (result.data.refers[rr].refer_type == 'book' && result.data.refers[rr].isbn != '') { - // book 类型 - xuhao++; - item = "

" + `${xuhao}. ` + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].dateno + "."; - // 在 "Available at:" 之前插入
标签 - item += "
ISBN: " + result.data.refers[rr].isbn + "

"; - refs += item; - } else if (result.data.refers[rr].refer_type == 'other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15) { - // other 类型,检查 refer_frag 中是否有 "Available at:" 链接 - xuhao++; - item = "

" + `${xuhao}. ` - // 检查 refer_frag 中是否包含 "Available at:" - if (result.data.refers[rr].refer_frag.indexOf('Available at:') !== -1) { - // 如果包含 "Available at:",则在其前面插入
标签 - item += result.data.refers[rr].refer_frag.replace('Available at:', '
Available at:'); - } else { - item += result.data.refers[rr].refer_frag; - } - item += ". 

"; - refs += item; - } else { - continue; - } - } - // 将生成的所有引用内容插入到页面中 - $('.wen_rong .content-box .conthtmn').append('

References

' + refs + '
'); - } - initArticleHtml(arr, result.data.refers, html_type) - - - } - }, - error: function () { - // ShowDanger("error!"); - } - - }) - } - - - // 稿件跟踪 - // 图标------------ - var detailIcon = '' - var lis = '' - - if (result.data.track && result.data.track.length > 0) { - // console.log(result.data.track.length,33) - // $('.wen_rong #tablist .tarrecord').css('display', 'block'); - // $('.wen_rong .content-box .conterecord').text(333) - for (var tt = 0; tt < result.data.track.length; tt++) { - var ttypeName = '' - var li = "" - var ttime = '' - var typeClass = '' - switch (result.data.track[tt].type) { - case (0): - ttypeName = 'Received' - break; - case (1): - ttypeName = 'With editor' - break; - case (2): - ttypeName = 'Under review' - break; - case (3): - ttypeName = 'Reject' - break; - case (4): - ttypeName = 'Revision' - break; - case (5): - ttypeName = 'Accept' - break; - case (6): - ttypeName = 'Pre-accept' - break; - case (7): - ttypeName = 'Proof' - break; - case (8): - ttypeName = 'Online' - break; - } - // 二级的时间 - var reviewers = "" - if (result.data.track[tt].reviewers && result.data.track[tt].reviewers.length > 0) { - shenCode = [] - for (var er = 0; er < result.data.track[tt].reviewers.length; er++) { - var neiTag = '' - var reviewerState = '' - var reviewerItem = '' - var time1 = '' // 创建时间 - var time2 = '' // 回应时间 - - // 初审和复审的审核意见 - // var fushenContent = '' - var chushenContent = '' - var timess = '' - // 进入页面前清空 - if (result.data.track[tt].type == 2 && result.data.track[tt].reviewers[er].question != null) { - chushenContent = '' - timess = '' - chushenContent = result.data.track[tt].reviewers[er].question.comments - timess = timestampToTime(result.data.track[tt].reviewers[er].question.ctime) - - shenCode.push("

Comments:
" + chushenContent + "

Review comments received: " + timess + "

") - - // detailIcon = '' - detailIcon = '(Detail)' - } - switch (result.data.track[tt].reviewers[er].state) { - case (1): - reviewerState = 'Accept with major revision' - break; - case (2): - reviewerState = 'Reject' - break; - case (3): - reviewerState = 'Accept with minor revision' - break; - } - time1 = timestampToTime(result.data.track[tt].reviewers[er].ctime) - time2 = timestampToTime(result.data.track[tt].reviewers[er].qtime) - reviewerItem = "
Invitation time:
" + time1 + "
" + reviewerState + detailIcon + "Score: " + result.data.track[tt].reviewers[er].rated + "reviewer: " + result.data.track[tt].reviewers[er].reviewer_name + "Review comments received: " + time2 + "
" - reviewers += reviewerItem - } - } - // 获得时间 - ttime = timestampToTime(result.data.track[tt].time) - - var Revitag = '' - if (result.data.track[tt].type == 4 && result.data.track[tt].response) { - var title = '

Response to reviewers:  

' - var lisss = '' - for (var s = 0; s < result.data.track[tt].response.length; s++) { - var xuhao = s + 1 - var Revfile_url = '' - // var tptime = timestampToTime(result.data.track[tt].time) - Revfile_url = '' + xuhao + '. Download' - //Revitag += - lisss += Revfile_url - } - Revitag = '
' + title + lisss + '
' - } - li = "
" + ttime + "
" + ttypeName + "" + reviewers + Revitag + "
" - lis += li - } - $('.wen_rong .content-box .conterecord').html(lis) - - } else { - // console.log(result.data.track.length) - - $('.wen_rong #tablist .tarrecord').css('display', 'none'); - } - // console.log(j_artc) - // Original data 附加文件 - if (j_artc.file_original == '') { - console.log('--------------') - $('.wen_rong #tablist .OriginalData').css('display', 'none'); - $('.wen_rong #tablist .Original').css('display', 'none'); - } else { - // console.log('有值') - // $('.wen_rong #tablist .OriginalData').css('display', 'block'); - // $('.wen_rong #tablist .Original').css('display', 'block'); - $('#OriginalData').html('

Original data:    ----Download

'); - } - - if (j_artc.file_pdf == '') { - $('.wen_rong #tablist .tarfipdf').css('display', 'none'); - // $('.wen_rong .rong_box .contfdf').css('display','none'); - } else { - $('.wen_rong #tablist .tarfipdf').html('PDF'); - // $('.wen_rong .rong_box .contfdf ul').html(' PDF'); - } - if (j_artc.file_html == '') { - $('.wen_rong #tablist .tarfihml').css('display', 'none'); - // $('.wen_rong .rong_box .contfhml').css('display','none'); - } else { - $('.wen_rong #tablist .tarfihml').html('HTML'); - $('.wen_rong .rong_box .contfhml ul').html(' HTML'); - } - //if (j_artc.tradition_tag == '' || j_artc.tradition == '') { - // $('.wen_rong #tablist .tarad').css('display', 'none'); - // $('.wen_rong .content-box .conterad').css('display', 'none'); - //} - if (j_artc.mhoo == '' || j_artc.mhoo == null) { - $('.wen_rong #tablist .tarmho').css('display', 'none'); - $('.wen_rong .content-box .contemho').css('display', 'none'); - } - - $('#tablist .tarfipdf a').click(function () { - $.ajax({ - type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, - data: { "article_id": j_artc.article_id, "type": 'pdf' }, - success: function (result) { - } - }) - $.ajax({ - type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: { 'type': Jour_num, 'is_detail': '1' }, - success: function (result) { - } - }); - }) - - var pdf_list = '' - if (j_artc.file_sub != '') { - var fileType = '' - var imgLink = '' - var fileTypeArr = j_artc.file_sub.split('.') - fileType = fileTypeArr[fileTypeArr.length - 1] - // console.log(fileType) - switch (fileType) { - case 'xlsx': - imgLink = 'img/xlsx.png' - break; - case 'zip': - imgLink = 'img/zip.png' - break; - case 'rar': - imgLink = 'img/zip.png' - break; - case 'docx': - imgLink = 'img/link_1.png' - break; - case 'pdf': - imgLink = 'img/link_3.jpg' - break; - default: - imgLink = 'img/otherfile.png' - break; - } - pdf_list += '
  • ' + fileType + '
    ' + - '

    Supplementary Material for doi: ' + j_artc.doi + '----Download

  • '; - } - if (j_artc.file_sub2 != '') { - pdf_list += '
  • ' + - '

    Supplementary Material for doi: ' + j_artc.doi + '----Download

  • '; - } - - $('.wen_rong .content-box .contepdf ul').html(pdf_list); - if (j_artc.file_sub == '' && j_artc.file_sub2 == '') { - $('.wen_rong #tablist .tarpdf').css('display', 'none'); - $('.wen_rong .content-box .contepdf').css('display', 'none'); - } - - // 首先显示html - if (htm_ID != null) { - $("#tablist li.tarhtmn").click() - } - - // meta添加 - // j_artc = result.data.articleInfo - // j_authior = result.data.author.authors; - // j_our = result.data.journalInfo; - // j_info = result.data.stageInfo; - - - $('title').before('' + - '' + - '' + - '' + - '' + - '') - for (var i = 0; i < j_authior.length; i++) { - $('title').before('') - } - if (j_artc.first_page != undefined) { - $('title').before('') - } - if (j_artc.last_page != undefined) { - $('title').before('') - } - - - // 右侧引入插件 - // if(result.data.journalInfo.title=='Food Therapy and Health Care'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79603', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Medical Theory and Hypothesis'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79601', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='TMR Non-Drug Therapy'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79600', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='TMR Modern Herbal Medicine'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79599', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Nursing Communications'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79598', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Integrative Medicine Discovery'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79597', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Clinical Research Communications'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79596', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Psychosomatic Medicine Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79595', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Life Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79594', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Gastroenterology & Hepatology Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79593', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Medical Data Mining'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79592', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Toxicology Communications'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79591', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Tumor Microenvironment Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79590', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='History and Philosophy of Medicine'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79589', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Precision Medicine Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79588', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Drug Combination Therapy'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79587', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='tmRxiv'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79586', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Infectious Diseases Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79585', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Aging Communications'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79584', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Cancer Advances'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79583', 'element':'#trendmd-suggestions'}") - // } - // if(result.data.journalInfo.title=='Traditional Medicine Research'){ - // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'journal_id':'79582', 'element':'#trendmd-suggestions'}") - // } - - if (Jour_num != '1') { - $('.wen_rong .right .tmr_doaj').css('display', 'none') - } else { - $('.wen_rong .right .tmr_doaj').css('display', 'none') - } - - if (Jour_num == '22') { - $('.wen_jian .right h5').html('引用:'); - $('.wen_jian .right .export .Exc_2').html(' 下载EndNote格式'); - $('.wen_jian .right .export .Exc_3').html(' 下载RIS格式'); - $('.wen_jian .right .export .Exc_4').html(' 下载BibTex格式'); - $('.wen_jian .right .export .Exc_5').html(' 下载text格式'); - $('.wenzhang .wen_rong .right>p').html('本作品根据“知识共享”国际许可协议4.0进行授权。'); - $('.keyw b').html('关键字:') - $('.fund b').html('基金项目:') - $('.coau b').html('通讯作者:') - $('.emai b').html('邮箱:') - $('.cite b').html('引用:') - $('.time b').html('出版时间:') - $('.url b').html('链接:') - $('#tablist li').html('') - $('#tablist .tabin').html('摘要') - $('.links_').css('font-size', '20px') - $('.links_ img').css({ 'width': '20px', 'height': '22px' }) - $('.right p').css('font-family', 'Times New Roman') - $('.cite span').css('font-family', 'Times New Roman') - } - - - } else { - ShowDanger("请求失败!"); + }, + error: function () { + // ShowDanger("error!"); } - }, - error: function () { - ShowDanger("error!"); - } - }) + + }) + // window.addEventListener('message', function (event) { + // // if (event.origin !== 'https://submission.tmrjournals.com') return; + // const result = event.data; + // console.log('接收到来自父页面的数据:', result); + // if (result) { + // var j_artc = { ...result } + // // 文章路径基本信息 + // var j_our = + // { + // title: result.journal_title, + // journal_id: result.journal_id, + // } + + // var j_info = {}; + // $('.wen_jian .left>span a').html(j_our.title); + + // localStorage.setItem("Journals_num", j_our.journal_id); + // if (j_artc.doi == '') { + // var doi_ = '' + // } else { + // var doi_ = 'DOI:' + j_artc.doi + // } + + // var stage_ = '' + + // if (j_artc.npp == '' || j_artc.npp == ' ') { + // var npp_ = '' + // } else { + // // if (j_info.stage_pagename == 'pp.') { + // // var npp_ = j_artc.npp + '     ' + // // } else { + // var npp_ = j_artc.npp + '     ' + // // } + // } + + // var our_time = '' + // $('.wen_jian .left>span').append(our_time); + // $('.wen_jian .left>h4').html(j_artc.title); + + + // // 文章基本作者机构 + // var str = ''; + // var j_authior = j_artc.authors; + // var stra = ''; + // var Corr_Auth = ''; + // var Corr_Emai = ''; + // var rep = ''; + // var rep_pd = ''; + // var ORC_ID = ''; + // var report_num = 0; + + // for (var i = 0; i < j_authior.length; i++) { + // rep = ''; + // var mes = ''; + // if (j_authior[i].is_first == '1') { + // rep = '#' + // rep_pd += '#' + // } + // if (j_authior[i].is_report == '1') { + // rep += '*' + // mes = ' () ' + // Corr_Auth += ' ' + j_authior[i].author_name + ','; + // Corr_Emai += ' ' + j_authior[i].email + ','; + // report_num += 1; + // } + // if (j_authior[i].orcid == '') { + // ORC_ID = '' + // } else { + // ORC_ID = '' + // } + // if (i == j_authior.length - 1) { + // stra += j_authior[i].author_name + '' + j_authior[i].ors + rep + '' + ORC_ID + mes + // } else { + // stra += j_authior[i].author_name + '' + j_authior[i].ors + rep + '' + ORC_ID + mes + ', ' + // } + // } + + // str += stra + '
    '; + + // var j_organ = j_authior.filter((e) => e.organs); + // var strg = ''; + // for (var i = 0; i < j_organ.length; i++) { + // strg += '' + j_organ[i].alias + ' ' + j_organ[i].organ_name + '
    ' + // } + // str += strg; + + // $('.wen_jian .left>div.zuo_zhe').html(str); + + // if (rep_pd == "#") { + // $('.wen_jian .left>div').each(function () { + // $(this).html($(this).html().split("#").join("")); + // }); + // } + + // if (report_num != 1) { + // $('.coau b').html('Corresponding authors:'); + // } + + // if (Jour_num == 1) { + // j_artc.abstract = j_artc.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153") + // } + + // // 文章内容 + // Corr_Auth = Corr_Auth.replace(/,$/, "") + // Corr_Emai = Corr_Emai.replace(/,$/, "") + // $('.wen_rong .content-box .contercon .abst').html(j_artc.abstract); + // $('.wen_rong .content-box .contercon .keyw span').html(j_artc.keywords); + // $('.wen_rong .content-box .contercon .fund span').html(j_artc.fund); + // $('.wen_rong .content-box .contercon .coau span').html(Corr_Auth); + // $('.wen_rong .content-box .contercon .emai span').html(Corr_Emai); + // $('.wen_rong .content-box .contercon .cite span').html(result.data.cite); + // $('.wen_rong .content-box .contercon .time span').html(j_artc.pub_date); + // $('.wen_rong .content-box .contercon .url span').html('https://doi.org/' + j_artc.doi + ''); + + + + + // if (j_artc.ordoi == '') { + // $('.wen_rong .content-box .contercon .udr').css('display', 'none') + // } else { + // $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.ordoi + ''); + // } + + // if (j_artc.abstract == '') { + // $('.wen_rong .content-box .contercon .abst').css('display', 'none') + // } + // if (j_artc.keywords == '') { + // $('.wen_rong .content-box .contercon .keyw').css('display', 'none') + // } + // if (j_artc.fund == '') { + // $('.wen_rong .content-box .contercon .fund').css('display', 'none') + // } + // if (Corr_Auth == '') { + // $('.wen_rong .content-box .contercon .coau').css('display', 'none') + // } + // if (Corr_Emai == '') { + // $('.wen_rong .content-box .contercon .emai').css('display', 'none') + // } + // if (j_artc.pub_date == '') { + // $('.wen_rong .content-box .contercon .time').css('display', 'none') + // } + // if (result.data.cite == '') { + // $('.wen_rong .content-box .contercon .cite').css('display', 'none') + // } + + // //$('.wen_rong .content-box .conterad h1').html(j_artc.tradition_tag); + // //$('.wen_rong .content-box .conterad p').html(j_artc.tradition); + // //$('.wen_rong #tablist .tarad').html(j_artc.tradition_tag); + // $('.wen_rong .content-box .contemho').html(j_artc.mhoo); + + + // if (j_artc.mhoo == '' || j_artc.mhoo == null) { + // $('.wen_rong #tablist .tarmho').css('display', 'none'); + // $('.wen_rong .content-box .contemho').css('display', 'none'); + // } + + + // // 首先显示html + // if (htm_ID != null) { + // $("#tablist li.tarhtmn").click() + + + + // } + + + + // $('title').before('' + + // '' + + // '' + + // '' + + // '' + + // '') + // for (var i = 0; i < j_authior.length; i++) { + // $('title').before('') + // } + // if (j_artc.first_page != undefined) { + // $('title').before('') + // } + // if (j_artc.last_page != undefined) { + // $('title').before('') + // } + + + + // if (Jour_num != '1') { + // $('.wen_rong .right .tmr_doaj').css('display', 'none') + // } else { + // $('.wen_rong .right .tmr_doaj').css('display', 'none') + // } + + // if (Jour_num == '22') { + // $('.wen_jian .right h5').html('引用:'); + // $('.wen_jian .right .export .Exc_2').html(' 下载EndNote格式'); + // $('.wen_jian .right .export .Exc_3').html(' 下载RIS格式'); + // $('.wen_jian .right .export .Exc_4').html(' 下载BibTex格式'); + // $('.wen_jian .right .export .Exc_5').html(' 下载text格式'); + // $('.wenzhang .wen_rong .right>p').html('本作品根据“知识共享”国际许可协议4.0进行授权。'); + // $('.keyw b').html('关键字:') + // $('.fund b').html('基金项目:') + // $('.coau b').html('通讯作者:') + // $('.emai b').html('邮箱:') + // $('.cite b').html('引用:') + // $('.time b').html('出版时间:') + // $('.url b').html('链接:') + // $('#tablist li').html('') + // $('#tablist .tabin').html('摘要') + // $('.links_').css('font-size', '20px') + // $('.links_ img').css({ 'width': '20px', 'height': '22px' }) + // $('.right p').css('font-family', 'Times New Roman') + // $('.cite span').css('font-family', 'Times New Roman') + // } + + + // } + + + + // }); + + // 新 HTML + + + } else { + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticleDetail', + data: { + "article_id": a_ID + }, + success: function (result) { + $('.wenzhang .wen_rong .left').css({ + 'background-color': '#f4fafd' + }) + $('.wenzhang .wen_rong .left .rong_box').css({ + 'background-color': '#fff', + 'margin-top': '0px' + }) + $('.wenzhang .wen_rong .left .mb_aform').css({ + 'background-color': '#fff' + }) + if (result.code == 0) { + var html_type = result.data.articleInfo.html_type + var has_html = result.data.articleInfo.has_html + if (has_html == 0) { + $('.wen_rong #tablist .tarhtmn').css('display', 'none'); + $('.wen_rong #tablist .tarfihml').css('display', 'none'); + $('.wen_rong .content-box .conthtmn').css('display', 'none'); + } + + // 文章Cite this article + var j_artc = result.data.articleInfo + + $('.wen_jian .right>p').html(result.data.cite); + + if ((Math.round(Date.parse(new Date()) / 1000) - j_artc.ctime) / 86400 >= 21) { + $('.wen_jian .right>p').after('Google Scholar'); + } + + var lnk_ = ''; + if (j_artc.file_pdf != '') { + lnk_ += ' PDF    ' + } + + if (j_artc.file_html != '') { + lnk_ += '     HTML' + } + + if (j_artc.article_id == '172') { + lnk_ += '    ' + } + + $('.wen_jian .right>.links_').html(lnk_); + if (Jour_num != 13) { + //获取文章引用 + getCitations(j_artc.doi, a_ID); + // 点击增加数字 + $('.txt_html').click(function () { + var num = $(this).next().html(); + $.ajax({ + type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, + data: { "article_id": a_ID, "type": 'html' }, + success: function (result) { + } + }) + $.ajax({ + type: 'post', url: apiUrl + 'super/Publish/addVisitNum', + data: { 'type': Jour_num, 'is_detail': '1' }, + success: function (result) { + } + }); + $(this).next().html(num); + }) + $('.txt_pdf').click(function () { + var num = $(this).next().html(); + $.ajax({ + type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, + data: { "article_id": a_ID, "type": 'pdf' }, + success: function (result) { + } + }) + $.ajax({ + type: 'post', url: apiUrl + 'super/Publish/addVisitNum', + data: { 'type': Jour_num, 'is_detail': '1' }, + success: function (result) { + } + }); + $(this).next().html(num); + }) + } else { + $('.article-quote').css('display', 'none'); + $('.mb_aform').css('display', 'none'); + $('.pos_ter').css('display', 'none'); + $('.footer').css('display', 'none'); + $('.wen_rong .right').css('display', 'none'); + $('.wenzhang .wen_rong .left').css('width', '100%'); + } + + + + var NotTeX_ = '' + // if(j_artc.endnote!=''){ + // NotTeX_+='EndNote(RIS)  ' + // } + if (j_artc.bibtex != '') { + NotTeX_ += 'BibTeX' + } + $('.wen_jian .right>.Note_TeX').html(NotTeX_); + + + // 点击复制和下载 + $('.Exc_2').click(function () { + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false, + data: { "article_id": a_ID }, + success: function (result) { + var a = document.createElement('a'); + a.href = result.data.url; + a.download = '' + a.click(); + } + }) + }) + $('.Exc_3').click(function () { + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false, + data: { "article_id": a_ID }, + success: function (result) { + var a = document.createElement('a'); + a.href = result.data.url; + a.download = '' + a.click(); + } + }) + }) + $('.Exc_4').click(function () { + var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id') + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false, + data: { "article_id": a_ID }, + success: function (result) { + var a = document.createElement('a'); + a.href = result.data.url; + a.download = '' + a.click(); + } + }) + }) + $('.Exc_5').click(function () { + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false, + data: { "article_id": a_ID }, + success: function (result) { + var a = document.createElement('a'); + a.href = result.data.url; + a.download = '' + a.click(); + } + }) + }) + + + // 文章路径基本信息 + var j_our = result.data.journalInfo; + var j_info = result.data.stageInfo; + $('.wen_jian .left>span a').html(j_our.title); + $('.wen_jian .left>span a').attr('href', '/' + j_our.usx); + localStorage.setItem("Journals_num", j_our.journal_id); + if (j_artc.doi == '') { + var doi_ = '' + } else { + var doi_ = 'DOI:' + j_artc.doi + } + if (j_info.stage_no == '0') { + var stage_ = '' + } else { + var stage_ = 'Issue (' + j_info.stage_no + '): ' + } + if (j_artc.npp == '' || j_artc.npp == ' ') { + var npp_ = '' + } else { + if (j_info.stage_pagename == 'pp.') { + var npp_ = j_artc.npp + '     ' + } else { + var npp_ = j_info.stage_pagename + j_artc.npp + '     ' + } + } + + if (localStorage.Journals_title == '经典中医研究') { + if (j_info.stage_vol == '1') { + j_info.stage_vol = '一' + } + if (j_info.stage_vol == '2') { + j_info.stage_vol = '二' + } + if (j_info.stage_vol == '3') { + j_info.stage_vol = '三' + } + if (j_info.stage_vol == '4') { + j_info.stage_vol = '四' + } + if (j_info.stage_vol == '5') { + j_info.stage_vol = '五' + } + if (j_info.stage_vol == '6') { + j_info.stage_vol = '六' + } + var our_time = '  |   ' + j_info.stage_year + '年第' + j_info.stage_vol + '卷  |   第' + j_info.stage_no + '期:' + npp_ + doi_; + } else { + var our_time = '  |   ' + j_info.stage_year + ', Vol. ' + j_info.stage_vol + '  |   ' + stage_ + npp_ + doi_; + } + + $('.wen_jian .left>span').append(our_time); + + if (j_artc.other_state == 0) { + var otStat = '' + } else if (j_artc.other_state == 1) { + var otStat = 'Editorial Expression of Concern' + } else if (j_artc.other_state == 2) { + var otStat = 'Retracted' + } + + $('.wen_jian .left>h4').html(otStat + j_artc.title); + + + // 文章基本作者机构 + var str = ''; + var j_authior = result.data.author.authors; + var stra = ''; + var Corr_Auth = ''; + var Corr_Emai = ''; + var rep = ''; + var rep_pd = ''; + var ORC_ID = ''; + var report_num = 0; + + for (var i = 0; i < j_authior.length; i++) { + rep = ''; + var mes = ''; + if (j_authior[i].is_first == '1') { + rep = '#' + rep_pd += '#' + } + if (j_authior[i].is_report == '1') { + rep += '*' + mes = ' () ' + Corr_Auth += ' ' + j_authior[i].author_name + ','; + Corr_Emai += ' ' + j_authior[i].email + ','; + report_num += 1; + } + if (j_authior[i].orcid == '') { + ORC_ID = '' + } else { + ORC_ID = '' + } + if (i == j_authior.length - 1) { + stra += j_authior[i].author_name + '' + j_authior[i].ors + rep + '' + ORC_ID + mes + } else { + stra += j_authior[i].author_name + '' + j_authior[i].ors + rep + '' + ORC_ID + mes + ', ' + } + } + + str += stra + '
    '; + + var j_organ = result.data.author.organs; + var strg = ''; + for (var i = 0; i < j_organ.length; i++) { + strg += '' + j_organ[i].alias + ' ' + j_organ[i].organ_name + '
    ' + } + str += strg; + + $('.wen_jian .left>div.zuo_zhe').html(str); + $('.wen_jian .left>div.zuo_zhe>sup').css({ + color: commonSupColor, + }); + + if (rep_pd == "#") { + $('.wen_jian .left>div').each(function () { + $(this).html($(this).html().split("#").join("")); + }); + } + + if (report_num != 1) { + $('.coau b').html('Corresponding authors:'); + } + + if (Jour_num == 1) { + j_artc.abstract = j_artc.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153") + } + + // 文章内容 + Corr_Auth = Corr_Auth.replace(/,$/, "") + Corr_Emai = Corr_Emai.replace(/,$/, "") + + $('.wen_rong .content-box .contercon .abst').html(j_artc.abstract); + let strongElements = document.querySelectorAll('.wen_rong .content-box .contercon .abst strong'); + + // 遍历每个 标签 + strongElements.forEach(function (element) { + // 检查 标签内的文本内容是否为 "Background:", "Methods:", "Results:", "Conclusion:" + + if (element.textContent.includes("Background:") || element.textContent.includes("Methods:") || + element.textContent.includes("Results:") || element.textContent.includes("Conclusion:") || element.textContent.includes("Conclusions:")) { + // 修改该 标签的样式,改变颜色 + element.style.color = commonSupColor; // 设置颜色为黑色(你可以修改为其他颜色) + } + }); + $('.wen_rong .content-box .contercon .keyw span').html(j_artc.keywords); + $('.wen_rong .content-box .contercon .fund span').html(j_artc.fund); + $('.wen_rong .content-box .contercon .coau span').html(Corr_Auth); + $('.wen_rong .content-box .contercon .emai span').html(Corr_Emai); + $('.wen_rong .content-box .contercon .cite span').html(result.data.cite); + $('.wen_rong .content-box .contercon .time span').html(j_artc.pub_date); + $('.wen_rong .content-box .contercon .url span').html('https://doi.org/' + j_artc.doi + ''); + + + // if (Jour_num == '1' && j_artc.article_id <= '1540') { + // $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + ''); + // } else if (Jour_num == '14' && j_artc.article_id <= '1540') { + // $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.doi.replace("10.53388", "10.12032") + ''); + // } else { + // $('.wen_rong .content-box .contercon .udr').css('display', 'none') + // } + + if (j_artc.ordoi == '') { + $('.wen_rong .content-box .contercon .udr').css('display', 'none') + } else { + $('.wen_rong .content-box .contercon .udr span').html('https://doi.org/' + j_artc.ordoi + ''); + } + + if (j_artc.abstract == '') { + $('.wen_rong .content-box .contercon .abst').css('display', 'none') + } + if (j_artc.keywords == '') { + $('.wen_rong .content-box .contercon .keyw').css('display', 'none') + } + if (j_artc.fund == '') { + $('.wen_rong .content-box .contercon .fund').css('display', 'none') + } + if (Corr_Auth == '') { + $('.wen_rong .content-box .contercon .coau').css('display', 'none') + } + if (Corr_Emai == '') { + $('.wen_rong .content-box .contercon .emai').css('display', 'none') + } + if (j_artc.pub_date == '') { + $('.wen_rong .content-box .contercon .time').css('display', 'none') + } + if (result.data.cite == '') { + $('.wen_rong .content-box .contercon .cite').css('display', 'none') + } + + //$('.wen_rong .content-box .conterad h1').html(j_artc.tradition_tag); + //$('.wen_rong .content-box .conterad p').html(j_artc.tradition); + //$('.wen_rong #tablist .tarad').html(j_artc.tradition_tag); + $('.wen_rong .content-box .contemho').html(j_artc.mhoo); + + // 新的HTML + + if (html_type == 0) { + // 原 HTML + $('.wen_rong .content-box .conthtmn').html(` +
    +
    ` + ); + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticleDetailHtml', + data: { + "article_id": a_ID + }, + success: function (result) { + if (result.code == 0) { + + var arr = result.data.mains; + var str = ''; + for (var i = 0; i < arr.length; i++) { + let sectionId = 'section-' + i; // 生成唯一的 ID + if (arr[i].width == 0) { + if (arr[i].is_title == 1) { + if (arr[i].content.indexOf("

    ") >= 0) { + str += `

    ${arr[i].content}
    ` + } else { + str += `

    ${arr[i].content}

    ` + } + } else { + if (arr[i].content.indexOf("

    ") >= 0) { + str += arr[i].content.replace("

    ", `

    `); + } else { + str += `

    ${arr[i].content}

    ` + } + } + } else { + var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + arr[i].content; + var fun = "picPreview('" + picsrc + "');" + // console.log(fun) + str += `
    ` + "

    ` + arr[i].note + "

    " + } + } + str = `
    ${str}
    ` + $('.wen_rong .content-box .conthtmn').html(str); + + + // 引用 + if (result.data.refers.length > 0) { // 如果有引用数据 + var refs = ''; + var xuhao = 0; + for (var rr = 0; rr < result.data.refers.length; rr++) { + // 如果格式不正确,或者信息不全 + let item = ''; + if (result.data.refers[rr].refer_type == 'journal' && result.data.refers[rr].doilink != '') { + // journal 类型 + xuhao++; + item = "

    " + xuhao + '. ' + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].joura + ". " + result.data.refers[rr].dateno + "."; + // 在 "Available at:" 之前插入
    标签 + item += "
    Available at: " + result.data.refers[rr].doilink + "

    "; + refs += item; + } else if (result.data.refers[rr].refer_type == 'book' && result.data.refers[rr].isbn != '') { + // book 类型 + xuhao++; + item = "

    " + xuhao + '. ' + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].dateno + "."; + // 在 "Available at:" 之前插入
    标签 + item += "
    ISBN: " + result.data.refers[rr].isbn + "

    "; + refs += item; + } else if (result.data.refers[rr].refer_type == 'other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15) { + // other 类型,检查 refer_frag 中是否有 "Available at:" + xuhao++; + item = "

    " + xuhao + '. '; + // 如果 refer_frag 包含 "Available at:",在其前面插入
    标签 + if (result.data.refers[rr].refer_frag.indexOf('Available at:') !== -1) { + item += result.data.refers[rr].refer_frag.replace('Available at:', '
    Available at:'); + } else { + item += result.data.refers[rr].refer_frag; + } + item += ". 

    "; + refs += item; + } else { + continue; + } + } + // 将生成的所有引用内容插入到页面中 + $('.wen_rong .content-box .conthtmn').append('

    References

    ' + refs + '
    '); + } + + initArticleHtml(arr, result.data.refers, html_type) + } + }, + error: function () { + // ShowDanger("error!"); + } + + }) + } else if (html_type == 1) { + //外链 + $('.wen_rong #tablist .tarhtmn').css('display', 'none'); + $('.wen_rong .content-box .conthtmn').css('display', 'none'); + + } else if (html_type == 2) { + // 新 HTML + $('.wen_rong .content-box .conthtmn').html(` +
    +
    ` + ); + $.ajax({ + type: 'post', url: apiUrl + 'api/Article/getArticleDetailHtmlFor2', + data: { + "article_id": a_ID + }, + success: function (result) { + if (result.code == 0) { + + var arr = result.data.mains; + initArticleHtmlFun(arr, result, html_type) + + } + }, + error: function () { + // ShowDanger("error!"); + } + + }) + } + + + // 稿件跟踪 + // 图标------------ + var detailIcon = '' + var lis = '' + + if (result.data.track && result.data.track.length > 0) { + // console.log(result.data.track.length,33) + // $('.wen_rong #tablist .tarrecord').css('display', 'block'); + // $('.wen_rong .content-box .conterecord').text(333) + for (var tt = 0; tt < result.data.track.length; tt++) { + var ttypeName = '' + var li = "" + var ttime = '' + var typeClass = '' + switch (result.data.track[tt].type) { + case (0): + ttypeName = 'Received' + break; + case (1): + ttypeName = 'With editor' + break; + case (2): + ttypeName = 'Under review' + break; + case (3): + ttypeName = 'Reject' + break; + case (4): + ttypeName = 'Revision' + break; + case (5): + ttypeName = 'Accept' + break; + case (6): + ttypeName = 'Pre-accept' + break; + case (7): + ttypeName = 'Proof' + break; + case (8): + ttypeName = 'Online' + break; + } + // 二级的时间 + var reviewers = "" + if (result.data.track[tt].reviewers && result.data.track[tt].reviewers.length > 0) { + shenCode = [] + for (var er = 0; er < result.data.track[tt].reviewers.length; er++) { + var neiTag = '' + var reviewerState = '' + var reviewerItem = '' + var time1 = '' // 创建时间 + var time2 = '' // 回应时间 + + // 初审和复审的审核意见 + // var fushenContent = '' + var chushenContent = '' + var timess = '' + // 进入页面前清空 + if (result.data.track[tt].type == 2 && result.data.track[tt].reviewers[er].question != null) { + chushenContent = '' + timess = '' + chushenContent = result.data.track[tt].reviewers[er].question.comments + timess = timestampToTime(result.data.track[tt].reviewers[er].question.ctime) + + shenCode.push("

    Comments:
    " + chushenContent + "

    Review comments received: " + timess + "

    ") + + // detailIcon = '' + detailIcon = '(Detail)' + } + switch (result.data.track[tt].reviewers[er].state) { + case (1): + reviewerState = 'Accept with major revision' + break; + case (2): + reviewerState = 'Reject' + break; + case (3): + reviewerState = 'Accept with minor revision' + break; + } + time1 = timestampToTime(result.data.track[tt].reviewers[er].ctime) + time2 = timestampToTime(result.data.track[tt].reviewers[er].qtime) + reviewerItem = "
    Invitation time:
    " + time1 + "
    " + reviewerState + detailIcon + "Score: " + result.data.track[tt].reviewers[er].rated + "reviewer: " + result.data.track[tt].reviewers[er].reviewer_name + "Review comments received: " + time2 + "
    " + reviewers += reviewerItem + } + } + // 获得时间 + ttime = timestampToTime(result.data.track[tt].time) + + var Revitag = '' + if (result.data.track[tt].type == 4 && result.data.track[tt].response) { + var title = '

    Response to reviewers:  

    ' + var lisss = '' + for (var s = 0; s < result.data.track[tt].response.length; s++) { + var xuhao = s + 1 + var Revfile_url = '' + // var tptime = timestampToTime(result.data.track[tt].time) + Revfile_url = '' + xuhao + '. Download' + //Revitag += + lisss += Revfile_url + } + Revitag = '
    ' + title + lisss + '
    ' + } + li = "
    " + ttime + "
    " + ttypeName + "" + reviewers + Revitag + "
    " + lis += li + } + $('.wen_rong .content-box .conterecord').html(lis) + + } else { + // console.log(result.data.track.length) + + $('.wen_rong #tablist .tarrecord').css('display', 'none'); + } + // console.log(j_artc) + // Original data 附加文件 + if (j_artc.file_original == '') { + console.log('--------------') + $('.wen_rong #tablist .OriginalData').css('display', 'none'); + $('.wen_rong #tablist .Original').css('display', 'none'); + } else { + // console.log('有值') + // $('.wen_rong #tablist .OriginalData').css('display', 'block'); + // $('.wen_rong #tablist .Original').css('display', 'block'); + $('#OriginalData').html('

    Original data:    ----Download

    '); + } + + if (j_artc.file_pdf == '') { + $('.wen_rong #tablist .tarfipdf').css('display', 'none'); + // $('.wen_rong .rong_box .contfdf').css('display','none'); + } else { + $('.wen_rong #tablist .tarfipdf').html('PDF'); + // $('.wen_rong .rong_box .contfdf ul').html(' PDF'); + } + if (j_artc.file_html == '') { + $('.wen_rong #tablist .tarfihml').css('display', 'none'); + // $('.wen_rong .rong_box .contfhml').css('display','none'); + } else { + $('.wen_rong #tablist .tarfihml').html('HTML'); + $('.wen_rong .rong_box .contfhml ul').html(' HTML'); + } + //if (j_artc.tradition_tag == '' || j_artc.tradition == '') { + // $('.wen_rong #tablist .tarad').css('display', 'none'); + // $('.wen_rong .content-box .conterad').css('display', 'none'); + //} + if (j_artc.mhoo == '' || j_artc.mhoo == null) { + $('.wen_rong #tablist .tarmho').css('display', 'none'); + $('.wen_rong .content-box .contemho').css('display', 'none'); + } + + $('#tablist .tarfipdf a').click(function () { + $.ajax({ + type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, + data: { "article_id": j_artc.article_id, "type": 'pdf' }, + success: function (result) { + } + }) + $.ajax({ + type: 'post', url: apiUrl + 'super/Publish/addVisitNum', + data: { 'type': Jour_num, 'is_detail': '1' }, + success: function (result) { + } + }); + }) + + var pdf_list = '' + if (j_artc.file_sub != '') { + var fileType = '' + var imgLink = '' + var fileTypeArr = j_artc.file_sub.split('.') + fileType = fileTypeArr[fileTypeArr.length - 1] + // console.log(fileType) + switch (fileType) { + case 'xlsx': + imgLink = 'img/xlsx.png' + break; + case 'zip': + imgLink = 'img/zip.png' + break; + case 'rar': + imgLink = 'img/zip.png' + break; + case 'docx': + imgLink = 'img/link_1.png' + break; + case 'pdf': + imgLink = 'img/link_3.jpg' + break; + default: + imgLink = 'img/otherfile.png' + break; + } + pdf_list += '
  • ' + fileType + '
    ' + + '

    Supplementary Material for doi: ' + j_artc.doi + '----Download

  • '; + } + if (j_artc.file_sub2 != '') { + pdf_list += '
  • ' + + '

    Supplementary Material for doi: ' + j_artc.doi + '----Download

  • '; + } + + $('.wen_rong .content-box .contepdf ul').html(pdf_list); + if (j_artc.file_sub == '' && j_artc.file_sub2 == '') { + $('.wen_rong #tablist .tarpdf').css('display', 'none'); + $('.wen_rong .content-box .contepdf').css('display', 'none'); + } + + // 首先显示html + if (htm_ID != null) { + $("#tablist li.tarhtmn").click() + } + + // meta添加 + // j_artc = result.data.articleInfo + // j_authior = result.data.author.authors; + // j_our = result.data.journalInfo; + // j_info = result.data.stageInfo; + + + $('title').before('' + + '' + + '' + + '' + + '' + + '') + for (var i = 0; i < j_authior.length; i++) { + $('title').before('') + } + if (j_artc.first_page != undefined) { + $('title').before('') + } + if (j_artc.last_page != undefined) { + $('title').before('') + } + + + // 右侧引入插件 + // if(result.data.journalInfo.title=='Food Therapy and Health Care'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79603', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Medical Theory and Hypothesis'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79601', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='TMR Non-Drug Therapy'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79600', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='TMR Modern Herbal Medicine'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79599', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Nursing Communications'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79598', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Integrative Medicine Discovery'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79597', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Clinical Research Communications'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79596', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Psychosomatic Medicine Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79595', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Life Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79594', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Gastroenterology & Hepatology Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79593', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Medical Data Mining'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79592', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Toxicology Communications'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79591', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Tumor Microenvironment Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79590', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='History and Philosophy of Medicine'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79589', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Precision Medicine Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79588', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Drug Combination Therapy'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79587', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='tmRxiv'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79586', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Infectious Diseases Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79585', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Aging Communications'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79584', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Cancer Advances'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'website_id':'79583', 'element':'#trendmd-suggestions'}") + // } + // if(result.data.journalInfo.title=='Traditional Medicine Research'){ + // document.getElementsByTagName('script')[1].setAttribute("data-trendmdconfig","{'journal_id':'79582', 'element':'#trendmd-suggestions'}") + // } + + if (Jour_num != '1') { + $('.wen_rong .right .tmr_doaj').css('display', 'none') + } else { + $('.wen_rong .right .tmr_doaj').css('display', 'none') + } + + if (Jour_num == '22') { + $('.wen_jian .right h5').html('引用:'); + $('.wen_jian .right .export .Exc_2').html(' 下载EndNote格式'); + $('.wen_jian .right .export .Exc_3').html(' 下载RIS格式'); + $('.wen_jian .right .export .Exc_4').html(' 下载BibTex格式'); + $('.wen_jian .right .export .Exc_5').html(' 下载text格式'); + $('.wenzhang .wen_rong .right>p').html('本作品根据“知识共享”国际许可协议4.0进行授权。'); + $('.keyw b').html('关键字:') + $('.fund b').html('基金项目:') + $('.coau b').html('通讯作者:') + $('.emai b').html('邮箱:') + $('.cite b').html('引用:') + $('.time b').html('出版时间:') + $('.url b').html('链接:') + $('#tablist li').html('') + $('#tablist .tabin').html('摘要') + $('.links_').css('font-size', '20px') + $('.links_ img').css({ 'width': '20px', 'height': '22px' }) + $('.right p').css('font-family', 'Times New Roman') + $('.cite span').css('font-family', 'Times New Roman') + } + + + } else { + ShowDanger("请求失败!"); + } + }, + error: function () { + ShowDanger("error!"); + } + }) + } + // 右侧话题 $.ajax({ @@ -8178,7 +8347,7 @@ function article_con() { if (str != '') { $('.wenzhang .wen_rong .right .pos_topic').html(str); $('.wenzhang .wen_rong .right .pos_topic').css('border-bottom', '2px solid #dcdcdc') - $('.wenzhang .wen_rong .right .pos_topic').after('

    '); + // $('.wenzhang .wen_rong .right .pos_topic').after('

    '); } @@ -8304,6 +8473,9 @@ function article_con() { if (result.code == 0) { var arr = result.data; var str = ""; + $('.corr_late>ul').css({ 'padding': '0', 'border-bottom': 'none' }) + + for (var i = 0; i < arr.length; i++) { str += '
  • ' + arr[i].title + '' + '

    ' + arr[i].abbr + ', ' + arr[i].journal.title + ', ' + arr[i].stage.stage_year + '

  • ' @@ -8315,12 +8487,351 @@ function article_con() { if (arr == '') { $('.corr_late_bg').css('display', 'none'); } + $('.wenzhang .wen_rong .right .corr_late p').css({ 'padding': '0 0 10px 0' }) + $('.wenzhang .wen_rong .right').css('border-bottom', 'none'); + } } }) } +function shouldColor(rowIndex, cellIndex, row) { + // 判断是否是最左侧的单元格 + if (cellIndex === 0 && row[0].rowspan) { + const rowspan = row[0].rowspan; // 获取最左侧单元格的 `rowspan` + const startRow = rowIndex; // 当前单元格所在的行 + const endRow = startRow + rowspan - 1; // 跨越的最后一行 + + // 判断当前行是否在 `rowspan` 范围内,并且是奇数行 + return rowIndex >= startRow && rowIndex <= endRow && (rowIndex + 1) % 2 !== 0; // 判断是否为奇数行 + } + return false; +} +function addRowIdToData(data) { + let idCounter = 0; // Initialize an ID counter + + // Iterate through each row + for (let i = 0; i < data.length; i++) { + // Assign an ID to the current row + data[i].rowId = `row-${idCounter}`; + idCounter++; + + // Check for rowspan and propagate the same ID to merged cells + for (let j = 0; j < data[i].length; j++) { + const cell = data[i][j]; + + // If the cell has a rowspan attribute, propagate the same ID across all affected rows + if (cell.rowspan && cell.rowspan > 1) { + for (let k = 0; k < cell.rowspan; k++) { + if (data[i + k]) { + // Ensure that all cells in the same column and across the rows have the same rowId + data[i + k][j].rowId = `row-${idCounter - 1}`; + } + } + } + } + } + + const seenIds = []; + data.map((row, rowIndex) => { + row.map((cell, cellIndex) => { + if (cell.rowId) { + row.rowId = cell.rowId + } + }) + }) + + + data.forEach(row => { + if (row.rowId && !seenIds.includes(row.rowId)) { + seenIds.push(row.rowId); // Mark this rowId as seen + } + }); + + + console.log('data at line 最新8534:', seenIds, data) + const rowIds = seenIds.filter((_, index) => index % 2 === 0); + const rowData = data; + console.log(rowIds); + return { rowData, rowIds } + +} + + + +function initArticleHtmlFun(arr, result, html_type) { + var str = ''; + var htmlContent = '' + htmlContent += arr.map((item, index) => { + //批注 + let contentHtml = ''; + let sectionId = 'section-' + index; // 生成唯一的 ID + // 判断是否是图片 + if (item.type == 1) { + + var picsrc = 'https://submission.tmrjournals.com/public/articleImage/' + item.image.url; + var fun = "picPreview('" + picsrc + "');" + + contentHtml = ` +

    + + +

    ${item.image.note ? item.image.note : '' + }

    +

    + `; + } else if (item.type == 2) { + var tableList = JSON.parse(item.table.table_data); + + + const { header, content } = splitTable(tableList); + var { rowData, rowIds } = addRowIdToData(content) + console.log('content at line 8542:', rowIds, rowData) + // console.log('contentList at line 8571:', contentList) + + contentHtml = ` +
    + +${item.table.title ? item.table.title : ''} + +${header + .map((row, i) => { + return ` + + ${row + .map((cell, cellIndex) => { + return ` + + `; + }) + .join('')} + + `; + }) + .join('')} +${rowData + .map((row, i) => { + return ` + + ${row + .map((cell, cellIndex) => { + return ` + + `; + }) + .join('')} + + `; + }) + .join('')} +
    + ${cell.text || ''} +
    + ${cell.text || ''} +
    +

    ${item.table.note ? item.table.note : '' + }

    +
    +`; + } else { + + contentHtml = `

    ${item.content}

    `; + + + + } + + // 判断是否是表格类型 + + return contentHtml; + }).join(''); + htmlContent = `
    ${htmlContent}
    ` + $('.wen_rong .content-box .conthtmn').html(htmlContent); + + if (result.data.refers.length > 0) { // 如果有引用数据 + var refs = ''; + var xuhao = 0; + for (var rr = 0; rr < result.data.refers.length; rr++) { + // 如果格式不正确,或者信息不全 + let item = ''; + if (result.data.refers[rr].refer_type == 'journal' && result.data.refers[rr].doilink != '') { + // journal 类型 + xuhao++; + item = "

    " + `${xuhao}. ` + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].joura + ". " + result.data.refers[rr].dateno + "."; + // 在 "Available at:" 之前插入
    标签 + item += "
    Available at: " + result.data.refers[rr].doilink + " 

    "; + refs += item; + } else if (result.data.refers[rr].refer_type == 'book' && result.data.refers[rr].isbn != '') { + // book 类型 + xuhao++; + item = "

    " + `${xuhao}. ` + result.data.refers[rr].author + ' ' + result.data.refers[rr].title + ". " + result.data.refers[rr].dateno + "."; + // 在 "Available at:" 之前插入
    标签 + item += "
    ISBN: " + result.data.refers[rr].isbn + "

    "; + refs += item; + } else if (result.data.refers[rr].refer_type == 'other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15) { + // other 类型,检查 refer_frag 中是否有 "Available at:" 链接 + xuhao++; + item = "

    " + `${xuhao}. ` + // 检查 refer_frag 中是否包含 "Available at:" + if (result.data.refers[rr].refer_frag.indexOf('Available at:') !== -1) { + // 如果包含 "Available at:",则在其前面插入
    标签 + item += result.data.refers[rr].refer_frag.replace('Available at:', '
    Available at:'); + } else { + item += result.data.refers[rr].refer_frag; + } + item += ". 

    "; + refs += item; + } else { + continue; + } + } + // 将生成的所有引用内容插入到页面中 + $('.wen_rong .content-box .conthtmn').append('

    References

    ' + refs + '
    '); + } + initArticleHtml(arr, result.data.refers, html_type) +} function initArticleHtml(htmlData, refs, type) { + + $('.wen_rong .content-box .conthtmn .Ptitle').css({ + background: 'rgb(222, 235, 247)', + 'color': commonTableTitleColor, // No !important here + 'text-align': 'center', // No !important here + 'border': '1px solid rgba(222, 234, 247, 0.1)', + 'border-radius': '10px', + 'font-size': '16px', + 'box-shadow': '0 4px 4px rgba(222, 234, 247, 0.6)', + }); + $('.wen_rong .content-box .conthtmn .oddColor > td').css({ + background: 'rgb(250, 231, 232)', + + }); + + + // Apply styles to inside .Ptitle using setProperty with !important + $('.wen_rong .content-box .conthtmn .Ptitle > b').each(function () { + this.style.setProperty('font-weight', 'bold', 'important'); + + }); + $('.wen_rong .content-box .conthtmn .Ptitle > i').each(function () { + this.style.setProperty('font-style', 'normal', 'important'); + this.style.setProperty('color', commonTableTitleColor, 'important'); + }); + $('.wen_rong .content-box .conthtmn .Ptitle p > strong').each(function () { + this.style.setProperty('font-weight', 'bold', 'important'); + + }); + $('.wen_rong .content-box .conthtmn .Ptitle p').each(function () { + this.style.setProperty('text-align', 'center', 'important'); + + }); + $('.wen_rong .content-box .conthtmn .Ptitle em').each(function () { + this.style.setProperty('font-style', 'normal', 'important'); + this.style.setProperty('color', commonTableTitleColor, 'important'); + }); + $('.wen_rong .content-box .conthtmn .commonTableTitleColor').each(function () { + + this.style.setProperty('color', commonTableTitleColor, 'important'); + }); + + + // 获取所有段落 + const allParagraphs = document.querySelectorAll('.pMain'); + let abstractEndIndex = -1; + let citationEndIndex = -1; + + // 查找包含“Abstract”文本的段落(无论被标签包裹多少层) + allParagraphs.forEach((p, index) => { + const text = p.innerText.trim().toLowerCase(); + if (text === 'abstract') { + abstractEndIndex = index; + } + if (text === 'citation') { + citationEndIndex = index; + console.log('CitationEndIndex at line 8765:', citationEndIndex) + } + }); + + // 从 Abstract 段落之后开始查找并高亮标题词 + if (abstractEndIndex !== -1) { + for (let i = abstractEndIndex + 1; i < allParagraphs.length; i++) { + const elements = allParagraphs[i].querySelectorAll('strong, b'); + elements.forEach((element) => { + const text = element.textContent.trim(); + if (["Background:", "Methods:", "Results:", "Conclusion:", "Conclusions:"].includes(text)) { + element.style.color = commonSupColor; + } + }); + } + } + if (citationEndIndex !== -1 && citationEndIndex + 1 < allParagraphs.length) { + const nextParagraph = allParagraphs[citationEndIndex + 1]; + nextParagraph.style.color = commonSupColor; + } + $('.wen_rong .content-box .conthtmn sup').each(function () { + var textContent = $(this).text().trim(); // 获取并清理文本内容 + + // 判断文本是否是纯数字 + if (/^\d+$/.test(textContent)) { + this.style.setProperty('color', commonSupColor, 'important'); + } + // 判断文本是否包含 "&" + else if (/&/.test(textContent)) { + this.style.setProperty('color', commonSupColor, 'important'); + } + else if (/ỻ/.test(textContent)) { + this.style.setProperty('color', commonSupColor, 'important'); + } + // 判断文本是否包含 "*" + else if (/\*/.test(textContent)) { + this.style.setProperty('color', commonSupColor, 'important'); + } + // 判断文本是否包含 "#" + else if (/#/.test(textContent)) { + this.style.setProperty('color', commonSupColor, 'important'); + } + // 判断文本是否为由数字和逗号组成的字符串(例如 "1,2,3") + // 判断文本是否为由数字和逗号组成,且逗号两边允许有空格(例如 "1, 2, 3") + else if (/^\d+(\s*,\s*\d+)*$/.test(textContent)) { + this.style.setProperty('color', commonSupColor, 'important'); + } + }); + + + $('.wen_rong .content-box .conthtmn b i').each(function () { + + this.style.setProperty('font-weight', 'bold', 'important'); + }); + // $('.wen_rong .content-box .conthtmn .thumbnailTableBox td sup').each(function () { + + // this.style.setProperty('color', commonSupColor, 'important'); + // }); + + + $('.wen_rong .content-box .conthtmn .Ptitle').each(function () { + this.style.setProperty('color', commonTableTitleColor, 'important'); + this.style.setProperty('text-align', 'center', 'important'); + }); + $('.wen_rong .content-box .conthtmn p b i').each(function () { + this.style.setProperty('font-style', 'normal', 'important'); + }); + + var navLinks = { content: [], // 存放 content 类型的链接 image: [], // 存放 image 类型的链接 @@ -8564,6 +9075,29 @@ function isHeaderRow(rowIndex, table) { return rowIndex < head[0].rowspan; // 假设前两行是表头 } +function splitTable(tableList) { + // 获取头部行数 + const headerRowCount = tableList[0][0].rowspan || 1; // 默认第一行是头部行,获取该行的 rowspan + + // 用 isHeaderRow 判断头部行 + const header = []; + const content = []; + + tableList.forEach((row, rowIndex) => { + if (isHeaderRow(rowIndex, tableList)) { + header.push(row); // 将头部行添加到 header 数组 + } else { + + + content.push(row); // 将内容行添加到 table 数组 + } + }); + // + console.log('header:', header); // 打印头部行数据 + console.log('table:', content); // 打印内容行数据 + + return { header, content }; +} // 图片预览 function picPreview(src) { console.log(src) diff --git a/js/journal.js b/js/journal.js index 7d84ba3..5056d82 100644 --- a/js/journal.js +++ b/js/journal.js @@ -331,7 +331,7 @@ function bf_list() { if (Jour_num == 2 || Jour_num == 17 | Jour_num == 18) { $('.current_list>h4').html('Current Volume' + time_ + ''); - } else if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22) { // 合并期刊 + } else if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22|| Jour_num == 19) { // 合并期刊 $('.current_list>h4').html('Latest Issue' + time_ + ''); } else { $('.current_list>h4').html('Current Issue' + time_ + ''); @@ -1054,7 +1054,7 @@ function bf_list() { var str = ""; for (var i = 0; i < result.data.journalStage.length; i++) { // 暂时条件中添加一个3 15 10 - if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22 || Jour_num == 3 || Jour_num == 15 || Jour_num == 10|| Jour_num == 16|| Jour_num == 24) { + if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22 || Jour_num == 3 || Jour_num == 15 || Jour_num == 10|| Jour_num == 16|| Jour_num == 24|| Jour_num == 19) { // 合并(替换)期刊 if (i == 0) { str += '' + arr_stage[i].stage_year + '
    ' } diff --git a/js/js.js b/js/js.js index fc921b4..25d27da 100644 --- a/js/js.js +++ b/js/js.js @@ -50,6 +50,19 @@ var Jour_num = localStorage.Journals_num; // tab选项卡 $(document).ready(function () { + // 检查 URL 是否包含参数 pre + const urlParams = new URLSearchParams(window.location.search); + const isPre = urlParams.has('preview'); + + if (isPre) { + // 页面带了 ?pre 参数,始终执行以下操作 + $(".left").css("width", "100%"); + $(".right").hide(); + } + const element = document.querySelector('.act_chajian'); // 选择 .act_chajian 元素 + if (element) { + element.remove(); // 删除该元素 + } $("#tablist li").each(function (index) { $(this).click(function () { console.log('this at line 54:', this); @@ -62,15 +75,15 @@ $(document).ready(function () { $(".content-box>div").eq(index).addClass("contentin"); $(this).addClass("tabin"); - // 判断当前点击的
  • 是否具有 'tarhtmn' 类名 - if ($(this).hasClass('tarhtmn')) { - // 设置当前点击的
  • 宽度为 100% - $(".left").css("width", "100%"); - $(".right").hide(); // 隐藏 .right 标签 - } else { - // 移除当前点击的
  • 宽度样式 - $(".left").css("width", ""); - $(".right").show(); // 恢复显示 .right 标签 + // 如果不包含 pre 参数,才根据点击项控制显示逻辑 + if (!isPre) { + if ($(this).hasClass('tarhtmn')) { + $(".left").css("width", "100%"); + $(".right").hide(); + } else { + $(".left").css("width", ""); + $(".right").show(); + } } }); }); @@ -79,6 +92,7 @@ $(document).ready(function () { + //返回顶部 $.goup({ trigger: 100, diff --git a/js/scientist/scientist_oid.js b/js/scientist/scientist_oid.js index cda7348..f64b7fa 100644 --- a/js/scientist/scientist_oid.js +++ b/js/scientist/scientist_oid.js @@ -106,7 +106,7 @@ function initOid() { str += `
  • -
    ${arr[i].type}${baseInfo.pub_date}
    ${arr[i].type}${baseInfo.pub_date}
    ${baseInfo.lr_top}
  • ${baseInfo.otStat}${arr[i].title}
    ${arr[i].authortitle}
    @@ -124,7 +124,47 @@ function initOid() { $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); commonHandleClickHtml() + addStyleToElement(); } + function addStyleToElement() { + // 获取所有具有 .url_top 类的元素 + var elements = document.querySelectorAll('.article .art_main .new_art > ul li .url_top'); + + elements.forEach(function(element) { + element.style.margin = '0 0 0 20px'; + element.style.display = 'inline-block'; + }); + + // 获取所有具有 .url_top a 类的元素 + var links = document.querySelectorAll('.article .art_main .new_art > ul li .url_top a'); + + links.forEach(function(link) { + link.style.marginRight = '10px'; + link.style.padding = '3px 0'; + link.style.fontFamily = 'Calibri'; + link.style.fontSize = '15px'; + }); + + // 设置最后一个 a 元素的 margin-right 为 0 + var lastLink = document.querySelector('.article .art_main .new_art > ul li .url_top a:last-child'); + if (lastLink) { + lastLink.style.marginRight = '0'; + } + + // 为 a 元素添加 hover 效果 + links.forEach(function(link) { + link.addEventListener('mouseenter', function() { + link.style.textDecoration = 'underline'; + }); + link.addEventListener('mouseleave', function() { + link.style.textDecoration = 'none'; + }); + }); + } + + // 调用函数将样式应用到元素 + + } } diff --git a/js/side.js b/js/side.js index 6292b25..7bee1e0 100644 --- a/js/side.js +++ b/js/side.js @@ -125,13 +125,26 @@ function side_list() { $('.ncon_SCom > div > div:nth-child(4) > p> b').html(arr_jour.title) if (arr_jour.title == 'Traditional Medicine Research') { - $('.nav_ban h2').html(''); + $('.nav_ban h2').html(''); $('.sharethis_tmr').css('display', 'none'); $('.art_top_topic').css('padding-top', '0'); $('.line_sbil').css('display', 'block'); // $('.jour_message>div').append('

    E-Mail Address:
    tmr@tmrjournals.com

    '); $('.topic_add').addClass('topic_add_tmr'); $('.share_tmrtb').css('display', 'block'); + } else if (arr_jour.title == 'Cancer Advances') { + + $('.nav_ban h2').html(''); + $('.nav_ban h2').css({ + 'display': 'flex !important', + 'align-items': 'center', + 'justify-content': 'center', + 'height': '62px' + }); + ; + + + } else { $('.tmr_side_book').css('display', 'none'); //2,125,186,108,177,64,88,391, @@ -324,7 +337,7 @@ function side_list() { const Submission_tmr_back_bot = artSide.querySelector('.Submission_tmr_back_bot'); if (Submission_tmr_back_bot) { Submission.classList.remove('hidden'); - + } } diff --git a/nta/index.html b/nta/index.html index a867598..392c945 100644 --- a/nta/index.html +++ b/nta/index.html @@ -5,7 +5,8 @@ Natural Therapy Advances - + + diff --git a/style/style.css b/style/style.css index 0bf7768..fab88ac 100644 --- a/style/style.css +++ b/style/style.css @@ -5316,4 +5316,4 @@ ul li .ab_tad { .conthtmn p b i { font-style: italic !important; font-weight: bold !important; -} \ No newline at end of file +}