2771 lines
99 KiB
JavaScript
2771 lines
99 KiB
JavaScript
// 期刊基础、外链、分期、话题信息加载
|
||
var Journals_color = "#006699";
|
||
var cycle = "";
|
||
function bf_list() {
|
||
$(".article_ .bgv_san .alls_issue").css({
|
||
background: "none",
|
||
});
|
||
// 相关期刊,过往分期
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getJournal",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
cycle = result.data.journal.cycle;
|
||
Journals_color = result.data.journal.system_color;
|
||
$(".border_title").css({
|
||
"border-bottom": `1px solid ${Journals_color}`,
|
||
});
|
||
$(".border_title_top").css({
|
||
"border-top": `3px solid ${Journals_color}`,
|
||
});
|
||
$(
|
||
".article_info_box .tradition-box .tradition-text .article_info_Highlights"
|
||
).css({
|
||
color: `${Journals_color} !important`,
|
||
});
|
||
//
|
||
const style = document.createElement("style");
|
||
style.innerHTML = `
|
||
.tradition-content {
|
||
color: #888;
|
||
line-height: 20px;
|
||
}
|
||
.tradition-content i,.tradition-content i *{
|
||
font-weight: 300 !important;
|
||
}
|
||
.tradition-content blue,.tradition-content blue *{
|
||
color: rgb(0, 112, 192) !important;
|
||
}
|
||
.tradition-content b,.tradition-content b *{
|
||
font-weight: bold !important;
|
||
}
|
||
/* 遮罩层 */
|
||
.overall_tmr .article .art_main .new_art>ul li{
|
||
border-bottom:1px solid ${Journals_color}
|
||
}
|
||
.overall_tmr .article{
|
||
padding-bottom:0 !important;
|
||
}
|
||
.article .art_main .new_art ul li:last-child {
|
||
border-bottom: none !important;
|
||
|
||
}
|
||
.ncon_SCom>div>div:nth-child(4)>a{
|
||
margin-bottom:5px !important;
|
||
margin-top:5px !important;
|
||
}
|
||
.article_{
|
||
padding-top:15px;
|
||
}
|
||
.article_ .news_ment{
|
||
padding-top:0;
|
||
|
||
}
|
||
.news_ment a.more, .topics a.more{
|
||
top:20px;
|
||
}
|
||
.ment_sousuo_kuang{
|
||
margin-top:15px;
|
||
}
|
||
.ment_sousuo_kuang>div{
|
||
padding-bottom:15px !important;
|
||
}
|
||
.ment_sousuo_kuang>div>div{
|
||
height:37px !important;
|
||
line-height:37px !important;
|
||
}
|
||
.ment_sousuo_kuang>div>div select{
|
||
height:37px;
|
||
line-height:37px;
|
||
}
|
||
.ment_sousuo_kuang .soukuang_btn{
|
||
top:14.5px;
|
||
}
|
||
.article_ .bgv_san .alls_issue{
|
||
padding-bottom:0px !important;
|
||
}
|
||
|
||
.article_ .bgv_san .Special_Issues_box{
|
||
display:none !important;
|
||
padding-top:25px !important;
|
||
padding-bottom:0px !important;
|
||
margin-top:-4px !important;
|
||
}
|
||
.article_ .bgv_san .ncon_hl{
|
||
padding-top:25px !important;
|
||
padding-bottom:0px !important;
|
||
}
|
||
.article .art_main .new_art>h4, .article .art_main .high_light h4, .news_ment h4, .topics h4{
|
||
line-height:24px;
|
||
}
|
||
.jour_notice .jour_notice_title_name{
|
||
margin-top:0;
|
||
}
|
||
.article_ .alls_issue>div{
|
||
overflow: hidden !important;
|
||
}
|
||
.article_ .alls_issue>div>ul li{
|
||
margin-right:29px !important;
|
||
}
|
||
.article_ .alls_issue>div>ul li>a>img{
|
||
margin-top:20px !important;
|
||
margin-bottom:0px !important;
|
||
width:253px !important;
|
||
}
|
||
.Special_Issues_div_box ul li a img{
|
||
margin-top:20px !important;
|
||
}
|
||
.art_main_con_topic .topics_box{
|
||
margin-top:20px !important;
|
||
}
|
||
.article_ .alls_issue>div>ul li>a>p{
|
||
top:20px !important;
|
||
bottom:4px !important;
|
||
}
|
||
.overall_tmr .online_fr ul, .overall_tmr .ncon_fr_tmr ul, .overall_tmr .ncon_tcrd_tmr ul, .overall_tmr .ncon_aper ul, .overall_tmr .Rel_ated ul, .overall_tmr .hua_tpice ul, .overall_tmr .ncon_hl ul, .overall_tmr .Special_Issues_box ul, .overall_tmr .ncon_new_coment ul, .overall_tmr .ncon_SCom>div{
|
||
margin-top:20px !important;
|
||
}
|
||
.tmr_article{
|
||
padding-top:25px;
|
||
}
|
||
.Topic_rgb_color h4 div {
|
||
line-height:24px;
|
||
}
|
||
.ncon_SCom .bor_sty_col{
|
||
width:2px !important;
|
||
}
|
||
.footer .daohang{
|
||
padding-bottom:30px;
|
||
}
|
||
`;
|
||
document.head.appendChild(style);
|
||
if (Jour_num == 1) {
|
||
$(".Special_Issues_box .more").css({
|
||
top: "45px",
|
||
});
|
||
$(".ncon_hl .more").css({
|
||
top: "45px",
|
||
});
|
||
}
|
||
|
||
initJournalBaseInfo(result);
|
||
|
||
var arr_stage = result.data.journalStage;
|
||
var str = "";
|
||
for (var i = 0; i < result.data.journalStage.length && i < 4; i++) {
|
||
if (arr_stage[i].stage_no == "0") {
|
||
var iss_ = "";
|
||
} else {
|
||
var iss_ = "<b> Issue." + arr_stage[i].stage_no + "</b>";
|
||
}
|
||
if (arr_stage[i].stage_icon == "") {
|
||
str +=
|
||
'<li><a target="_blank" href="article_list.html?J_num=' +
|
||
Jour_num +
|
||
"&y_id=" +
|
||
arr_stage[i].journal_stage_id +
|
||
'">' +
|
||
'<img src="img/baiss.png">' +
|
||
'<p style="display: block"><b>' +
|
||
arr_stage[i].stage_year +
|
||
"</b><b>Vol. " +
|
||
arr_stage[i].stage_vol +
|
||
"</b>" +
|
||
iss_ +
|
||
"<b>" +
|
||
arr_stage[i].stage_pagename +
|
||
" " +
|
||
arr_stage[i].stage_page +
|
||
"</b></p></a></li>";
|
||
} else {
|
||
str +=
|
||
'<li><a target="_blank" href="article_list.html?J_num=' +
|
||
Jour_num +
|
||
"&y_id=" +
|
||
arr_stage[i].journal_stage_id +
|
||
'">' +
|
||
'<img src="' +
|
||
imgFileUrl +
|
||
arr_stage[i].stage_icon +
|
||
'" alt="">' +
|
||
"<p><b>" +
|
||
arr_stage[i].stage_year +
|
||
"</b><b>Vol. " +
|
||
arr_stage[i].stage_vol +
|
||
"</b>" +
|
||
iss_ +
|
||
"<b>" +
|
||
arr_stage[i].stage_pagename +
|
||
" " +
|
||
arr_stage[i].stage_page +
|
||
"</b></p></a></li>";
|
||
}
|
||
}
|
||
$(".alls_issue>div>ul").html(str);
|
||
$(".alls_issue>a").attr("href", "stages.html?J_num=" + Jour_num);
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
// 中侧推广文章
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getJournalArticles",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var atg = result.data.stage;
|
||
if (atg.stage_no == "0") {
|
||
var time_ = atg.issue_date + ", Volume " + atg.stage_vol;
|
||
} else {
|
||
var time_ =
|
||
atg.issue_date +
|
||
", Volume " +
|
||
atg.stage_vol +
|
||
" Issue " +
|
||
atg.stage_no;
|
||
}
|
||
// 在第 238 行附近修改
|
||
var $target = $(".mes_all_current_issue_time");
|
||
if ($target.length > 0) {
|
||
$target.html(time_);
|
||
} else {
|
||
// 如果没找到,尝试延迟 100ms 再试一次
|
||
setTimeout(function() {
|
||
$(".mes_all_current_issue_time").html(time_);
|
||
}, 500);
|
||
}
|
||
|
||
if (atg.stage_no == "0") {
|
||
var act_year = " " + atg.stage_year + ", " + atg.stage_vol;
|
||
} else {
|
||
var act_year =
|
||
" " +
|
||
atg.stage_year +
|
||
", " +
|
||
atg.stage_vol +
|
||
" (" +
|
||
atg.stage_no +
|
||
")";
|
||
}
|
||
|
||
var arr = result.data.articleList;
|
||
var str = "";
|
||
var sth = "";
|
||
var stj = "";
|
||
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (arr[i].doi == "") {
|
||
var doi_ = "";
|
||
} else {
|
||
var doi_ = "https://doi.org/" + arr[i].doi;
|
||
}
|
||
if (arr[i].npp == "") {
|
||
var npp_ = "";
|
||
} else {
|
||
var npp_ = ": " + arr[i].npp + ". ";
|
||
}
|
||
if (arr[i].has_html == 0) {
|
||
if (arr[i].file_html == "") {
|
||
var html_ = "";
|
||
} else {
|
||
var html_ =
|
||
'<img src="img/link_2.png" width="14" height="16"><a href="' +
|
||
imgFileUrl +
|
||
"articleHTML/" +
|
||
arr[i].file_html +
|
||
'" target="_blank" class="txt_html" alt="' +
|
||
arr[i].article_id +
|
||
'">HTML</a> ( <span style="color: red">' +
|
||
arr[i].html_num +
|
||
"</span> ) ";
|
||
}
|
||
} else {
|
||
var html_ =
|
||
'<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'&s_htm=1" target="_blank" class="txt_html" alt="' +
|
||
arr[i].article_id +
|
||
'">HTML</a> ( <span style="color: red">' +
|
||
arr[i].html_num +
|
||
"</span> ) ";
|
||
}
|
||
if (arr[i].file_pdf == "") {
|
||
var pdf_ = "";
|
||
} else {
|
||
var pdf_ =
|
||
'<img src="img/link_3.jpg" width="14" height="16"><a href="' +
|
||
imgFileUrl +
|
||
"articlePDF/" +
|
||
arr[i].file_pdf +
|
||
'" target="_blank" class="txt_pdf" alt="' +
|
||
arr[i].article_id +
|
||
'">PDF</a> ( <span style="color: red">' +
|
||
arr[i].pdf_num +
|
||
"</span> )";
|
||
}
|
||
if (arr[i].cite_num == 0) {
|
||
var cite_ = "";
|
||
} else {
|
||
var cite_ = `<span article_id="${arr[i].article_id}" class="cite_box" style="color: #7a2702;"> <img src="img/link_6.jpg" width="14" height="16">WOS Citations ( <span style="color: red">${arr[i].cite_num} </span> )
|
||
<ul class="export_cite "> </ul></span>`;
|
||
}
|
||
if (
|
||
(Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) /
|
||
86400 >=
|
||
21
|
||
) {
|
||
var tong_geogle =
|
||
'<a href = "https://scholar.google.com/scholar?&q=' +
|
||
arr[i].title
|
||
.replace("<i>", "")
|
||
.replace("</i>", "")
|
||
.replace(new RegExp('"', "g"), "") +
|
||
'"' +
|
||
'target = "_blank" style="color:#7a2702;margin-left:8px;"> ' +
|
||
"Google Scholar</a>"; //搜索引用次数
|
||
} else {
|
||
var tong_geogle = ""; //少于21天隐藏
|
||
}
|
||
if (
|
||
(Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) /
|
||
86400 >=
|
||
21
|
||
) {
|
||
var tong_geogle_2_1 =
|
||
'<a href = "https://scholar.google.com/scholar?&q=' +
|
||
arr[i].title
|
||
.replace("<i>", "")
|
||
.replace("</i>", "")
|
||
.replace(new RegExp('"', "g"), "") +
|
||
'"' +
|
||
'target = "_blank" style="color:#7a2702;margin:5px 31px 0 0;display: inline-block;"> ' +
|
||
"Google Scholar</a>"; //搜索引用次数
|
||
} else {
|
||
var tong_geogle_2_1 = ""; //少于21天隐藏
|
||
}
|
||
if (
|
||
(Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) /
|
||
86400 >=
|
||
21
|
||
) {
|
||
var tong_geogle_2_2 =
|
||
'<a href = "https://scholar.google.com/scholar?&q=' +
|
||
arr[i].title
|
||
.replace("<i>", "")
|
||
.replace("</i>", "")
|
||
.replace(new RegExp('"', "g"), "") +
|
||
'"' +
|
||
'target = "_blank" style="color: #7a2702;margin:5px 37px 0 0;display: inline-block;"> ' +
|
||
"Google Scholar</a>"; //搜索引用次数
|
||
} else {
|
||
var tong_geogle_2_2 = ""; //少于21天隐藏
|
||
}
|
||
|
||
if (arr[i].article_id == "172") {
|
||
var mp4_ =
|
||
'<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>';
|
||
} else {
|
||
var mp4_ = "";
|
||
}
|
||
if (arr[i].icon == "") {
|
||
var img_i = "";
|
||
} else {
|
||
var img_i = imgarticleUrl + arr[i].icon;
|
||
}
|
||
|
||
if (arr[i].other_state == 0) {
|
||
var otStat = "";
|
||
} else if (arr[i].other_state == 1) {
|
||
var otStat =
|
||
'<span class="otStat">Editorial Expression of Concern</span>';
|
||
} else if (arr[i].other_state == 2) {
|
||
var otStat = '<span class="otStat">Retracted</span>';
|
||
}
|
||
|
||
if (
|
||
arr[i].article_id == "86" ||
|
||
arr[i].article_id == "176" ||
|
||
arr[i].article_id == "455" ||
|
||
arr[i].article_id == "400" ||
|
||
arr[i].article_id == "145" ||
|
||
arr[i].article_id == "116" ||
|
||
arr[i].article_id == "717" ||
|
||
arr[i].article_id == "632" ||
|
||
arr[i].article_id == "24"
|
||
) {
|
||
var person_img =
|
||
'<img src="' + img_i + '" alt="" style="width: 120px">';
|
||
var person_img1 =
|
||
'<img src="' + img_i + '" alt="" style="width: 120px">';
|
||
} else {
|
||
var person_img =
|
||
'<img src="' +
|
||
img_i +
|
||
'" alt="" style="height:300px;object-fit: cover;">';
|
||
if (img_i && img_i != "") {
|
||
var person_img1 =
|
||
'<div style="height: 220px;background-image: url(' +
|
||
img_i +
|
||
');background-size:cover;background-position:top;background-repeat:no-repeat;"></div>';
|
||
} else {
|
||
var person_img1 =
|
||
'<div style="height: auto;background-image: url(' +
|
||
img_i +
|
||
');background-size:cover;background-position:top;background-repeat:no-repeat;"></div>';
|
||
}
|
||
}
|
||
|
||
arr[i].abstract = arr[i].abstract.replace(
|
||
new RegExp("0, 102, 204", "g"),
|
||
"0,102,153"
|
||
);
|
||
|
||
var c_t_a =
|
||
'<button class="txt_copy cite_txt_button"> <img src="img/link_7.jpg" width="14" height="16">Cite this article<ul class="export"><li id="txt_copy_' +
|
||
i +
|
||
'" class="Exc_1">>> Copy citation information</li><li class="Exc_2"><i class="fa fa-download"></i> Export citation to EndNote</li><li class="Exc_3"><i class="fa fa-download"></i> Export citation to RIS</li><li class="Exc_4"><i class="fa fa-download"></i> Export citation to BibTex</li><li class="Exc_5"><i class="fa fa-download"></i> Export citation to txt</li><div class="triangle"></div></ul></button>';
|
||
|
||
var link_ =
|
||
'<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' +
|
||
arr[i].article_id +
|
||
'">Abstract</a> ( <span style="color: red">' +
|
||
arr[i].abs_num +
|
||
"</span> ) " +
|
||
html_ +
|
||
pdf_ +
|
||
mp4_ +
|
||
c_t_a +
|
||
cite_ +
|
||
tong_geogle +
|
||
'<p class="txt_content">' +
|
||
arr[i].cite +
|
||
'</p><div style="font-family: Calibri;font-size: 16px;">' +
|
||
arr[i].abstract +
|
||
"</div>";
|
||
var lr_top = "";
|
||
if (arr[i].topic && arr[i].topic.length > 0) {
|
||
for (var t = 0; t < arr[i].topic.length; t++) {
|
||
lr_top +=
|
||
'<a href="topic_list.html?J_num=' +
|
||
Jour_num +
|
||
"&t_id=" +
|
||
arr[i].topic[t].journal_topic_id +
|
||
'" target="_blank">' +
|
||
arr[i].topic[t].title +
|
||
"</a>";
|
||
}
|
||
}
|
||
var trad_tion = "";
|
||
var maxTradHeight = 220; // 设置最大高度
|
||
if (Jour_num == 1) {
|
||
if (arr[i].tradition_tag == "") {
|
||
} else {
|
||
var traditionText = arr[i].tradition;
|
||
|
||
trad_tion = `<div class="tradition-box" style="width:100%;height:auto;line-height:20px;overflow:hidden;">
|
||
<div class="tradition-text">${arr[i].tradition_tag}: <div class="tradition-content">${traditionText}</div></div>
|
||
</div>`;
|
||
|
||
setTimeout(() => {
|
||
let traditionElement = document.querySelector(
|
||
".tradition-text:last-of-type"
|
||
);
|
||
if (traditionElement.scrollHeight > maxTradHeight) {
|
||
let words = traditionText.split(" ");
|
||
let truncatedText = "";
|
||
|
||
for (let j = 0; j < words.length; j++) {
|
||
truncatedText += words[j] + " ";
|
||
traditionElement.innerText = truncatedText + "...";
|
||
if (traditionElement.scrollHeight > maxTradHeight) {
|
||
truncatedText = truncatedText
|
||
.trim()
|
||
.split(" ")
|
||
.slice(0, -1)
|
||
.join(" ");
|
||
traditionElement.innerText = truncatedText + " ...";
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}, 100); // 确保 DOM 渲染完成
|
||
}
|
||
} else {
|
||
if (arr[i].tradition_tag == "" || arr[i].tradition_tag == null) {
|
||
var textContent = arr[i].abstract;
|
||
} else {
|
||
var textContent =
|
||
'<b style="color: ' +
|
||
Journals_color +
|
||
'">' +
|
||
arr[i].tradition_tag +
|
||
":</b> " +
|
||
arr[i].tradition;
|
||
}
|
||
|
||
trad_tion = `<div class="tradition-box" style="width:100%; max-height:${maxTradHeight}px; line-height:20px; overflow:hidden;">
|
||
<div class="tradition-text"><div class="tradition-content">${textContent}</div></div>
|
||
</div>`;
|
||
}
|
||
{
|
||
/* <br clear="both"></br> */
|
||
}
|
||
str += `<li>
|
||
<div class="dbt_header">
|
||
${arr[i].type}
|
||
<div class="url_top">${lr_top}</div><span style="margin-left: 10px;color:#888;padding: 4px 5px;">${
|
||
cycle == 0 && arr[i].pub_date ? arr[i].pub_date : ""
|
||
}</span>
|
||
|
||
</div>
|
||
|
||
<div class="apwrap" style="display: grid;grid-template-columns: 370px 1fr;">
|
||
<a onclick="imgbig1(this)" class="imgdiv" style="width:100%" >${person_img1}</a>
|
||
<div class="article_info_box">
|
||
<a id="${
|
||
arr[i].article_id
|
||
}" target="_blank" href="article.html?J_num=${Jour_num}&a_id=${
|
||
arr[i].article_id
|
||
}" style="font-size:18px;" class="txt_biaoti">
|
||
${otStat}${arr[i].title}</a>
|
||
<div class="authorList"><span class="fo_fam">${processAuthors(
|
||
arr[i].authortitle
|
||
)}</span><br/></div>
|
||
<div class="links_">${link_}</div>
|
||
${trad_tion}
|
||
</div>
|
||
|
||
</div>
|
||
</li>`;
|
||
}
|
||
|
||
$(".current_list .current_issue_time").css({
|
||
color: "#888",
|
||
"font-weight": "500",
|
||
});
|
||
|
||
$(".current_list h4").css({
|
||
"border-top": "none",
|
||
"margin-top": "0",
|
||
});
|
||
$(".current_list .current_issue_time").html(time_);
|
||
$(".current_list>ul").html(str);
|
||
$(".links_ .txt_copy").css("background", localStorage.Journals_color);
|
||
$(".url_top a").css("margin-right", "0");
|
||
$(".current_list ul>li .apwrap>div>div>p").each(function () {
|
||
var maxwidth = 335; //显示多少字符
|
||
if ($(this).text().length > maxwidth) {
|
||
$(this).text($(this).text().substring(0, maxwidth));
|
||
$(this).text(
|
||
$(this)
|
||
.text()
|
||
.substring(0, maxwidth - $(this).text().split(" ").pop().length)
|
||
);
|
||
$(this).html($(this).html() + "...");
|
||
}
|
||
});
|
||
$(".current_list ul li.pai_two .apwrap>div>div>p").each(function () {
|
||
var maxwidth = 140; //显示多少字符
|
||
if ($(this).text().length > maxwidth) {
|
||
$(this).text($(this).text().substring(0, maxwidth));
|
||
$(this).text(
|
||
$(this)
|
||
.text()
|
||
.substring(0, maxwidth - $(this).text().split(" ").pop().length)
|
||
);
|
||
$(this).html($(this).html() + "...");
|
||
}
|
||
});
|
||
|
||
// 点击read more效果
|
||
// $('.current_list li .apwrap>div>b').click(function () {
|
||
// if($(this).html()=='read more <i class="fa fa-long-arrow-down"></i>'){
|
||
// $(this).siblings('div').css('display', 'block');
|
||
// $(this).html('read more <i class="fa fa-long-arrow-up"></i>');
|
||
// }else{
|
||
// $(this).siblings('div').css('display', '-webkit-box');
|
||
// $(this).html('read more <i class="fa fa-long-arrow-down"></i>')
|
||
// }
|
||
// })
|
||
|
||
// 点击Abstract显示隐藏
|
||
$(".current_list .txt_zhaiyao").click(function () {
|
||
$(this).nextAll("div").toggle();
|
||
|
||
const $parentGroup = $(this).closest(".article_info_box");
|
||
|
||
// 2. 在当前父级内查找tradition-box并切换显示状态
|
||
$parentGroup.find(".tradition-box").toggle();
|
||
if ($(this).nextAll("div").css("display") == "block") {
|
||
var num = $(this).next().html();
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "yuan/Article/addArticleNum",
|
||
async: false,
|
||
data: { article_id: $(this).attr("alt"), type: "abs" },
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
num = num * 1 + 1 * 1;
|
||
}
|
||
},
|
||
});
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "super/Publish/addVisitNum",
|
||
data: { type: Jour_num, is_detail: "1" },
|
||
success: function (result) {},
|
||
});
|
||
$(this).next().html(num);
|
||
}
|
||
});
|
||
$(".current_list .txt_html").click(function () {
|
||
var num = $(this).next().html();
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "yuan/Article/addArticleNum",
|
||
async: false,
|
||
data: { article_id: $(this).attr("alt"), type: "html" },
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
num = num * 1 + 1 * 1;
|
||
}
|
||
},
|
||
});
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "super/Publish/addVisitNum",
|
||
data: { type: Jour_num, is_detail: "1" },
|
||
success: function (result) {},
|
||
});
|
||
$(this).next().html(num);
|
||
});
|
||
$(".current_list .txt_pdf").click(function () {
|
||
var num = $(this).next().html();
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "yuan/Article/addArticleNum",
|
||
async: false,
|
||
data: { article_id: $(this).attr("alt"), type: "pdf" },
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
num = num * 1 + 1 * 1;
|
||
}
|
||
},
|
||
});
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "super/Publish/addVisitNum",
|
||
data: { type: Jour_num, is_detail: "1" },
|
||
success: function (result) {},
|
||
});
|
||
$(this).next().html(num);
|
||
});
|
||
$(".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");
|
||
$(document).click(function (e) {
|
||
if (!$(e.target).is(".export") && !$(e.target).is(".txt_copy")) {
|
||
$(".export").hide();
|
||
}
|
||
});
|
||
$(".current_list .txt_copy").click(function () {
|
||
$(".export").css("display", "none");
|
||
$(this).find(".export").fadeIn(200);
|
||
});
|
||
$(".current_list .Exc_1").click(function () {
|
||
var content_ = $(this)
|
||
.parents(".txt_copy")
|
||
.nextAll(".txt_content")
|
||
.text();
|
||
var clipboard = new Clipboard("#" + $(this).attr("id"), {
|
||
text: function () {
|
||
return content_;
|
||
},
|
||
});
|
||
clipboard.on("success", function (e) {
|
||
ShowSuccess("Citation information has been copied!");
|
||
});
|
||
});
|
||
$(".current_list .Exc_2").click(function () {
|
||
var ecx_id = $(this)
|
||
.parents(".links_")
|
||
.siblings(".txt_biaoti")
|
||
.attr("id");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getArticleenw",
|
||
async: false,
|
||
data: { article_id: ecx_id },
|
||
success: function (result) {
|
||
var a = document.createElement("a");
|
||
a.href = result.data.url;
|
||
a.download = "";
|
||
a.click();
|
||
},
|
||
});
|
||
});
|
||
$(".current_list .Exc_3").click(function () {
|
||
var ecx_id = $(this)
|
||
.parents(".links_")
|
||
.siblings(".txt_biaoti")
|
||
.attr("id");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getArticleRis",
|
||
async: false,
|
||
data: { article_id: ecx_id },
|
||
success: function (result) {
|
||
var a = document.createElement("a");
|
||
a.href = result.data.url;
|
||
a.download = "";
|
||
a.click();
|
||
},
|
||
});
|
||
});
|
||
$(".current_list .Exc_4").click(function () {
|
||
var ecx_id = $(this)
|
||
.parents(".links_")
|
||
.siblings(".txt_biaoti")
|
||
.attr("id");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getArticlebib",
|
||
async: false,
|
||
data: { article_id: ecx_id },
|
||
success: function (result) {
|
||
var a = document.createElement("a");
|
||
a.href = result.data.url;
|
||
a.download = "";
|
||
a.click();
|
||
},
|
||
});
|
||
});
|
||
|
||
$(".current_list .Exc_5").click(function () {
|
||
var ecx_id = $(this)
|
||
.parents(".links_")
|
||
.siblings(".txt_biaoti")
|
||
.attr("id");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getArticletext",
|
||
async: false,
|
||
data: { article_id: ecx_id },
|
||
success: function (result) {
|
||
var a = document.createElement("a");
|
||
a.href = result.data.url;
|
||
a.download = "";
|
||
a.click();
|
||
},
|
||
});
|
||
});
|
||
|
||
// 订阅期刊
|
||
$(".top .top_sea .b_Sub").css("color", localStorage.Journals_color);
|
||
$(".top .top_sea .search_for select").css(
|
||
"border-color",
|
||
localStorage.Journals_color
|
||
);
|
||
|
||
$(".top .dingyue input.yue_add").css(
|
||
"background-color",
|
||
localStorage.Journals_color
|
||
);
|
||
$(".top .dingyue p b").html(localStorage.Journals_title);
|
||
$(".top .jour_ts input.tishi_author").css(
|
||
"background-color",
|
||
localStorage.Journals_color
|
||
);
|
||
// 添加订阅按钮点击弹出
|
||
// $('.top .top_sea .b_Sub').click(function () {
|
||
// $("#mask").css("height",$(document).height());
|
||
// $("#mask").css("width",$(document).width());
|
||
// $("#mask").show();
|
||
// $(".dingyue").fadeIn();
|
||
// document.body.addEventListener('touchmove',bodyScroll,false);
|
||
// $('body').css({'position':'fixed',"width":"100%"});
|
||
// })
|
||
$(".top .dingyue .mb_close").click(function () {
|
||
$("#mask").hide();
|
||
$(".dingyue").fadeOut();
|
||
document.body.removeEventListener("touchmove", bodyScroll, false);
|
||
$("body").css({ position: "initial", height: "auto" });
|
||
});
|
||
$(".top .dingyue input.yue_close").click(function () {
|
||
$("#mask").hide();
|
||
$(".dingyue").fadeOut();
|
||
document.body.removeEventListener("touchmove", bodyScroll, false);
|
||
$("body").css({ position: "initial", height: "auto" });
|
||
});
|
||
$(".top .jour_ts input.tishi_author").click(function () {
|
||
$("#mask").hide();
|
||
$(".jour_ts").fadeOut();
|
||
document.body.removeEventListener("touchmove", bodyScroll, false);
|
||
$("body").css({ position: "initial", height: "auto" });
|
||
});
|
||
|
||
function bodyScroll(event) {
|
||
event.preventDefault();
|
||
}
|
||
|
||
// 订阅提交
|
||
$(".yue_add").click(function () {
|
||
$(".spa").text("");
|
||
var add_mess = {};
|
||
add_mess.journal_id = localStorage.Journals_num;
|
||
add_mess.email = $("#emapl").val();
|
||
|
||
var S_Dan = "0";
|
||
var reg = /^[-.-_A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
|
||
if ($("#emapl").val() == "") {
|
||
$(".spa1").text("Please fill in E-mail");
|
||
S_Dan = "1";
|
||
} else if (!reg.test($("#emapl").val())) {
|
||
$(".spa1").text("Please fill in properly formatted E-mail");
|
||
S_Dan = "1";
|
||
}
|
||
|
||
if (S_Dan == "1") {
|
||
ShowDanger("Incomplete information!");
|
||
} else {
|
||
$(".yue_add").addClass("disable");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "subscribe/Journal/addSubscribeJournal",
|
||
data: add_mess,
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
$(".dingyue").fadeOut();
|
||
$(".dingyue input[type='text']").val("");
|
||
$(".yue_add").removeClass("disable");
|
||
$(".jour_ts").fadeIn();
|
||
} else {
|
||
ShowDanger(result.msg);
|
||
$(".yue_add").removeClass("disable");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
$(".yue_add").removeClass("disable");
|
||
},
|
||
});
|
||
}
|
||
});
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 增加访问次数
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "super/Publish/addVisitNum",
|
||
data: { type: Jour_num },
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
// ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 上侧话题列表数据
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getJournalTopic",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
Jour_num = localStorage.Journals_num;
|
||
if (result.code == 0) {
|
||
// 话题列表
|
||
var arr_topic = result.data.topicList;
|
||
var wh_topicd = "";
|
||
var wh_number = 0;
|
||
var panduan = "";
|
||
var st_left_tit = "";
|
||
var st_left_con = "";
|
||
for (var i = 0; i < arr_topic.length; i++) {
|
||
if (arr_topic[i].position == "top") {
|
||
wh_number += 1;
|
||
wh_topicd = "top";
|
||
var st_top_tit = "";
|
||
var st_top_con = "";
|
||
// 10
|
||
if (Jour_num == 1) {
|
||
var forLength =
|
||
arr_topic[i].title == "Diseases"
|
||
? arr_topic[i].children.length
|
||
: 5;
|
||
} else {
|
||
var forLength = 5;
|
||
}
|
||
if (wh_number == "1") {
|
||
if (arr_topic[i].children) {
|
||
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||
if (j == forLength) break;
|
||
var url_href = "";
|
||
if (arr_topic[i].children[j].is_final == "1") {
|
||
url_href = "topic_list.html?J_num=" + Jour_num + "&t_id=";
|
||
} else url_href = "topic.html?J_num=" + Jour_num + "&t_id=";
|
||
st_top_con +=
|
||
'<li><a target="_blank" href="' +
|
||
url_href +
|
||
arr_topic[i].children[j].journal_topic_id +
|
||
'">' +
|
||
'<img src="' +
|
||
imgtopicUrl +
|
||
arr_topic[i].children[j].icon +
|
||
'" alt="">' +
|
||
"<h3>" +
|
||
arr_topic[i].children[j].title +
|
||
"</h3></a></li>";
|
||
}
|
||
}
|
||
} else {
|
||
if (arr_topic[i].children) {
|
||
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||
if (Jour_num == 1) {
|
||
if (j == forLength) break;
|
||
} else {
|
||
if (j == forLength - 1) break;
|
||
}
|
||
|
||
var url_href = "";
|
||
if (arr_topic[i].children[j].is_final == "1") {
|
||
url_href = "topic_list.html?J_num=" + Jour_num + "&t_id=";
|
||
} else url_href = "topic.html?J_num=" + Jour_num + "&t_id=";
|
||
st_top_con +=
|
||
'<li><a target="_blank" href="' +
|
||
url_href +
|
||
arr_topic[i].children[j].journal_topic_id +
|
||
'">' +
|
||
'<img src="' +
|
||
imgtopicUrl +
|
||
arr_topic[i].children[j].icon +
|
||
'" alt="">' +
|
||
"<h3>" +
|
||
arr_topic[i].children[j].title +
|
||
"</h3></a></li>";
|
||
}
|
||
}
|
||
}
|
||
// '<a target="_blank" href="topic.html?J_num=' + Jour_num + '&t_id=' + arr_topic[i].journal_topic_id + '" class="more" target="_blank">More</a>' +
|
||
if (Jour_num == 1) {
|
||
if (arr_topic[i].title == "Diseases") {
|
||
st_top_tit =
|
||
'<div class="topics" style="padding: 0 0 5px 0;"><h4 class="rgb_color" style="font-size: 16px">' +
|
||
arr_topic[i].title +
|
||
"</h4>" +
|
||
"<ul>" +
|
||
st_top_con +
|
||
"</ul></div>" +
|
||
'<p style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>';
|
||
} else {
|
||
// <p style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>
|
||
st_top_tit =
|
||
'<div class="topics" style="padding: 0 0 5px 0;"><h4 class="rgb_color" style="font-size: 16px">' +
|
||
arr_topic[i].title +
|
||
"</h4>" +
|
||
"<ul>" +
|
||
st_top_con +
|
||
"</ul></div>" +
|
||
'<p data-index="1" style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>';
|
||
}
|
||
} else {
|
||
st_top_tit =
|
||
'<div class="topics" style="padding: 0 0 5px 0;"><h4 class="rgb_color" style="font-size: 16px">' +
|
||
arr_topic[i].title +
|
||
"</h4>" +
|
||
"<ul>" +
|
||
st_top_con +
|
||
"</ul></div>" +
|
||
'<p style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>';
|
||
}
|
||
|
||
if (wh_number == "1") {
|
||
$(".art_top_topic>div>div.topics").html(
|
||
"<ul>" + st_top_con + "</ul>"
|
||
);
|
||
} else {
|
||
$(".tmr_article>.bng_topic_bei>.art_main_con_topic>div").append(
|
||
st_top_tit
|
||
);
|
||
}
|
||
var MDM_mark = 0;
|
||
var MDM_str = "";
|
||
// MDM 十个话题 // LF 十个话题 // BEC 十个话题 // cancer 十个话题
|
||
if ([2, 25, 11, 14].includes(Number(Jour_num))) {
|
||
if (arr_topic[i].children) {
|
||
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||
if (MDM_mark == 10) break;
|
||
MDM_mark = MDM_mark + 1;
|
||
var url_href = "";
|
||
if (arr_topic[i].children[j].is_final == "1") {
|
||
url_href = "topic_list.html?J_num=" + Jour_num + "&t_id=";
|
||
} else url_href = "topic.html?J_num=" + Jour_num + "&t_id=";
|
||
MDM_str +=
|
||
'<li><a target="_blank" href="' +
|
||
url_href +
|
||
arr_topic[i].children[j].journal_topic_id +
|
||
'">' +
|
||
'<img src="' +
|
||
imgtopicUrl +
|
||
arr_topic[i].children[j].icon +
|
||
'" alt="">' +
|
||
"<h3>" +
|
||
arr_topic[i].children[j].title +
|
||
"</h3></a></li>";
|
||
}
|
||
}
|
||
|
||
$(".art_top_topic>div>div.topics").html(
|
||
"<ul>" + MDM_str + "</ul>"
|
||
);
|
||
}
|
||
} else if (
|
||
arr_topic[i].position == "left" &&
|
||
arr_topic[i].title == "Diseases" &&
|
||
Jour_num == 1
|
||
) {
|
||
if (panduan != "1") {
|
||
panduan = "1";
|
||
if (arr_topic[i].children) {
|
||
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||
if (j == 5) break;
|
||
var url_href = "";
|
||
if (arr_topic[i].children[j].is_final == "1") {
|
||
url_href = "topic_list.html?J_num=" + Jour_num + "&t_id=";
|
||
} else url_href = "topic.html?J_num=" + Jour_num + "&t_id=";
|
||
st_left_con +=
|
||
'<li><a target="_blank" href="' +
|
||
url_href +
|
||
arr_topic[i].children[j].journal_topic_id +
|
||
'">' +
|
||
'<img src="' +
|
||
imgtopicUrl +
|
||
arr_topic[i].children[j].icon +
|
||
'"/></a>' +
|
||
'<h3 style="text-align: center"><a target="_blank" href="' +
|
||
url_href +
|
||
arr_topic[i].children[j].journal_topic_id +
|
||
'">' +
|
||
arr_topic[i].children[j].title +
|
||
"</a></h3></li>";
|
||
}
|
||
}
|
||
|
||
st_left_tit =
|
||
'<div class="topics" style="padding: 0 0 5px 0;"><h4 class="rgb_color" style="font-size: 16px">' +
|
||
arr_topic[i].title +
|
||
"</h4>" +
|
||
'<a target="_blank" href="topic.html?J_num=' +
|
||
Jour_num +
|
||
"&t_id=" +
|
||
arr_topic[i].journal_topic_id +
|
||
'" class="more" target="_blank">More</a><ul>' +
|
||
st_left_con +
|
||
"</ul></div>";
|
||
}
|
||
|
||
$(".tmr_article>.bng_topic_bei>.art_main_con_topic>div").append(
|
||
st_left_tit
|
||
);
|
||
}
|
||
}
|
||
|
||
$(".tmr_article>.bng_topic_bei>.art_main_con_topic>div h4").css(
|
||
"color",
|
||
localStorage.Journals_color
|
||
);
|
||
|
||
$(".tmr_article>.bng_topic_bei>.art_main_con_topic>div")
|
||
.children()
|
||
.eq(1)
|
||
.addClass("top_ics");
|
||
|
||
if (wh_number == "1") {
|
||
$(".art_main_con_topic").css("border-bottom", "0");
|
||
$(".wh_topicd").css("display", "none");
|
||
}
|
||
if (Jour_num == "1") {
|
||
$(".art_top_topic").addClass("art_top_topic_tmr");
|
||
}
|
||
|
||
if (wh_topicd == "") {
|
||
$(".art_main_con_topic").css("display", "none");
|
||
$(".wh_topicd").css("display", "none");
|
||
}
|
||
|
||
if (localStorage.Journals_title == "经典中医研究") {
|
||
$(".more").html("更多");
|
||
}
|
||
if (Jour_num != 1) {
|
||
$(".bng_topic_bei").css({
|
||
display: "none",
|
||
});
|
||
$(".topics_box").css({
|
||
"background-color": "transparent",
|
||
});
|
||
$(".topics_box .topics").css({
|
||
"background-color": "transparent",
|
||
"margin-top": "-15px",
|
||
});
|
||
}
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 左侧客座列表数据
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Special/getSpecialsNew",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
if (!result.data.is_show || result.data.is_show == "false") {
|
||
$(
|
||
".jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_Gue_special"
|
||
).each(function () {
|
||
this.style.setProperty("display", "none", "important");
|
||
});
|
||
$(".jour_guest h4 a").css("display", "none");
|
||
}
|
||
var specialIssuesBox = document.querySelector(".Special_Issues_box");
|
||
var ulElement = specialIssuesBox.querySelector("ul");
|
||
var newDiv = document.createElement("div");
|
||
newDiv.classList.add("Special_Issues_div_box"); // 可替换为你希望的类名
|
||
newDiv.appendChild(ulElement);
|
||
specialIssuesBox.appendChild(newDiv);
|
||
if (result.data.count > 4) {
|
||
$(".Special_Issues_box .more").css({
|
||
display: "block",
|
||
});
|
||
$(".Special_Issues_box .more").each(function () {
|
||
$(this).attr("href", `/guest.html?J_num=${Jour_num}`);
|
||
});
|
||
// guest.html?J_num=1
|
||
}
|
||
// 客座列表
|
||
var arr = result.data.specials;
|
||
var str = "";
|
||
for (var i = 0; i < arr.length && i < 4; i++) {
|
||
if (new Date(arr[i].deadline).getTime() > new Date().getTime()) {
|
||
var mark_k = 1;
|
||
} else {
|
||
var mark_k = 0;
|
||
}
|
||
if (arr[i].icon == "") {
|
||
var img_i = "";
|
||
} else {
|
||
var img_i =
|
||
'<a target="_blank" href="/gue_cont.html?J_num=' +
|
||
Jour_num +
|
||
"&Gu_num=" +
|
||
arr[i].journal_special_id +
|
||
'"><img src="' +
|
||
imgjourUrl +
|
||
arr[i].icon +
|
||
'" alt=""></a>';
|
||
}
|
||
str += `<li style="box-shadow: none;width:253px;padding:0;"><a target="_blank" style="display: block;position: relative;" href="/gue_cont.html?J_num=${Jour_num}&Gu_num=${
|
||
arr[i].journal_special_id
|
||
}">
|
||
<div style="
|
||
margin-top: 20px;
|
||
height: 150px;
|
||
overflow: hidden;
|
||
margin-bottom: 12px;">
|
||
<img src="${imgjourUrl}${
|
||
arr[i].icon
|
||
}" alt="" style="margin-top:0 !important;margin-bottom:0;background: transparent;height:330px;border:none;object-fit:cover"></div>
|
||
${
|
||
mark_k == 1
|
||
? ` <p class="specials_hover_box" style="font-size:30px;top:0px;bottom:0px;"><b style="padding: 4px 15px;
|
||
position: absolute;
|
||
top: 40%;
|
||
left: 30%;
|
||
color: #fff;">${mark_k == 1 ? "Open" : ""}</b></p>`
|
||
: ""
|
||
}
|
||
</a>
|
||
<h6><a target="_blank" href="/gue_cont.html?J_num=${Jour_num}&&Gu_num=${
|
||
arr[i].journal_special_id
|
||
}" style="font-weight: bold;color: #444;">${arr[i].title}</a>
|
||
</h6><div class="fo_fam">${arr[i].editor}. | ${
|
||
arr[i].deadline
|
||
}</div>
|
||
|
||
</li>`;
|
||
}
|
||
// $('.Special_Issues_box>a').attr('href', '/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id);
|
||
$(".Special_Issues_box ul").css({
|
||
width: "1102px",
|
||
"background-color": "transparent",
|
||
"overflow-x": "auto",
|
||
});
|
||
|
||
$(".Special_Issues_box ul").html(str + '<br clear="both">'); // 设置默认的 margin-right
|
||
// $('.Special_Issues_box ul li:nth-child(4n)').css('margin-right', '0'); // 每4个 li 的 margin-right 为 0
|
||
|
||
if (arr.length == 0 || Jour_num != 1) {
|
||
$(".Special_Issues_box").css("display", "none");
|
||
$(".ncon_hl").css({ "margin-top": "-10px" });
|
||
$(".ncon_hl .more").css({ top: "45px" });
|
||
}
|
||
|
||
// for (var i = 0; i < arr.length; i++) {
|
||
// if (i == 3) break;
|
||
// str += '<li><a href="gue_cont.html?J_num=' + localStorage.Journals_num + '&&Gu_num=' + arr[i].journal_special_id + '" target="_blank">' + arr[i].title + '</a><br>' +
|
||
// '<span style="color: #888">Guest Editor: </span><span style="color: #069">' + arr[i].editor + '</span><br>' +
|
||
// '<span style="color: #888">Deadline: </span><span style="color: #069">' + arr[i].deadline + '</span>' +
|
||
// '<div class="gue_s_btn"><a class="gue_submin" alt="' + arr[i].journal_special_id + '">Submit Article</a>' +
|
||
// '<a class="gue_appli" alt="' + arr[i].journal_special_id + '">Guest Editor Application</a></div></li>'
|
||
// }
|
||
// $('.jour_guest ul').html('<h4 style="margin: 0;padding: 6px;" class="gue_is_lis rgb_color">Open Special Issues</h4>' + str);
|
||
// $('.jour_guest>a').attr('href', 'gue_edit.html?J_num=' + Jour_num);
|
||
// $('.jour_guest h4 a').attr('href', 'guest.html?J_num=' + Jour_num);
|
||
// if (str == '') {
|
||
// $('.gue_is_lis').css('display', 'none');
|
||
// }
|
||
|
||
// $('.jour_guest ul li a.gue_submin').click(function () {
|
||
// // 判断是否有身份
|
||
// if ($.cookie("username") != undefined && $.cookie("user_id") != undefined) {
|
||
// window.open('contribu_list.html?J_num=' + Jour_num + '&&special_id=' + $(this).attr('alt'));
|
||
// } else {
|
||
// window.open('contribu_login.html?J_num=' + Jour_num + '&&special_id=' + $(this).attr('alt'));
|
||
// }
|
||
// })
|
||
// $('.jour_guest ul li a.gue_appli').click(function () {
|
||
// window.open('gue_cont_gea.html?J_num=' + Jour_num + '&&Gu_num=' + $(this).attr('alt'));
|
||
// })
|
||
} else {
|
||
ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 中下侧Online First文章
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getOnlineArticle",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
pageIndex: "1",
|
||
pageSize: "4",
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.articlelist;
|
||
var str = "";
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (i == 4) break;
|
||
if (arr[i].icon == "") {
|
||
var img_i = "";
|
||
} else {
|
||
var img_i =
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt=""></a>';
|
||
}
|
||
str +=
|
||
'<li style="margin-right: 0;">' +
|
||
img_i +
|
||
'<h6 class="onlineFirstBox"><a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'" ' +
|
||
'style="font-weight: bold;color: #444;">' +
|
||
arr[i].title +
|
||
"</a></h6>" +
|
||
'<div class="fo_fam">' +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</div></li>";
|
||
}
|
||
$(".online_fr>a").attr(
|
||
"href",
|
||
"article_list.html?J_num=" + Jour_num + "&o_id=" + Jour_num
|
||
);
|
||
$(".online_fr>ul").html(str + '<br clear="both">');
|
||
if (arr.length == 0) {
|
||
$(".ment_sousuo_kuang").css("padding-top", "40px");
|
||
|
||
$(".mes_all_section_other_online").css("display", "none");
|
||
$(".online_fr").css("display", "none");
|
||
$(".ment_sousuo_kuang").css({
|
||
"padding-top": "0px",
|
||
"margin-top": "0px",
|
||
});
|
||
}
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
$(".online_fr").css("display", "none");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 下侧分期列表数据
|
||
//$.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getMainPageStages',
|
||
// data: {
|
||
// "journal_id": Jour_num
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
//
|
||
// // 分期信息
|
||
// if (result.data.topic_show_type == 1) {
|
||
// var arr_stage = result.data.stages;
|
||
// var str = "";
|
||
// for (var i = 0; i < 4; i++) {
|
||
//
|
||
// if (arr_stage[i].stage_no == '0') {
|
||
// var iss_ = ''
|
||
// } else {
|
||
// var iss_ = '<b> Issue. ' + arr_stage[i].stage_no + '</b>'
|
||
// }
|
||
// str += '<li><a target="_blank" href="article_list.html?J_num=' + Jour_num + '&y_id=' + arr_stage[i].journal_stage_id + '">' +
|
||
// '<img src="' +imgFileUrl+ arr_stage[i].stage_icon + '" alt="">' +
|
||
// '<p><b>' + arr_stage[i].stage_year + '</b><b>Vol. ' + arr_stage[i].stage_vol + '</b>'
|
||
// + iss_ + '<b>' + arr_stage[i].stage_pagename +' '+ arr_stage[i].stage_page + '</b></p></a></li>'
|
||
//
|
||
// }
|
||
// $('.alls_issue>div>ul').html(str);
|
||
// $('.alls_issue>a').attr('href', 'stages.html?J_num=' + Jour_num);
|
||
// }else{
|
||
// $('.alls_issue').css('display', 'none')
|
||
// }
|
||
//
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
//})
|
||
|
||
// 下侧话题列表数据
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getTopicArticles",
|
||
data: {
|
||
topic_id: 32,
|
||
pageIndex: 1,
|
||
pageSize: 10,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.articleList;
|
||
var str1 = "";
|
||
var str2_1 = "";
|
||
var str2_2 = "";
|
||
var str3 = "";
|
||
var str1_num = 0;
|
||
var str2_num_1 = 0;
|
||
var str2_num_2 = 0;
|
||
var str3_num = 0;
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (arr[i].stage_year == 2020 && str1_num < 1) {
|
||
str1_num = str1_num + 1;
|
||
str1 +=
|
||
'<img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt="">' +
|
||
"<div><span>" +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</span>" +
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'">' +
|
||
"<p>" +
|
||
arr[i].title +
|
||
"</p></a></div>";
|
||
} else if (arr[i].stage_year == 2020 && str2_num_1 < 1) {
|
||
str2_num_1 = str2_num_1 + 1;
|
||
str2_1 +=
|
||
'<div><img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt="">' +
|
||
"<span>" +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</span>" +
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><p>' +
|
||
arr[i].title +
|
||
"</p></a></div>";
|
||
} else if (arr[i].stage_year == 2020 && str2_num_2 < 1) {
|
||
str2_num_2 = str2_num_2 + 1;
|
||
str2_2 +=
|
||
'<div><img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt="">' +
|
||
"<span>" +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</span>" +
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><p>' +
|
||
arr[i].title +
|
||
"</p></a></div>";
|
||
} else if (arr[i].stage_year >= 2020 && str3_num < 3) {
|
||
str3_num = str3_num + 1;
|
||
str3 +=
|
||
"<div><span>" +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</span>" +
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><p>' +
|
||
arr[i].title +
|
||
"</p></a></div>";
|
||
}
|
||
}
|
||
|
||
$(".hua_tpice .tpice_cancar .tpoce_con1").html(str1);
|
||
$(".hua_tpice .tpice_cancar .tpoce_con2").html(
|
||
str2_1 + str2_2 + '<br clear="both">'
|
||
);
|
||
$(".hua_tpice .tpice_cancar .tpoce_con3").html(str3);
|
||
}
|
||
},
|
||
});
|
||
|
||
// $.ajax({
|
||
// type: 'post', url: apiUrl + 'api/Journal/getJournalTopic',
|
||
// data: {
|
||
// "journal_id": Jour_num
|
||
// },
|
||
// success: function (result) {
|
||
// if (result.code == 0) {
|
||
// // 话题列表
|
||
// var arr_topic = result.data.topicList;
|
||
//
|
||
// var panduan = ''
|
||
// for (var i = 0; i < arr_topic.length; i++) {
|
||
// if (arr_topic[i].position == "left") {
|
||
// if (panduan == '1') {
|
||
// break
|
||
// }
|
||
// panduan = '1';
|
||
// var st_left = "";
|
||
// $('.hua_tpice>h4').html('Alzheimer Disease');
|
||
// $('.hua_tpice>a').attr('href', 'topic_list.html?J_num=1&t_id=32');
|
||
// $('.hua_tpice .tpice_lies>a').attr('href', 'topic.html?J_num=' + Jour_num + '&t_id=' + arr_topic[i].journal_topic_id);
|
||
// for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||
// if (arr_topic[i].children[j].title != 'Alzheimer Disease') {
|
||
// if (j == 4) break;
|
||
// var url_href = '';
|
||
// if (arr_topic[i].children[j].is_final == '1') {
|
||
// url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
||
// } else (
|
||
// url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
||
// )
|
||
// st_left += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
||
// '<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '"/></a>' +
|
||
// '<h6 style="text-align: center"><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' + arr_topic[i].children[j].title + '</a></h6></li>'
|
||
// }
|
||
// }
|
||
// $('.hua_tpice ul.tpice_lies').prepend(st_left);
|
||
//
|
||
// if (st_left == '') {
|
||
// $('.jour_sta_tp_left_more').css('display', 'none');
|
||
// }
|
||
// }
|
||
// }
|
||
// if (panduan == '') {
|
||
// $('.jour_hauti_pd').css('display', 'none');
|
||
// }
|
||
// } else {
|
||
// ShowDanger("请求失败!");
|
||
// }
|
||
// },
|
||
// error: function () {
|
||
// ShowDanger("error!");
|
||
// }
|
||
// })
|
||
|
||
// TMR 中下侧News & conmment文章
|
||
if (Jour_num != 1) {
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getNewsArticleNew",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
limit: 4,
|
||
page: 1,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.articlelist;
|
||
var str = "";
|
||
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (i == 4) break;
|
||
if (arr[i].icon == "") {
|
||
var img_i = "";
|
||
} else {
|
||
var img_i =
|
||
'<a target="_blank" href="/article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt=""></a>';
|
||
}
|
||
str +=
|
||
"<li>" +
|
||
img_i +
|
||
'<h6 ><a target="_blank" style="color:#444;font-weight:bold" href="/article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'">' +
|
||
arr[i].title +
|
||
"</a></h6>" +
|
||
'<div class="fo_fam">' +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</div></li>";
|
||
}
|
||
|
||
$(".ncon_new_coment>a").attr(
|
||
"href",
|
||
"/article_list.html?J_num=" + Jour_num + "&n_id=" + Jour_num
|
||
);
|
||
$(".ncon_new_coment>ul").html(str + '<br clear="both">');
|
||
if (arr.length > 0) {
|
||
$(".ncon_new_coment").css({
|
||
display: "block",
|
||
"padding-top": "25px",
|
||
"padding-bottom": "0px",
|
||
});
|
||
$(".ncon_new_coment .more").css({
|
||
top: "45px",
|
||
});
|
||
$(".ncon_new_coment ul").css({
|
||
background: "#fff",
|
||
});
|
||
} else {
|
||
$(".ncon_new_coment").css("display", "none");
|
||
}
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
$(".ncon_new_coment").css("display", "none");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
}
|
||
|
||
// 中下侧Highlights文章
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getTopArticle",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
pageIndex: "1",
|
||
pageSize: "4",
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.articles;
|
||
var str = "";
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (arr[i].icon == "") {
|
||
var img_i = "";
|
||
} else {
|
||
var img_i =
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt=""></a>';
|
||
}
|
||
str +=
|
||
'<li style="box-shadow: none;margin-right: 0;">' +
|
||
'<a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'">' +
|
||
'<img src="' +
|
||
imgarticleUrl +
|
||
arr[i].icon +
|
||
'" alt="" style="background: #fff;"></a>' +
|
||
'<h6><a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'" ' +
|
||
'style="font-weight: bold;color: #444;">' +
|
||
arr[i].title +
|
||
"</a></h6>" +
|
||
'<div class="fo_fam">' +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</div></li>";
|
||
}
|
||
$(".ncon_hl>a").attr(
|
||
"href",
|
||
"article_list.html?J_num=" + Jour_num + "&top_id=" + Jour_num
|
||
);
|
||
$(".ncon_hl>ul").html(str + '<br clear="both">');
|
||
if (arr == "") {
|
||
$(".ncon_hl").css("display", "none");
|
||
}
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
$(".ncon_hl").css("display", "none");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// TMR 中下侧Top cited / Top read / Top download文章切换
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getTopArt",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
type: "cited",
|
||
pageIndex: "1",
|
||
pageSize: "8",
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.articleList;
|
||
var str = "";
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (arr[i].icon == "") {
|
||
var img_i = "img/baiss.png";
|
||
} else {
|
||
var img_i = imgarticleUrl + arr[i].icon;
|
||
}
|
||
|
||
str +=
|
||
'<div><a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><img src="' +
|
||
img_i +
|
||
'" alt=""></a>' +
|
||
'<h6><a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'">' +
|
||
arr[i].title +
|
||
"</a></h6>" +
|
||
'<div class="fo_fam">' +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</div></div>";
|
||
}
|
||
|
||
$(".ncon_tcrd_tmr>a").attr(
|
||
"href",
|
||
"article_list.html?J_num=" + Jour_num + "&cite_id=1"
|
||
);
|
||
|
||
$(".ncon_tcrd_tmr>ul").html(
|
||
'<div id="Marquee_x"><ul><li>' + str + "</li></ul></div>"
|
||
);
|
||
$("#Marquee_x").jcMarquee({ marquee: "x", speed: 20 });
|
||
|
||
$(".ncon_tcrd_tmr h4 span").click(function () {
|
||
var tnm_num = $(".ncon_tcrd_tmr h4 span").index(this) + 1;
|
||
$(".ncon_tcrd_tmr h4 span").css("font-weight", "normal");
|
||
$(this).css("font-weight", "600");
|
||
if (tnm_num == "1") {
|
||
var tnm_type = "cited";
|
||
$(".ncon_tcrd_tmr>a").attr(
|
||
"href",
|
||
"article_list.html?J_num=" + Jour_num + "&cite_id=1"
|
||
);
|
||
}
|
||
if (tnm_num == "2") {
|
||
var tnm_type = "read";
|
||
$(".ncon_tcrd_tmr>a").attr(
|
||
"href",
|
||
"article_list.html?J_num=" + Jour_num + "&read_id=1"
|
||
);
|
||
}
|
||
if (tnm_num == "3") {
|
||
var tnm_type = "download";
|
||
$(".ncon_tcrd_tmr>a").attr(
|
||
"href",
|
||
"article_list.html?J_num=" + Jour_num + "&down_id=1"
|
||
);
|
||
}
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getTopArt",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
type: tnm_type,
|
||
pageIndex: "1",
|
||
pageSize: "8",
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.articleList;
|
||
var str = "";
|
||
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (arr[i].icon == "") {
|
||
var img_i = "img/baiss.png";
|
||
} else {
|
||
var img_i = imgarticleUrl + arr[i].icon;
|
||
}
|
||
str +=
|
||
'<div><a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'"><img src="' +
|
||
img_i +
|
||
'" alt=""></a>' +
|
||
'<h6><a target="_blank" href="article.html?J_num=' +
|
||
Jour_num +
|
||
"&a_id=" +
|
||
arr[i].article_id +
|
||
'">' +
|
||
arr[i].title +
|
||
"</a></h6>" +
|
||
'<div class="fo_fam">' +
|
||
arr[i].abbr +
|
||
". | " +
|
||
arr[i].stage_year +
|
||
"</div></div>";
|
||
}
|
||
$(".ncon_tcrd_tmr>ul").html(
|
||
'<div id="Marquee_x"><ul><li>' + str + "</li></ul></div>"
|
||
);
|
||
$("#Marquee_x").jcMarquee({ marquee: "x", speed: 20 });
|
||
}
|
||
},
|
||
});
|
||
});
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
$(".ncon_tcrd_tmr").css("display", "none");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 下侧Call for Paper文章
|
||
if (Jour_num != 1) {
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getJournalCfp",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.cfps;
|
||
var str = "";
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (i == 2) break;
|
||
|
||
str +=
|
||
'<li style="border-radius:4px;"><div><span>' +
|
||
arr[i].showtime +
|
||
"</span><h6>" +
|
||
'<a target="_blank" href="/notice.html?J_num=' +
|
||
Jour_num +
|
||
"&cfp_id=" +
|
||
arr[i].journal_cfp_id +
|
||
'">' +
|
||
arr[i].title +
|
||
"</a></h6>" +
|
||
'<div class="cfp_con fo_fam">' +
|
||
arr[i].content +
|
||
"</div></div>" +
|
||
'<a target="_blank" href="/notice.html?J_num=' +
|
||
Jour_num +
|
||
"&cfp_id=" +
|
||
arr[i].journal_cfp_id +
|
||
'"><img src="' +
|
||
imgcfpUrl +
|
||
arr[i].icon +
|
||
'" alt=""></a></li>';
|
||
}
|
||
$(".ncon_aper>a").attr(
|
||
"href",
|
||
"/notice_list.html?J_num=" + Jour_num + "&paper_id=" + Jour_num
|
||
);
|
||
$(".ncon_aper>ul").html(str + '<br clear="both">');
|
||
|
||
if (arr.length > 0) {
|
||
$(".ncon_aper").css({
|
||
"padding-top": "15px",
|
||
display: "block",
|
||
});
|
||
$(".ncon_aper .more").css({
|
||
top: "35px",
|
||
});
|
||
$(".ncon_aper ul li").css({
|
||
background: "#fff",
|
||
});
|
||
} else {
|
||
$(".ncon_aper").css("display", "none");
|
||
}
|
||
|
||
$(".ncon_aper ul .cfp_con").each(function () {
|
||
var maxwidth = 150; //显示多少字符
|
||
if ($(this).text().length > maxwidth) {
|
||
$(this).text($(this).text().substring(0, maxwidth));
|
||
$(this).text(
|
||
$(this)
|
||
.text()
|
||
.substring(
|
||
0,
|
||
maxwidth - $(this).text().split(" ").pop().length
|
||
)
|
||
);
|
||
$(this).html($(this).html() + "...");
|
||
}
|
||
});
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
$(".ncon_aper").css("display", "none");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
}
|
||
|
||
// 下面新增加社区内容
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getAllTopics",
|
||
data: {},
|
||
beforeSend: function () {},
|
||
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var old_arry = result.data.topic;
|
||
var new_arry = result.data.topic;
|
||
|
||
new_arry = old_arry.map((o) => {
|
||
return { id: o.base_topic_id, text: o.title };
|
||
});
|
||
|
||
for (var i = 0; i < old_arry.length; i++) {
|
||
new_arry[i].children = old_arry[i].children.map((o) => {
|
||
return { id: o.base_topic_id, text: o.title };
|
||
});
|
||
}
|
||
|
||
$("#com_index").selectivity({
|
||
allowClear: true,
|
||
items: new_arry,
|
||
placeholder: "Please select a topic",
|
||
});
|
||
|
||
$(".es_serch_btn").click(function () {
|
||
$(".es_serch_span").css("display", "none");
|
||
if ($("#com_index").selectivity("val") == null) {
|
||
$(".es_serch_span").css("display", "block");
|
||
$(".es_serch_span").text("Please select a topic");
|
||
ShowDanger("Request was aborted!");
|
||
} else {
|
||
window.open(
|
||
"atr_wisdom.html?&wis_dom=" + $("#com_index").selectivity("val")
|
||
);
|
||
}
|
||
});
|
||
|
||
$(".uity_Sub").after(`<div style="display: flex;
|
||
align-items: center;
|
||
justify-content: center;">
|
||
<div style="display: inline-block;" class="share_tmrtb">
|
||
<b style="color:${Journals_color}">Follow Us:</b>
|
||
${
|
||
Jour_num == 1
|
||
? `<div style="display: inline-block;" onclick="window.open('https://www.facebook.com/TMR24133973')">
|
||
<img alt="facebook-white sharing button"
|
||
src="https://platform-cdn.sharethis.com/img/facebook-white.svg">
|
||
</div>
|
||
<div style="display: inline-block;" onclick="window.open('https://twitter.com/Traditi95990264')">
|
||
<img alt="twitter-white sharing button"
|
||
src="https://platform-cdn.sharethis.com/img/twitter-white.svg">
|
||
</div>
|
||
<div style="display: inline-block;"
|
||
onclick="window.open('https://www.linkedin.com/showcase/traditional-medicine-research/')">
|
||
<img alt="linkedin-white sharing button"
|
||
src="https://platform-cdn.sharethis.com/img/linkedin-white.svg">
|
||
</div>`
|
||
: '<div class="sharethis-inline-share-buttons"></div>'
|
||
}
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
`);
|
||
setTimeout(() => {
|
||
if (window.__sharethis__) {
|
||
__sharethis__.initialize();
|
||
}
|
||
}, 50);
|
||
// 期刊订阅提交
|
||
$(".uity_Sub").click(function () {
|
||
$(".spa_su").text("");
|
||
var add_mess = {};
|
||
add_mess.journal_id = localStorage.Journals_num;
|
||
add_mess.email = $(".uity_inp").val();
|
||
|
||
var S_Dan = "0";
|
||
var reg = /^[-.-_A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
|
||
if ($(".uity_inp").val() == "") {
|
||
$(".spa_su").text("Please fill in E-mail");
|
||
S_Dan = "1";
|
||
} else if (!reg.test($(".uity_inp").val())) {
|
||
$(".spa_su").text("Please fill in properly formatted E-mail");
|
||
S_Dan = "1";
|
||
}
|
||
|
||
if (S_Dan == "1") {
|
||
ShowDanger("Incomplete information!");
|
||
} else {
|
||
$(".uity_Sub").addClass("disable");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "subscribe/Journal/addSubscribeJournal",
|
||
data: add_mess,
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
$(".suity_for input[type='text']").val("");
|
||
$(".uity_Sub").removeClass("disable");
|
||
$(".jour_ts").fadeIn();
|
||
} else {
|
||
ShowDanger(result.msg);
|
||
$(".uity_Sub").removeClass("disable");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
$(".yue_addw").removeClass("disable");
|
||
},
|
||
});
|
||
}
|
||
});
|
||
} else {
|
||
ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
});
|
||
|
||
// 时间轴
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Journal/getJournalLine",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.lines;
|
||
var str = "";
|
||
var shr = "";
|
||
var dis_ = 946656000000;
|
||
|
||
for (var i = 0; i < arr.length; i++) {
|
||
var disx_ = arr[i].dist * 86700000;
|
||
dis_ = dis_ + disx_;
|
||
|
||
str +=
|
||
'<li><a href="#0" data-date="' +
|
||
formatTimeToDate2(dis_) +
|
||
'">' +
|
||
arr[i].time +
|
||
"</a></li>";
|
||
|
||
if (i == arr.length - 1) {
|
||
shr +=
|
||
'<li data-date="' +
|
||
formatTimeToDate2(dis_) +
|
||
'">' +
|
||
'<img src="' +
|
||
imglineUrl +
|
||
arr[i].img +
|
||
'" style="width: 80px;height: 100px;float: left">' +
|
||
'<div style="float: left;width: 580px;margin-left: 30px"><h2>' +
|
||
'<a href="article_list.html?J_num=' +
|
||
Jour_num +
|
||
"&time_id=" +
|
||
arr[i].journal_line_id +
|
||
'" target="_blank">>> ' +
|
||
arr[i].title +
|
||
"</a></h2>" +
|
||
"<p>" +
|
||
arr[i].intro +
|
||
'</p></div><br clear="both"></li>';
|
||
} else {
|
||
if (arr[i].time == arr[i + 1].time) {
|
||
shr +=
|
||
'<li data-date="' +
|
||
formatTimeToDate2(dis_) +
|
||
'">' +
|
||
'<img src="' +
|
||
imglineUrl +
|
||
arr[i].img +
|
||
'" style="width: 80px;height: 100px;float: left">' +
|
||
'<div style="float: left;width: 580px;margin-left: 30px"><h2>' +
|
||
'<a href="article_list.html?J_num=' +
|
||
Jour_num +
|
||
"&time_id=" +
|
||
arr[i].journal_line_id +
|
||
'" target="_blank">>> ' +
|
||
arr[i].title +
|
||
"</a></h2>" +
|
||
"<p>" +
|
||
arr[i].intro +
|
||
'</p></div><br clear="both">' +
|
||
'<img src="' +
|
||
imglineUrl +
|
||
arr[i + 1].img +
|
||
'" style="margin-top: 20px;width: 80px;height: 100px;float: left">' +
|
||
'<div style="float: left;width: 580px;margin-left: 30px;margin-top: 20px;"><h2>' +
|
||
'<a href="article_list.html?J_num=' +
|
||
Jour_num +
|
||
"&time_id=" +
|
||
arr[i + 1].journal_line_id +
|
||
'" target="_blank">>> ' +
|
||
arr[i + 1].title +
|
||
"</a></h2>" +
|
||
"<p>" +
|
||
arr[i + 1].intro +
|
||
'</p></div><br clear="both">' +
|
||
"</li>";
|
||
i = i + 1;
|
||
} else {
|
||
shr +=
|
||
'<li data-date="' +
|
||
formatTimeToDate2(dis_) +
|
||
'">' +
|
||
'<img src="' +
|
||
imglineUrl +
|
||
arr[i].img +
|
||
'" style="width: 80px;height: 100px;float: left">' +
|
||
'<div style="float: left;width: 580px;margin-left: 30px"><h2>' +
|
||
'<a href="article_list.html?J_num=' +
|
||
Jour_num +
|
||
"&time_id=" +
|
||
arr[i].journal_line_id +
|
||
'" target="_blank">>> ' +
|
||
arr[i].title +
|
||
"</a></h2>" +
|
||
"<p>" +
|
||
arr[i].intro +
|
||
'</p></div><br clear="both"></li>';
|
||
}
|
||
}
|
||
}
|
||
|
||
$(".cd-horizontal-timeline").css("display", "none");
|
||
|
||
// if(arr==''||arr==undefined){
|
||
// $('.cd-horizontal-timeline').css('display','none')
|
||
// $('.wh_timeline').css('display','none')
|
||
// }else{
|
||
// $('.events-wrapper ol').html(str);
|
||
// $('.events-wrapper ol li:nth-child(1) a').addClass('selected');
|
||
//
|
||
// $('.events-content ol').html(shr);
|
||
// $('.events-content ol li:nth-child(1)').addClass('selected');
|
||
//
|
||
// line_time();
|
||
// }
|
||
} else {
|
||
// ShowDanger("请求失败!");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
},
|
||
});
|
||
|
||
// 底部浮动订阅
|
||
// var flag = true;
|
||
// $(window).on('scroll',function(){
|
||
// if(flag) {
|
||
// $('.footpanel').css('display','block');
|
||
// }
|
||
// flag = false
|
||
// })
|
||
$(".footpanel .ftp_close").click(function () {
|
||
$(".footpanel").hide();
|
||
});
|
||
$(".footpanel .ftp_paper .fpr_from a").attr("href", "agree.html");
|
||
|
||
// 订阅提交
|
||
$(".yue_addfp").click(function () {
|
||
$(".spafp").text("");
|
||
var add_mess = {};
|
||
add_mess.journal_id = localStorage.Journals_num;
|
||
add_mess.email = $("#emapfp").val();
|
||
|
||
var S_Dan = "0";
|
||
var reg = /^[-.-_A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
|
||
if ($("#emapfp").val() == "") {
|
||
$(".spafp").text("Please fill in E-mail");
|
||
S_Dan = "1";
|
||
} else if (!reg.test($("#emapfp").val())) {
|
||
$(".spafp").text("Please fill in properly formatted E-mail");
|
||
S_Dan = "1";
|
||
} else if (
|
||
$(".footpanel input:checkbox[name='ment']:checked").val() == undefined
|
||
) {
|
||
$(".spafp").text("Please check the agreement");
|
||
S_Dan = "1";
|
||
}
|
||
|
||
if (S_Dan == "1") {
|
||
ShowDanger("Incomplete information!");
|
||
} else {
|
||
$(".yue_add").addClass("disable");
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "subscribe/Journal/addSubscribeJournal",
|
||
data: add_mess,
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
$(".fpr_from input[type='text']").val("");
|
||
$(".yue_addfp").removeClass("disable");
|
||
$(".jour_ts").fadeIn();
|
||
} else {
|
||
ShowDanger(result.msg);
|
||
$(".yue_addfp").removeClass("disable");
|
||
}
|
||
},
|
||
error: function () {
|
||
ShowDanger("error!");
|
||
$(".yue_addfp").removeClass("disable");
|
||
},
|
||
});
|
||
}
|
||
});
|
||
|
||
//搜索
|
||
$(".ment_sousuo_kuang .soukuang_btn").click(function () {
|
||
window.open(
|
||
"jour_search.html?J_num=" +
|
||
Jour_num +
|
||
"&se_ch=" +
|
||
$(".ment_sousuo_kuang .soukuang_inp").val()
|
||
);
|
||
});
|
||
}
|
||
|
||
function getCiteList(a_ID) {
|
||
$(".cite_box .export_cite").html('<div class="loader-01"></div>');
|
||
var journalCiteStr = "";
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Article/getArticleCites",
|
||
data: {
|
||
article_id: a_ID,
|
||
},
|
||
success: function (result) {
|
||
if (result.code == 0) {
|
||
var arr = result.data.list;
|
||
for (let i in arr) {
|
||
journalCiteStr += `
|
||
<div class='cite_list_item' style="margin-bottom:10px;podding:10px 0;display:flex;border-bottom: ${
|
||
i != arr.length - 1 ? "1px solid #ccc" : "none"
|
||
};}"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||
<div>
|
||
<p style="display: block; line-height: 20px;
|
||
font-size: 13px;
|
||
margin-bottom: 3px;"> <a style="color:#205493 !important;"
|
||
target="_blank"
|
||
href="${arr[i].doi ? "https://doi.org/" + arr[i].doi : ""}">
|
||
${arr[i].article_name}
|
||
</a></p>
|
||
|
||
<p style="line-height: 14px;margin-bottom: 10px;">
|
||
<span style="color: #a2b1b6;
|
||
font-size: 13px;">${arr[i].author ? `${arr[i].author},` : ""} ${
|
||
arr[i].journal_name
|
||
}${arr[i].vol ? `${arr[i].vol},` : ""}
|
||
</span>
|
||
<span style="margin-left:5px;color:#205493 !important;">
|
||
</span></p></div>
|
||
|
||
</div> `;
|
||
}
|
||
journalCiteStr += ` <div class="cite_triangle"></div>`;
|
||
|
||
$(".cite_box .export_cite").html(journalCiteStr);
|
||
}
|
||
},
|
||
});
|
||
}
|
||
function processAuthors(authors) {
|
||
var authorArray = authors.split(","); // 将作者按逗号分割为数组
|
||
if (authorArray.length > 6) {
|
||
return authorArray.slice(0, 3).join(", ") + ", et al"; // 如果超过6个作者,显示前三个并加上 "et al."
|
||
} else {
|
||
return authorArray.join(", "); // 如果6个或更少作者,直接显示所有
|
||
}
|
||
}
|
||
function initJournalBaseInfo(result) {
|
||
//头部左侧期刊信息(issn+img)
|
||
var arr_jour = result.data.journal;
|
||
const style = document.createElement("style");
|
||
style.innerHTML = `
|
||
.apc-link:hover {
|
||
|
||
color: ${arr_jour.system_color};
|
||
}`;
|
||
document.head.appendChild(style);
|
||
console.log("arr_jour at line 1409:", arr_jour);
|
||
var ImpactFactor = "";
|
||
var CiteScore = "";
|
||
var apcUrl = ``;
|
||
|
||
// 出版周期匹配
|
||
switch (arr_jour.cycle) {
|
||
case 1:
|
||
arr_jour.cycle_ = "Monthly";
|
||
break;
|
||
case 2:
|
||
arr_jour.cycle_ = "Bi-monthly";
|
||
break;
|
||
case 3:
|
||
arr_jour.cycle_ = "Quarterly";
|
||
break;
|
||
default:
|
||
arr_jour.cycle_ = "Unknown"; // 默认情况,可以根据需要调整
|
||
break;
|
||
}
|
||
switch (Number(Jour_num)) {
|
||
//tmr
|
||
case 1:
|
||
ImpactFactor = "1.3";
|
||
CiteScore = "2.5";
|
||
break;
|
||
//bmec
|
||
case 25:
|
||
CiteScore = "1.8";
|
||
apcUrl = `https://www.tmrjournals.com/bmec/apc`;
|
||
break;
|
||
//mdm
|
||
|
||
case 11:
|
||
CiteScore = "0.4";
|
||
apcUrl = `https://www.tmrjournals.com/mdm/apc`;
|
||
break;
|
||
case 14:
|
||
CiteScore = "0.8";
|
||
break;
|
||
case 2:
|
||
case 17:
|
||
case 18:
|
||
arr_jour.cycle_ = "Continuities";
|
||
break;
|
||
}
|
||
|
||
var ImpactFactorStr =
|
||
Jour_num == 1
|
||
? `<div class="cite-score-badge" style="width: 64px;height: 64px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: transparent;box-shadow: inset 0 0 12px rgb(255 255 255), 0 0 16px rgba(0, 150, 255, 0.4);text-align: center;color: #000;float: right;margin-left: 10px;margin-top: 2px;">
|
||
<span class="cite-text" style="font-size: 11px;line-height: 16px;font-weight: 600;color: #f0f0f0;letter-spacing: -0.75px;">
|
||
<text style="margin-top: 7px;line-height: 19px;display: inline-block;">Impact Factor</text>
|
||
<strong style="font-size: 18px;color: #fff;">${ImpactFactor}</strong>
|
||
</span>
|
||
</div>`
|
||
: "";
|
||
var CiteScoreStr = `<div class="cite-score-badge" style="width: ${
|
||
Jour_num == 1 ? 64 : 60
|
||
}px;height: ${
|
||
Jour_num == 1 ? 64 : 60
|
||
}px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: transparent;
|
||
box-shadow: inset 0 0 12px rgb(255 255 255), 0 0 16px rgba(0, 150, 255, 0.4);
|
||
text-align: center;
|
||
color: #000;
|
||
float: right;
|
||
margin-left: ${Jour_num == 1 ? 10 : 20}px;
|
||
margin-top: 2px;
|
||
">
|
||
<span class="cite-text" style="font-size: 12px;line-height: 16px;font-weight: 600;color: #f0f0f0;letter-spacing: -0.75px;">
|
||
<text style="margin-top: 7px;line-height: 19px;display: inline-block;">CiteScore</text>
|
||
<strong style="font-size:18px;color: #fff;">${CiteScore}</strong>
|
||
</span>
|
||
</div>`;
|
||
$("#top_bar .rgb_color_background h1").css({ position: "relative" });
|
||
if (ImpactFactor || CiteScore) {
|
||
$("#top_bar .rgb_color_background h1 a").after(
|
||
`<div style="position: absolute;width:auto;top: -30px;right: ${
|
||
Jour_num == 1 ? -170 : -110
|
||
}px;">${ImpactFactorStr}${CiteScoreStr}</div>`
|
||
);
|
||
}
|
||
if (Jour_num == 1) {
|
||
// $('.nav_ban h2').html('<img src="../img/h2_tit.png" style="margin-top: 26px;"/>');
|
||
$(".nav_ban h2").html(
|
||
'<img src="/img/h2tmr10.png" style="margin-top: 14px;height:24px"/>'
|
||
);
|
||
} else if (Jour_num == 2) {
|
||
//cancer
|
||
$(".nav_ban h2").html(
|
||
'<img src="/img/h2cancer3.png" style="margin-top: 14px;height:24px"/>'
|
||
);
|
||
} else if (Jour_num == 11) {
|
||
//mdm
|
||
$(".nav_ban h2").html(
|
||
'<img src="/img/h2mdm3.png" style="margin-top: 14px;height:24px"/>'
|
||
);
|
||
} else if (Jour_num == 25) {
|
||
//bmec
|
||
$(".nav_ban h2").html(
|
||
'<img src="/img/h2bmec3.png" style="margin-top: 14px;height:24px"/>'
|
||
);
|
||
} else if (Jour_num == 14) {
|
||
//lr
|
||
$(".nav_ban h2").html(
|
||
'<img src="/img/h2lr2.png" style="margin-top: 14px;height:24px"/>'
|
||
);
|
||
|
||
} else if (Jour_num == 4) {
|
||
//lr
|
||
$(".nav_ban h2").html(
|
||
'<img src="/img/h2Ia1.png" style="margin-top: 14px;height:24px"/>'
|
||
);
|
||
}
|
||
|
||
// 外链信息
|
||
var arr_Abc = result.data.journalAbs.filter((e) => e.is_show == 1);
|
||
var AbstractingStr = "";
|
||
for (var i = 0; i < arr_Abc.length; i++) {
|
||
// if (arr_Abc[i].is_show == 1) {
|
||
AbstractingStr += `<li style="${
|
||
i > 7 ? "display:none" : "display:block"
|
||
}">» <a target="_blank" href="${arr_Abc[i].url}">${
|
||
arr_Abc[i].title
|
||
}</a></li>`;
|
||
// }
|
||
}
|
||
|
||
var apcStr = ``;
|
||
if ([1, 25, 11].includes(Number(Jour_num))) {
|
||
if (arr_jour.apc == "$600") {
|
||
apcStr = `<span style="color: ${arr_jour.system_color};"> ${arr_jour.apc}</span>`;
|
||
} else {
|
||
apcStr = arr_jour.apc;
|
||
}
|
||
} else {
|
||
apcStr =
|
||
arr_jour.apc +
|
||
`<span style="color: ${arr_jour.system_color};font-weight: bold;margin-left:6px;">( 2025–2026 )</span>`;
|
||
}
|
||
//是否显示地图
|
||
var isShowAuthorship = 0;
|
||
if ([1, 14, 8].includes(Number(Jour_num))) {
|
||
isShowAuthorship = 1;
|
||
}
|
||
var ISSNDirection = "left";
|
||
var ISSNColor = "#7a2702";
|
||
var ISSNBottom = "6px";
|
||
if ([14, 11, 17].includes(Number(Jour_num))) {
|
||
ISSNDirection = "right";
|
||
ISSNColor = "#e9e9e9";
|
||
} else if ([18].includes(Number(Jour_num))) {
|
||
ISSNDirection = "right";
|
||
ISSNColor = "#fff";
|
||
}
|
||
//hpm
|
||
else if ([8].includes(Number(Jour_num))) {
|
||
ISSNDirection = "right";
|
||
ISSNColor = "#333";
|
||
ISSNBottom = "4px";
|
||
} else if ([2].includes(Number(Jour_num))) {
|
||
ISSNColor = "#e9e9e9";
|
||
} else if ([4].includes(Number(Jour_num))) {
|
||
ISSNColor = "#fff";
|
||
}
|
||
// <p style="${ISSNDirection}:6px;text-align:${ISSNDirection};color:${ISSNColor};bottom:${ISSNBottom};font-size:12px" class="mes_issn_box"><b>ISSN:</b> <span class="mes_issn">${arr_jour.issn}</span></p><p>
|
||
|
||
var leftStr = `
|
||
<a href="/${arr_jour.usx}" class="qk_img">
|
||
<img src="${imgjourUrl + arr_jour.icon}"alt="">
|
||
</a>
|
||
|
||
`;
|
||
$(".jour_base_info .jour_base_info_center .jour_base_info_center_left").html(
|
||
leftStr
|
||
);
|
||
// <p style="${ImpactFactor ? '' : 'display:none'}"><b>Impact Factor (Clarivate):</b> <span style="color: ${arr_jour.system_color}">${ImpactFactor}</span></p>
|
||
// <p style="${CiteScore ? '' : 'display:none'}"><b>CiteScore (Scopus):</b> <span style="color: ${arr_jour.system_color}">${CiteScore}</span></p>
|
||
|
||
//头部左侧期刊其他信息
|
||
var otherStr1 = `
|
||
<li class="mes_all_section_other" style="">
|
||
<div style="${
|
||
[1, 2, 8, 4, 11, 18].includes(Number(Jour_num))
|
||
? "padding-top:10px"
|
||
: ""
|
||
}" class="">
|
||
<p>
|
||
<b style="font-size:16px;">Editor-in-Chief</b>
|
||
<p class="mes_edit"
|
||
style="display: inline-block;vertical-align: top;margin: 0px;">${
|
||
arr_jour.editorinchief
|
||
}</p>
|
||
</p>
|
||
|
||
<p class="edit_board_tmr">
|
||
<b style="font-size:16px;">Editorial Board</b>
|
||
<a href="${arr_jour.board_url}"
|
||
target="_blank">
|
||
<img src="/img/editor.png" style="width: 26px;height: 25px;margin: 0 0 0 4px;vertical-align: bottom;">
|
||
</a>
|
||
</p>
|
||
|
||
<p><span>Acceptance:</span> <span class="mes_accep">${
|
||
arr_jour.acceptance
|
||
}</span></p>
|
||
<p><span>Final Decision:</span> <span class="mes_final">${
|
||
arr_jour.finaldecision
|
||
}</span></p>
|
||
<p><span>APC:</span> <span class="mes_APC">
|
||
${
|
||
Jour_num == 25 || Jour_num == 11
|
||
? `<a href="${apcUrl}" target="_blank" class="apc-link"><span>${apcStr}</span></a>`
|
||
: apcStr
|
||
}
|
||
</span>
|
||
<a href="https://www.tmrjournals.com/tmr/free-application" target="_blank" style="${
|
||
Jour_num == 1
|
||
? "display: inline-block;"
|
||
: "display: none;"
|
||
}" class="FreeapplicationBox"><span
|
||
class="Freeapplication" style="
|
||
margin-left: 4px;
|
||
position: relative;
|
||
|
||
color: #444;
|
||
border-radius: 4px;
|
||
box-sizing: border-box;
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
">Free application</span></a>
|
||
</p>
|
||
<p><span>Frequency:</span> <span class="mes_cycle">${
|
||
arr_jour.cycle_
|
||
}</span></p>
|
||
<p><span>E-Mail:</span> <span class="mes_email"
|
||
style="color: ${Journals_color}">${
|
||
arr_jour.email
|
||
}</span></p>
|
||
<p class="mes_issn_box" style="position: relative;bottom:0;left:0;text-align:left;font-weight:500 !important;color:#444;"><span style="font-weight:500 !important;">ISSN:</span> <span class="mes_issn" style="font-weight:500 !important;">${
|
||
arr_jour.issn
|
||
}</span></p>
|
||
|
||
|
||
</div>
|
||
</li>
|
||
`;
|
||
//
|
||
var otherStr2 = `
|
||
<li class="mes_all_section_other" style="max-width:210px;min-width:170px">
|
||
<div class="mes_all_title" style="1">Content</div>
|
||
<p class="mes_all_current_issue" style="color:#444;font-weight: 500;">Current Issue</p>
|
||
<p style="height:20px;"><span class="mes_all_current_issue_time" style="color:${
|
||
Journals_color ? Journals_color : "#006699"
|
||
}"></span></p>
|
||
<p class="mes_all_section_other_online"><a href="/article_list.html?J_num=${Jour_num}&o_id=${Jour_num}" target="_blank">Online First</a></p>
|
||
<p><a href="/stages.html?J_num=${Jour_num}" target="_blank">Archiving</a></p>
|
||
<p style="${
|
||
Jour_num == 1 ? "display:block" : "display:none"
|
||
}"><a href="/guest.html?J_num=${Jour_num}" target="_blank">Special Issues</a></p>
|
||
<p style="display:none;font-size:12px;height:20px;" id="ongoing-link"
|
||
><a href="/Ongoing.html?J_num=${Jour_num}" target="_blank" style="color:${
|
||
Journals_color ? Journals_color : "#006699"
|
||
};">Ongoing</a></p>
|
||
<p><a href="/article_list.html?J_num=${Jour_num}&top_id=${Jour_num}" target="_blank">Highlights</a></p>
|
||
<p style="${
|
||
Jour_num != 1 ? "display:block" : "display:none"
|
||
}"><a href="/article_list.html?J_num=${Jour_num}&n_id=${Jour_num}" target="_blank">News & Comment</a></p>
|
||
<p><a href="#Topics">Topics</a></p>
|
||
|
||
|
||
</li>`;
|
||
var otherStr3 = `
|
||
<li class="mes_all_section_other">
|
||
<div class="mes_all_title">Publish</div>
|
||
<p><a href="javascript:void(0);" class="Abstracting" >Abstracting & Indexing</a></p>
|
||
<p><a href="/about_journal.html?J_num=${Jour_num}" target="_blank">About Journal</a></p>
|
||
<!--地图弹窗-->
|
||
<div class="Authorship" style="position: relative;z-index:10;cursor: pointer;${
|
||
isShowAuthorship ? "display:block" : "display:none"
|
||
}">
|
||
|
||
<p class="Authorship_text">Authorship</p>
|
||
<div class="tmr_side_map AuthorshipInfo" style="box-shadow: rgb(255, 255, 255) 0px 0px 12px inset, rgba(0, 150, 255, 0.4) 0px 0px 16px;
|
||
border-radius: 10px;overflow: hidden;;opacity: 0;position: absolute;right: -140px;top: -4px;width:270px;">
|
||
<div style="font: 16px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;font-weight:bold;color:${Journals_color};padding: 14px 20px 4px 20px;font-size: 16px;">The Past Three Years</div>
|
||
<div id="worldMap" style="width: 100%;height: 140px;margin: 0 auto 10px auto"></div>
|
||
<ul class="map_paiming" style="padding: 0 20px 10px 20px;"></ul>
|
||
</div>
|
||
</div>
|
||
<p><a href="/for_author.html?J_num=${Jour_num}" target="_blank">Guide for Authors</a></p>
|
||
<p ><a href="/afoor_text.html?footer_id=37" target="_blank">Peer-review process</a></p>
|
||
|
||
<p><a href="/z_f11-1.html?J_num=${Jour_num}" target="_blank">Ethics and Malpractice Statement</a></p>
|
||
<p style="${
|
||
Jour_num == 1 || Jour_num == 25 ? "" : "display:none"
|
||
}" class="mes_all_section_Gue_special" ><a href="/gue_edit.html?J_num=${Jour_num}" target="_blank">Special Issue Proposal</a></p>
|
||
<p > <a href="${
|
||
arr_jour.submission_url
|
||
}" target="_blank">Submission System</a></p>
|
||
</div>
|
||
</li>
|
||
`;
|
||
|
||
let pCount = 0;
|
||
|
||
// 一定会显示的 <p>(About Journal、Guide for Authors、Peer-review、Submission、Ethics、Contact)
|
||
pCount += 6;
|
||
|
||
// 判断 Authorship 是否显示
|
||
if (isShowAuthorship) {
|
||
pCount += 1;
|
||
}
|
||
|
||
// 判断 Special Issue Proposal 是否显示
|
||
if (Jour_num == 1 || Jour_num == 25) {
|
||
pCount += 1;
|
||
}
|
||
|
||
var normalLength = pCount - 1;
|
||
// var otherStr4 = `
|
||
// <li class="mes_all_section_other">
|
||
// <div class="mes_all_title">Abstracting & Indexing</div>
|
||
// <ul class="mes_Abs" style="width:200px;background:#fff;padding: 0px 4px;border-radius:4px;overflow:hidden;">${AbstractingStr}
|
||
// ${arr_Abc.length > normalLength ? `<a class="wl_click">more <i class="fa fa-long-arrow-down"></i></a>` : ''}
|
||
// </ul>
|
||
// </li>
|
||
// `
|
||
$(".jour_base_info .jour_base_info_center .mes_all .mes_all_section").html(
|
||
otherStr1 + otherStr2 + otherStr3
|
||
);
|
||
if (Jour_num == 1) {
|
||
$.ajax({
|
||
type: "post",
|
||
url: apiUrl + "api/Supplementary/getSpecialIssue",
|
||
data: {
|
||
journal_id: Jour_num,
|
||
},
|
||
success: function (result) {
|
||
if (result.status == 1 && result.data && result.data.length > 0) {
|
||
$("#ongoing-link").show();
|
||
}
|
||
},
|
||
});
|
||
}
|
||
|
||
$(`.mes_Abs li:gt(${normalLength - 1})`).hide();
|
||
$(".Abstracting").bind("click", function (e) {
|
||
var Abstractingcontent = `<ul style="margin-top:10px;">
|
||
${arr_Abc
|
||
.map((item, i) => {
|
||
return `<li style="font-weight:700;font-size:14px;"><span style="display:inline-block">» </span><a target="_blank" href="${item.url}" style="font-weight:700;display:inline-block">${item.title}</a></li>`;
|
||
})
|
||
.join("")}
|
||
</ul>`;
|
||
document
|
||
.querySelector("#common-popup .common-popup-content")
|
||
.classList.add("whitebg");
|
||
showPopup(
|
||
`<span style="font-weight:bold;color:${Journals_color}">Abstracting & Indexing</span>`,
|
||
Abstractingcontent
|
||
);
|
||
|
||
// e.stopPropagation();
|
||
// // f4fafd
|
||
// $('.mes_Abs').css({
|
||
// 'background': '#fff'
|
||
// })
|
||
// if ($(".wl_click").html() == 'more <i class="fa fa-long-arrow-up"></i>') {
|
||
// $('.mes_Abs li:gt(14)').hide();
|
||
// $('.wl_click').html('more <i class="fa fa-long-arrow-down"></i>');
|
||
// } else {
|
||
// $('.mes_Abs li:gt(14)').show();
|
||
// $('.wl_click').html('more <i class="fa fa-long-arrow-up"></i>');
|
||
// $('.mes_Abs').css({
|
||
// 'background': '#f4fafd'
|
||
// })
|
||
// }
|
||
});
|
||
$(".wl_click").css("color", arr_jour.system_color);
|
||
|
||
renderMap(160, function () {
|
||
console.log("Operation after renderMap");
|
||
$(".AuthorshipInfo").css("width", "0px");
|
||
});
|
||
$(
|
||
".jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_other .Authorship .Authorship_text"
|
||
).click(function (e) {
|
||
// 阻止事件冒泡,避免触发文档点击事件
|
||
e.stopPropagation();
|
||
// 获取 .AuthorshipInfo 元素
|
||
var $exportMenu = $(".AuthorshipInfo");
|
||
// 如果元素的透明度为 0(即不可见),就将其显示(设置透明度为 1)
|
||
if ($exportMenu.css("opacity") == 0) {
|
||
$exportMenu.stop().animate({ opacity: 1 }, 200); // 渐变显示
|
||
$exportMenu.css("width", "270px"); // Set z-index to 11 when visible
|
||
} else {
|
||
$exportMenu.stop().animate({ opacity: 0 }, 200); // 渐变隐藏
|
||
$exportMenu.css("width", "0px"); // Set z-index to 11 when visible
|
||
}
|
||
});
|
||
// 点击其他地方时隐藏 .AuthorshipInfo
|
||
$(document).click(function (e) {
|
||
if (
|
||
!$(e.target).closest(
|
||
".jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_other .Authorship .Authorship_text"
|
||
).length &&
|
||
!$(e.target).closest(".AuthorshipInfo").length
|
||
) {
|
||
$(".AuthorshipInfo").stop().animate({ opacity: 0 }, 200); // 点击其他地方时渐变隐藏
|
||
$(".AuthorshipInfo").css("width", "0px");
|
||
}
|
||
|
||
const isExpanded = $(".wl_click").html().includes("arrow-up");
|
||
if (isExpanded) {
|
||
$(".mes_Abs li:gt(14)").hide();
|
||
$(".wl_click").html('more <i class="fa fa-long-arrow-down"></i>');
|
||
$(".mes_Abs").css({
|
||
background: "#fff",
|
||
});
|
||
}
|
||
});
|
||
$("#st-2 .st-btn > img").css({
|
||
top: "0 !important",
|
||
});
|
||
}
|
||
// window.onload = function() {
|
||
// setTimeout(showPopup, 3000);
|
||
// };
|
||
|
||
function showPopup(title, content) {
|
||
$("#common-popup .common-popup-title").html(title);
|
||
$("#common-popup .common-popup-content").html(content);
|
||
document.getElementById("common-overlay").style.display = "block";
|
||
document.getElementById("common-popup").style.opacity = "1";
|
||
document.getElementById("common-popup").style.zIndex = "101";
|
||
|
||
// 5秒后自动关闭
|
||
// setTimeout(closePopup, 5000);
|
||
}
|
||
|
||
function closePopup() {
|
||
document.getElementById("common-popup").style.opacity = "0";
|
||
document.getElementById("common-popup").style.zIndex = "-1";
|
||
setTimeout(function () {
|
||
document.getElementById("common-overlay").style.display = "none";
|
||
$("#common-popup .common-popup-title").html("");
|
||
$("#common-popup .common-popup-content").html("");
|
||
}, 50);
|
||
}
|