合并aging

This commit is contained in:
2024-03-11 15:27:47 +08:00
parent 081be67fab
commit 1d24568ccb
2 changed files with 336 additions and 250 deletions

View File

@@ -4,7 +4,7 @@ function bf_list() {
// 增加访问次数
$.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num},
data: { 'type': Jour_num },
success: function (result) {
if (result.code == 0) {
@@ -252,7 +252,7 @@ function bf_list() {
} else {
var trad_tion = '<div><b style="color: ' + localStorage.Journals_color + '">' + arr[i].tradition_tag + ': </b>' + arr[i].tradition + '</div>'
}
if (i == 0||i == 1 || i ==2) {
if (i == 0 || i == 1 || i == 2) {
sim_1 += '<li><div class="dbt_header">' + arr[i].type + pub_date
+ '<div class="url_top">' + lr_top + '</div></div>' +
'<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
@@ -261,7 +261,7 @@ function bf_list() {
'<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
'</div><div class="links_">' + link_ + '</div><div class="apwrap">' + person_img + '<div>' +
trad_tion + '</div><br clear="both"></div></li>'
} else if (i == 3 || i ==4) {
} else if (i == 3 || i == 4) {
sim_2 += '<li class="pai_two"><div class="dbt_header">' + arr[i].type + pub_date +
'<div class="url_top">' + lr_top + '</div></div>' +
'<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
@@ -287,7 +287,7 @@ function bf_list() {
if (Jour_num == 2 || Jour_num == 17 | Jour_num == 18) {
$('.current_list>h4').html('Current Volume<span>' + time_ + '</span>');
} 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) { // 合并期刊
$('.current_list>h4').html('Latest Issue<span>' + time_ + '</span>');
} else {
$('.current_list>h4').html('Current Issue<span>' + time_ + '</span>');
@@ -332,7 +332,7 @@ function bf_list() {
var num = $(this).next().html();
$.ajax({
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
data: {"article_id": $(this).attr('alt'), "type": 'abs'},
data: { "article_id": $(this).attr('alt'), "type": 'abs' },
success: function (result) {
if (result.code == 0) {
num = num * 1 + 1 * 1
@@ -341,7 +341,7 @@ function bf_list() {
})
$.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num, 'is_detail': '1'},
data: { 'type': Jour_num, 'is_detail': '1' },
success: function (result) {
}
});
@@ -352,7 +352,7 @@ function bf_list() {
var num = $(this).next().html();
$.ajax({
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
data: {"article_id": $(this).attr('alt'), "type": 'html'},
data: { "article_id": $(this).attr('alt'), "type": 'html' },
success: function (result) {
if (result.code == 0) {
num = num * 1 + 1 * 1
@@ -361,7 +361,7 @@ function bf_list() {
})
$.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num, 'is_detail': '1'},
data: { 'type': Jour_num, 'is_detail': '1' },
success: function (result) {
}
});
@@ -371,7 +371,7 @@ function bf_list() {
var num = $(this).next().html();
$.ajax({
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
data: {"article_id": $(this).attr('alt'), "type": 'pdf'},
data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
success: function (result) {
if (result.code == 0) {
num = num * 1 + 1 * 1
@@ -380,7 +380,7 @@ function bf_list() {
})
$.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num, 'is_detail': '1'},
data: { 'type': Jour_num, 'is_detail': '1' },
success: function (result) {
}
});
@@ -414,7 +414,7 @@ function bf_list() {
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
$.ajax({
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
data: {"article_id": ecx_id},
data: { "article_id": ecx_id },
success: function (result) {
var a = document.createElement('a');
a.href = result.data.url;
@@ -427,7 +427,7 @@ function bf_list() {
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
$.ajax({
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
data: {"article_id": ecx_id},
data: { "article_id": ecx_id },
success: function (result) {
var a = document.createElement('a');
a.href = result.data.url;
@@ -440,7 +440,7 @@ function bf_list() {
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
$.ajax({
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
data: {"article_id": ecx_id},
data: { "article_id": ecx_id },
success: function (result) {
var a = document.createElement('a');
a.href = result.data.url;
@@ -454,7 +454,7 @@ function bf_list() {
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
$.ajax({
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
data: {"article_id": ecx_id},
data: { "article_id": ecx_id },
success: function (result) {
var a = document.createElement('a');
a.href = result.data.url;
@@ -485,19 +485,19 @@ function bf_list() {
$("#mask").hide();
$(".dingyue").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"});
$("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"});
$("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"});
$("body").css({ "position": "initial", "height": "auto" });
});
function bodyScroll(event) {
@@ -994,45 +994,45 @@ function bf_list() {
var arr_stage = result.data.journalStage;
var str = "";
for (var i = 0; i < result.data.journalStage.length; i++) {
if(Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22){
// 暂时条件中添加一个3
if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22|| Jour_num == 3) {
// 合并(替换)期刊
if(i==0){str +='<b>'+arr_stage[i].stage_year+'</b><br>'}
if (i == 0) { str += '<b>' + arr_stage[i].stage_year + '</b><br>' }
if(i>0){
if(arr_stage[i].stage_year!=arr_stage[i-1].stage_year){
str +='<div style="width:100%"><b>'+arr_stage[i].stage_year+'</b></div>'
if (i > 0) {
if (arr_stage[i].stage_year != arr_stage[i - 1].stage_year) {
str += '<div style="width:100%"><b>' + arr_stage[i].stage_year + '</b></div>'
}
}
if(arr_stage[i].stage_no=='0'){
if (arr_stage[i].stage_no == '0') {
var iss_ = ''
}else{
var iss_ =' Issue.'+arr_stage[i].stage_no
} else {
var iss_ = ' Issue.' + arr_stage[i].stage_no
}
str +='<li style="width:50%;float: left; margin-right: 0; margin-bottom: 10px;"><div><a target="_blank" style="color: #004a90;font-weight: bold;" href="article_list.html?J_num='+Jour_num+'&y_id='+arr_stage[i].journal_stage_id+'">'
+arr_stage[i].stage_year+' Vol.'+arr_stage[i].stage_vol+ iss_ + '&nbsp;'
+arr_stage[i].stage_pagename + arr_stage[i].stage_page+'</a></div><p>'+arr_stage[i].issue_date+'</p></li>'
}else{
// 常规期刊
if (arr_stage[i].stage_no == '0') {
var iss_ = ''
str += '<li style="width:50%;float: left; margin-right: 0; margin-bottom: 10px;"><div><a target="_blank" style="color: #004a90;font-weight: bold;" href="article_list.html?J_num=' + Jour_num + '&y_id=' + arr_stage[i].journal_stage_id + '">'
+ arr_stage[i].stage_year + ' Vol.' + arr_stage[i].stage_vol + iss_ + '&nbsp;'
+ arr_stage[i].stage_pagename + arr_stage[i].stage_page + '</a></div><p>' + arr_stage[i].issue_date + '</p></li>'
} else {
var iss_ = '<b> Issue.' + arr_stage[i].stage_no + '</b>'
// 常规期刊
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;background-color:' + localStorage.Journals_color + '80"><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 style="background-color:' + localStorage.Journals_color + '80"><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>'
}
}
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;background-color:' + localStorage.Journals_color + '80"><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 style="background-color:' + localStorage.Journals_color + '80"><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>'
}
}
}
@@ -1097,12 +1097,12 @@ function bf_list() {
var new_arry = result.data.topic;
new_arry = old_arry.map(o => {
return {id: o.base_topic_id, text: o.title}
return { id: o.base_topic_id, text: o.title }
})
for (var i = 0; i < old_arry.length; i++) {
new_arry[i].children = old_arry[i].children.map(o => {
return {id: o.base_topic_id, text: o.title}
return { id: o.base_topic_id, text: o.title }
})
}