' + arr[i].title + '' + formatTimeToDate3(arr[i].ctime * 1000) + ''
+ }
+ $('.noti_lis').html(str);
+ $('.noti_mes').html('common 1 page / ' + arr.length + ' Records');
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+ } else if (paper_ID != null) {
+ // 消息Call for Paper数据
+ $.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++) {
+ str += ''
+ }
+ $('.noti_lis').html(str);
+ $('.noti_mes').html('common 1 page / ' + arr.length + ' Records');
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+ }
+
+}
// 消息、cfp、footer 内容
function notice_con() {
+ // 获取地址栏信息
+ function getQueryString(name) {
+ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
+ var r = window.location.search.substr(1).match(reg);
+ if (r != null) return unescape(r[2]);
+ return null;
+ }
+
+ var notice_ID = getQueryString('notice_id'); //消息
+ var cfp_ID = getQueryString('cfp_id'); //call for paper
+ var footer_ID = getQueryString('footer_id'); //footer
+
+
+ //消息
+ if (notice_ID != null) {
+ // 消息
+ $.ajax({
+ type: 'post', url: apiUrl + 'api/Journal/getNoticesDetail',
+ data: {
+ "journal_notices_id": notice_ID
+ },
+ success: function (result) {
+ if (result.code == 0) {
+
+ // 消息列表
+ var arr = result.data.notices;
+
+ $('.topics>h2').html(arr.title);
+ $('.topics>div').html(arr.content);
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+ }
+
+
+ //call for paper
+ if (cfp_ID != null) {
+ // call for paper
+ $.ajax({
+ type: 'post', url: apiUrl + 'api/Journal/getCfpDetail',
+ data: {
+ "journal_cfp_id": cfp_ID
+ },
+ success: function (result) {
+ if (result.code == 0) {
+
+ // 消息列表
+ var arr = result.data.cfp;
+
+ $('.topics>h2').html(arr.title);
+ $('.topics>div').html(arr.content);
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+ }
+
+
+ //footer
+ if (footer_ID != null) {
+ notice_con_footer(footer_ID)
+
+ }
+}
+
+
+// 客座信息填写
+// $("input[type='radio'][name='like']:eq(0)").click()
+
+function add_sub() {
+ $(".spa").text('');
+ var add_mess = {};
+ add_mess.journal_id = Jour_num;
+ add_mess.email = $('#email').val();
+ add_mess.first_name = $('#firstname').val();
+ add_mess.last_name = $('#lastname').val();
+ add_mess.address = $('#address').val();
+ add_mess.interests = $('#interests').val();//0
+ add_mess.website = $('#website').val();//0
+ add_mess.orcid = $('#ORCID').val();//0
+ add_mess.title = $('#proposed').val();
+ add_mess.intro = '';
+ add_mess.abstract = $('#editor').val();
+ add_mess.keywords = $('#Keywords').val();
+ // add_mess.deadline=new Date($('#time-1').val()).getTime();
+ add_mess.deadline = $('#time-1').val();
+
+
+ // $("input[type='text']").blur(function(){
+ // if($(this).is("#firstname")){
+ // if($("#firstname").val()!="") {$(".spa1").text("");}
+ // }
+ // })
+ // $("input[name='have']").blur(function(){
+ // if($("input[name='have']:checked").val()!=undefined) {
+ // $(".spa10").text("");
+ // }
+ // })
+
+ var S_Dan = '0';
+
+
+ if (localStorage.Journals_title == '经典中医研究') {
+ if ($("#firstname").val() == "") {
+ $(".spa1").text('请填写名字');
+ S_Dan = '1';
+ }
+ if ($("#lastname").val() == "") {
+ $(".spa2").text('请填写姓');
+ S_Dan = '1';
+ }
+ if ($("#email").val() == "") {
+ $(".spa3").text('请填写邮箱');
+ S_Dan = '1';
+ }
+ if ($("#address").val() == "") {
+ $(".spa4").text('请填写个人单位');
+ S_Dan = '1';
+ }
+ if ($("#proposed").val() == "") {
+ $(".spa5").text('请填写申请的专刊题目');
+ S_Dan = '1';
+ }
+ // if ($("#intro").val() == "") {
+ // $(".spa6").text('Please fill in category');
+ // S_Dan = '1';
+ // }
+ if ($("#editor").val() == '') {
+ $(".spa7").text('请填写专刊简介');
+ S_Dan = '1';
+ }
+ if ($("#Keywords").val() == "") {
+ $(".spa8").text('请填写关键字');
+ S_Dan = '1';
+ }
+ if ($("#time-1").val() == "") {
+ $(".spa9").text('请填写投稿截止时间');
+ S_Dan = '1';
+ }
+
+ if ($("input[name='have']:checked").val() == undefined) {
+ $(".spa11").text('请勾选');
+ S_Dan = '1';
+ }
+ } else {
+ if ($("#firstname").val() == "") {
+ $(".spa1").text('Please fill in First name');
+ S_Dan = '1';
+ }
+ if ($("#lastname").val() == "") {
+ $(".spa2").text('Please fill in Last name');
+ S_Dan = '1';
+ }
+ if ($("#email").val() == "") {
+ $(".spa3").text('Please fill in E-mail');
+ S_Dan = '1';
+ }
+ if ($("#address").val() == "") {
+ $(".spa4").text('Please fill in Address');
+ S_Dan = '1';
+ }
+ if ($("#proposed").val() == "") {
+ $(".spa5").text('Please fill in Proposed title');
+ S_Dan = '1';
+ }
+ // if ($("#intro").val() == "") {
+ // $(".spa6").text('Please fill in category');
+ // S_Dan = '1';
+ // }
+ if ($("#editor").val() == '') {
+ $(".spa7").text('Please fill in Summary');
+ S_Dan = '1';
+ }
+ if ($("#Keywords").val() == "") {
+ $(".spa8").text('Please fill in Keywords');
+ S_Dan = '1';
+ }
+ if ($("#time-1").val() == "") {
+ $(".spa9").text('Please fill in Anticipated deadline');
+ S_Dan = '1';
+ }
+
+ if ($("input[name='have']:checked").val() == undefined) {
+ $(".spa11").text('Please tick');
+ S_Dan = '1';
+ }
+ }
+
+
+ if (S_Dan == '1') {
+ ShowDanger("Incomplete information!");
+ } else {
+ $(".sub_guest").addClass("disable");
+ ShowSubmit("Uploading!");
+ $.ajax({
+ type: 'post', url: apiUrl + 'subscribe/Special/addSpecial',
+ data: add_mess,
+ success: function (result) {
+ if (result.code == 0) {
+ window.location.href = 'gue_success.html?J_num=' + Jour_num;
+ } else {
+ ShowDanger("请求失败!");
+ $(".sub_guest").removeClass("disable");
+ $('#tir').fadeOut(500)
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ $(".sub_guest").removeClass("disable");
+ $('#tir').fadeOut(500)
+ }
+ })
+
+ }
+
+}
+
+// 客座信息文章列表
+function guest_con() {
+
+ $.ajax({
+ type: 'post', url: apiUrl + 'api/Journal/getJournal',
+ data: {
+ "journal_id": Jour_num
+ },
+ success: function (result) {
+ if (result.code == 0) {
+ // 期刊基础信息
+ var arr_jour = result.data.journal;
+ $('.gue_chinese_con .gue_con_title').html(arr_jour.title)
+ $('.gue_chinese_con .gue_con_email').html(arr_jour.email)
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ });
+
+ var con_mess = {};
+ con_mess.journal_id = localStorage.getItem("Journals_num");
+ con_mess.pageIndex = 1;
+ con_mess.pageSize = 20;
+
+ var totalPage;//总页码
+ var totalRecords;//总数据条数
+ var pageNo = con_mess.pageIndex;//当前页码
+
+
+ $.ajax({
+ type: 'post', url: apiUrl + 'subscribe/Special/getSpecialList',
+ data: con_mess,
+ success: function (result) {
+ if (result.code == 0) {
+
+ totalPage = result.data.count % con_mess.pageSize == 0 ? (result.data.count / con_mess.pageSize) : (Math.ceil(result.data.count / con_mess.pageSize));
+ totalRecords = result.data.count;
+
+ $('.tioashu').html(result.data.count);
+
+ // 客座列表
+ var arr = result.data.specials;
+ var str = '';
+
+ if (Jour_num == '22') {
+ for (var i = 0; i < arr.length; i++) {
+ if (new Date(arr[i].deadline).getTime() > new Date().getTime()) {
+ var mark_k = ''
+ } else {
+ var mark_k = '(已关闭)'
+ }
+ str += '' + arr[i].title +
+ mark_k + '编辑: ' + arr[i].editor +
+ '
投稿截止日期: ' + arr[i].deadline + '' +
+ '
关键词: ' + arr[i].keywords + '
'
+ }
+ } else {
+ for (var i = 0; i < arr.length; i++) {
+ if (new Date(arr[i].deadline).getTime() > new Date().getTime()) {
+ var mark_k = ''
+ } else {
+ var mark_k = '(Closed)'
+ }
+ str += '' + arr[i].title +
+ mark_k + 'Edited by ' + arr[i].editor +
+ '
submission deadline: ' + arr[i].deadline + '' +
+ '
Keywords: ' + arr[i].keywords + '
'
+ }
+ }
+
+ $('.guest_ ul').html(str);
+ $('.guest_>ul>li a.biaot').css('color', localStorage.Journals_color);
+
+ if (Jour_num == '22') {
+ //中文的
+ kkpager.generPageHtml({
+ pno: pageNo,
+ //总页码
+ total: totalPage,
+ //总数据条数
+ totalRecords: totalRecords,
+ mode: 'click',//默认值是link,可选link或者click
+ click: function (n) {
+ this.selectPage(n);
+
+ //除了第一页写逻辑跳转
+ con_mess.pageIndex = n;
+ $.ajax({
+ type: 'post', url: apiUrl + 'subscribe/Special/getSpecialList',
+ data: con_mess,
+ success: function (result) {
+ if (result.code == 0) {
+
+ totalRecords = result.data.count;
+
+ // 客座列表
+ var arr = result.data.specials;
+ var str = '';
+
+ if (Jour_num == '22') {
+ for (var i = 0; i < arr.length; i++) {
+ str += '' + arr[i].title + '编辑: ' + arr[i].editor +
+ '
投稿截止日期: ' + arr[i].deadline + '' +
+ '
关键词: ' + arr[i].keywords + '
'
+ }
+ } else {
+ for (var i = 0; i < arr.length; i++) {
+ str += '' + arr[i].title + 'Edited by ' + arr[i].editor +
+ '
submission deadline: ' + arr[i].deadline + '' +
+ '
Keywords: ' + arr[i].keywords + '
'
+ }
+ }
+
+ $('.guest_ ul').html(str);
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+ return false;
+ }, lang: {
+ firstPageText: '首页',
+ firstPageTipText: '首页',
+ lastPageText: '尾页',
+ lastPageTipText: '尾页',
+ prePageText: '上一页',
+ prePageTipText: '上一页',
+ nextPageText: '下一页',
+ nextPageTipText: '下一页',
+ totalPageBeforeText: ' 共 ',
+ totalPageAfterText: ' 页',
+ currPageBeforeText: '当前第 ',
+ currPageAfterText: ' 页',
+ totalInfoSplitStr: ' ',
+ totalRecordsBeforeText: '',
+ totalRecordsAfterText: '',
+ gopageBeforeText: ' Go to page',
+ gopageButtonOkText: 'Go',
+ gopageAfterText: 'page',
+ buttonTipBeforeText: '第',
+ buttonTipAfterText: '页'
+ }
+ });
+ } else {
+ //生成分页
+ //有些参数是可选的,比如lang,若不传有默认值
+ kkpager.generPageHtml({
+ pno: pageNo,
+ //总页码
+ total: totalPage,
+ //总数据条数
+ totalRecords: totalRecords,
+ mode: 'click',//默认值是link,可选link或者click
+ click: function (n) {
+ this.selectPage(n);
+
+ //除了第一页写逻辑跳转
+ con_mess.pageIndex = n;
+ $.ajax({
+ type: 'post', url: apiUrl + 'subscribe/Special/getSpecialList',
+ data: con_mess,
+ success: function (result) {
+ if (result.code == 0) {
+
+ totalRecords = result.data.count;
+
+ // 客座列表
+ var arr = result.data.specials;
+ var str = '';
+
+ for (var i = 0; i < arr.length; i++) {
+
+ str += '' + arr[i].title + 'edited by ' + arr[i].editor +
+ '
submission deadline ' + arr[i].deadline + '' +
+ '
Keywords:' + arr[i].keywords + '
'
+
+ }
+ $('.guest_ ul').html(str);
+ $('.guest_>ul>li a.biaot').css('color', localStorage.Journals_color);
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+ return false;
+ }, lang: {
+ firstPageText: 'First page',
+ firstPageTipText: 'First page',
+ lastPageText: 'Last page',
+ lastPageTipText: 'Last page',
+ prePageText: 'Previous page',
+ prePageTipText: 'Previous page',
+ nextPageText: 'Next page',
+ nextPageTipText: 'Next page',
+ totalPageBeforeText: '',
+ totalPageAfterText: '',
+ currPageBeforeText: 'on page ',
+ currPageAfterText: '',
+ totalInfoSplitStr: ' of ',
+ totalRecordsBeforeText: '',
+ totalRecordsAfterText: '',
+ gopageBeforeText: ' Go to page',
+ gopageButtonOkText: 'Go',
+ gopageAfterText: 'page',
+ buttonTipBeforeText: '第',
+ buttonTipAfterText: '页'
+ }
+ });
+ }
+
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+}
+
+
+// 客座信息文章详情
+function guest_title() {
+ var special_id = '';
+
+ // 获取地址栏信息
+ function getQueryString(name) {
+ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
+ var r = window.location.search.substr(1).match(reg);
+ if (r != null) return unescape(r[2]);
+ return null;
+ }
+
+ var Gu_Num = getQueryString('Gu_num'); //客座信息
+
+ $.ajax({
+ type: 'post', url: apiUrl + 'subscribe/Special/getSpecialDetail',
+ data: { 'journal_special_id': Gu_Num },
+ success: function (result) {
+ if (result.code == 0) {
+
+ var edit = result.data.editors;
+ var spe = result.data.special;
+ var jour = result.data.journal;
+ var keyw = result.data.keywords;
+
+ special_id = spe.journal_special_id
+
+ // 客座文章内容
+
+ if (Jour_num == '22') {
+ $('.gue_title').html(spe.title + '专刊');
+ $('.gue_editor_title').html('专刊编辑');
+ $('.gue_Infor_title').html('专刊征稿通知');
+ $('.gue_word_title').html('关键词');
+ $('.gue_system>a').html('提交稿件');
+ $('.gue_author>a').html('客座编辑申请');
+
+ var g_c = '' + jour.title + ' ' +
+ '(ISSN ' + jour.issn + '). ' +
+ '
投稿截止日期: ' + spe.deadline.substring(0, 4) + '.' + spe.deadline.substring(5, 7) + '.' + spe.deadline.substring(8, 10);
+ } else {
+ if (spe.deadline.substring(5, 7) == '01') {
+ var data_month = 'Jan. '
+ }
+ if (spe.deadline.substring(5, 7) == '02') {
+ var data_month = 'Feb. '
+ }
+ if (spe.deadline.substring(5, 7) == '03') {
+ var data_month = 'Mar. '
+ }
+ if (spe.deadline.substring(5, 7) == '04') {
+ var data_month = 'Apr. '
+ }
+ if (spe.deadline.substring(5, 7) == '05') {
+ var data_month = 'May. '
+ }
+ if (spe.deadline.substring(5, 7) == '06') {
+ var data_month = 'Jun. '
+ }
+ if (spe.deadline.substring(5, 7) == '07') {
+ var data_month = 'Jul. '
+ }
+ if (spe.deadline.substring(5, 7) == '08') {
+ var data_month = 'Aug. '
+ }
+ if (spe.deadline.substring(5, 7) == '09') {
+ var data_month = 'Sep. '
+ }
+ if (spe.deadline.substring(5, 7) == '10') {
+ var data_month = 'Oct. '
+ }
+ if (spe.deadline.substring(5, 7) == '11') {
+ var data_month = 'Nov. '
+ }
+ if (spe.deadline.substring(5, 7) == '12') {
+ var data_month = 'Dec. '
+ }
+
+ $('.gue_title').html(spe.title);
+
+ var g_c = 'Deadline: ' + data_month + spe.deadline.substring(8, 10) + ', ' + spe.deadline.substring(0, 4) + '.';
+ }
+
+ $('.gue_content').html(g_c);
+
+ $('.gue_content a').css('color', localStorage.Journals_color);
+
+
+ var str = '';
+ for (var i = 0; i < edit.length; i++) {
+
+ if (edit[i].website == '') {
+ var web_ = ''
+ } else {
+ var web_ = 'Website'
+ }
+ // if(edit[i].orcid==''){var orc_ = ''}else{var orc_ = 'Interests:'+ edit[i].interests +'
'}
+ if (edit[i].interests == '') {
+ var int_ = ''
+ } else {
+ var int_ = '
Interests: ' + edit[i].interests + '
'
+ }
+
+ if (edit[i].email == '') {
+ var email_ = ''
+ } else {
+ var email_ = '
Email: ' + edit[i].email
+ }
+
+ if (edit[i].icon == '') {
+ var per_son = ''
+ } else {
+ var per_son = '
'
+ }
+
+ if (edit[i].orcid == '') {
+ var or_cid = ''
+ } else {
+ var or_cid = '' +
+ '
'
+ }
+
+ if (edit[i].orcid != '' && edit[i].website == '') {
+ var sty_mar = 'margin-left: 18px;'
+ } else if (edit[i].orcid == '' && edit[i].website != '') {
+ var sty_mar = 'margin-left: 65px;'
+ } else if (edit[i].orcid != '' && edit[i].website != '') {
+ var sty_mar = 'margin-left: 86px;'
+ } else {
+ var sty_mar = ''
+ }
+
+ if (Jour_num == '22') {
+ str += '' + per_son + '' +
+ edit[i].first_name + ' ' + edit[i].last_name + or_cid + ' ' + web_ + '
' +
+ '客座编辑
' +
+ '' + edit[i].address + email_ + int_ + '';
+ } else {
+ str += '' + per_son + '' +
+ edit[i].first_name + ' ' + edit[i].last_name + or_cid + ' ' + web_ + '
' +
+ 'Guest Editor
' +
+ '' + edit[i].address + email_ + int_ + '';
+ }
+ }
+ $('.gue_editor').html(str);
+ $('.gue_editor li>p.g_ed_name').css('color', localStorage.Journals_color)
+ $('.gue_editor li>p.g_ed_name>a').css('color', localStorage.Journals_color)
+
+ $('.guest_>p').html(spe.abstract);
+
+
+ var str = '';
+ for (var i = 0; i < keyw.length; i++) {
+ str += '●' + keyw[i] + ' '
+ }
+ $('.gue_word').html(str);
+
+
+ // 点击按钮跳转
+ // $('.guest_content .gue_system a').css('background-color',localStorage.Journals_color)
+
+ $('.guest_content .gue_system a').click(function () {
+ // 判断是否有身份
+ if ($.cookie("username") != undefined && $.cookie("user_id") != undefined) {
+ window.open('contribu_list.html?J_num=' + Jour_num + '&&special_id=' + spe.journal_special_id);
+ } else {
+ window.open('contribu_login.html?J_num=' + Jour_num + '&&special_id=' + spe.journal_special_id);
+ }
+ })
+
+ $('.guest_content .gue_author a').click(function () {
+ window.open('gue_cont_gea.html?J_num=' + Jour_num + '&&Gu_num=' + spe.journal_special_id);
+ })
+
+ // 判断按钮是否要隐藏
+ if (spe.deadline.substring(0, 4) < 2022) {
+ $('.gue_system').css('display', 'none');
+ $('.gue_author').css('display', 'none');
+ }
+
+ } else {
+ ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+
+ $.ajax({
+ type: 'post', url: apiUrl + 'subscribe/Special/getSpecialArticles',
+ data: {
+ "journal_special_id": Gu_Num
+ },
+ 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].stage_no == '0') {
+ var act_year = ' ' + arr[i].stage_year + ', ' + arr[i].stage_vol;
+ } else {
+ var act_year = ' ' + arr[i].stage_year + ', ' + arr[i].stage_vol + ' (' + arr[i].stage_no + ')';
+ }
+ 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].mains == '') {
+ if (arr[i].file_html == '') {
+ var html_ = ''
+ } else {
+ var html_ = '
HTML ( ' + arr[i].html_num + ' ) '
+ }
+ } else {
+ var html_ = '
HTML ( ' + arr[i].html_num + ' ) '
+ }
+ if (arr[i].file_pdf == '') {
+ var pdf_ = ''
+ } else {
+ var pdf_ = '
PDF ( ' + arr[i].pdf_num + ' )'
+ }
+ if (arr[i].icon == '') {
+ var img_i = 'img/baiss.png'
+ } 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 = 'Editorial Expression of Concern'
+ } else if (arr[i].other_state == 2) {
+ var otStat = 'Retractedal'
+ }
+
+ if (arr[i].isShowOtime == 1) {
+ if (arr[i].pub_date == '') {
+ var pub_date = ''
+ } else {
+ var pub_date = 'Published Date: ' + arr[i].pub_date + '
'
+ }
+ } else {
+ var pub_date = ''
+ }
+
+ var c_t_a = ''
+
+ var link_ = '
Abstract ( ' + arr[i].abs_num + ' ) ' +
+ html_ + pdf_ + c_t_a +
+ '' + arr[i].cite + '
' +
+ '' + arr[i].abstract + '
';
+
+ if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
+ var maxwidth = 500;//显示多少字符
+ if (arr[i].abstract.length > maxwidth) {
+ var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
+ abstNew = abstNew.substring(0, maxwidth)
+ abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
+ var trad_tion = '' + abstNew + '...
'
+ } else {
+ var trad_tion = '' + arr[i].abstract + '
'
+ }
+ } else {
+ var trad_tion = '' + arr[i].tradition_tag + '
' + arr[i].tradition + '
'
+ }
+
+ // var lr_top = ''
+ // for (var t = 0; t < arr[i].topic.length; t++) {
+ // lr_top += '' + arr[i].topic[t].title + ''
+ // }
+
+ str += '' + otStat + arr[i].title + '' +
+ '' + arr[i].authortitle + '
'
+ + localStorage.getItem("Journals_title") + '.' + act_year + npp_ +
+ '
' + doi_ + '' +
+ '
' + link_ + '

'
+ + trad_tion + '
'
+ }
+
+ $('.wenz_list>ul').html(str);
+ $('.links_ .txt_copy').css('background', localStorage.Journals_color);
+
+ // 点击Abstract显示隐藏
+ $('.txt_zhaiyao').click(function () {
+ $(this).nextAll('div').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);
+ }
+ })
+ $('.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);
+ })
+ $('.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);
+ })
+
+ // 点击弹窗出现 复制和下载
+ $('.wenz_list .txt_content').css('display', 'none');
+ $('.wenz_list .export').css('display', 'none');
+ $(document).click(function (e) {
+ if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
+ $('.export').hide();
+ }
+ })
+ $('.wenz_list .txt_copy').click(function () {
+ $('.export').css('display', 'none');
+ $(this).find('.export').fadeIn(200);
+ })
+ $('.wenz_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!");
+ });
+ })
+ $('.wenz_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();
+ }
+ })
+ })
+ $('.wenz_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();
+ }
+ })
+ })
+ $('.wenz_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();
+ }
+ })
+ })
+ $('.wenz_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();
+ }
+ })
+ })
+ } else {
+ // ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
+ })
+
+
+}
+
+
+// 客座信息文章详情
+function guest_title_gea() {
+ var special_id = '';
+
+ // 获取地址栏信息
+ function getQueryString(name) {
+ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
+ var r = window.location.search.substr(1).match(reg);
+ if (r != null) return unescape(r[2]);
+ return null;
+ }
+
+ var Gu_Num = getQueryString('Gu_num'); //客座信息
+
+
+ $(".tishi_author").click(function () {
+ $("#mask").hide();
+ $(".tishi").fadeOut();
+ document.body.removeEventListener('touchmove', bodyScroll, false);
+ $("body").css({ "position": "initial", "height": "auto" });
+ window.location.href = 'gue_cont.html?J_num=' + Jour_num + '&&Gu_num=' + Gu_Num
+
+ });
+
+ function bodyScroll(event) {
+ event.preventDefault();
+ }
+
+ $('.mb_form input.sub_addauthor').css('background-color', localStorage.Journals_color);
+ $('.mb_form input.sub_addauthor').css('border-color', localStorage.Journals_color);
+ $('.tishi input.tishi_author').css('background-color', localStorage.Journals_color);
+ $('.mb_form .my_file>div').css('background-color', localStorage.Journals_color);
+
+ // 上传文件
+ $(".mb_form .my_file>div").click(function () {
+ $("#ch_file_1").click();
+ })
+
+ $("#ch_file_1").on("change", function () {
+ //jquery获取input file文件名
+ var awj = $("#ch_file_1")[0].files;
+ var wj_f = "";
+ var formData = new FormData();
+ formData.append("specialIcon", awj[0]);
+ $.ajax({
+ type: 'post', url: apiUrl + 'api/Special/up_icon_file',
+ data: formData,
+ processData: false,
+ contentType: false,
+ dataType: "json",
+ success: function (result) {
+ if (result.code == 0) {
+ wj_f = '' +
+ '
' +
+ '';
+ $("#filename_1").html(wj_f);
+ } else {
+ ShowDanger("请求失败!");
+ }
+ $('.del_file').on('click', function () {
+ $(this).parent('li').remove();
+ })
+ }
+ })
+ });
+
+ $(".sub_addauthor").click(function () {
+ var file_list_1 = $('#filename_1 li').attr('id');
+
+ $(".spa").text('');
+ var add_mess = {};
+ add_mess.journal_id = Jour_num;
+ add_mess.journal_special_id = Gu_Num;
+ add_mess.email = $('#email').val();
+ add_mess.first_name = $('#firstname').val();
+ add_mess.last_name = $('#lastname').val();
+ add_mess.address = $('#address').val();
+ add_mess.interests = $('#interests').val();//0
+ add_mess.website = $('#website').val();//0
+ add_mess.orcid = $('#ORCID').val();//0
+ add_mess.specialIcon = file_list_1;
+
+ var S_Dan = '0';
+ if ($("#firstname").val() == "") {
+ $(".spa1").text('Please fill in First name');
+ S_Dan = '1';
+ }
+ if ($("#lastname").val() == "") {
+ $(".spa2").text('Please fill in Last name');
+ S_Dan = '1';
+ }
+ if ($("#email").val() == "") {
+ $(".spa3").text('Please fill in E-mail');
+ S_Dan = '1';
+ }
+ if ($("#address").val() == "") {
+ $(".spa4").text('Please fill in Address');
+ S_Dan = '1';
+ }
+
+ if ($('#filename_1 li').attr('id') != undefined) {
+ add_mess.specialIcon = 'specialIcon/' + file_list_1;
+ } else {
+ add_mess.specialIcon = ''
+ }
+
+ if (S_Dan == '1') {
+ ShowDanger("Incomplete information!");
+ } else {
+ $(".sub_addauthor").addClass("disable");
+ ShowSuccess("Uploading!");
+ $.ajax({
+ type: 'post', url: apiUrl + 'yuan/Special/addEditor',
+ data: add_mess,
+ success: function (result) {
+ if (result.code == 0) {
+ $(".tanchu").fadeOut();
+ $(".tanchu input").val('');
+ $(".tanchu textarea").val('');
+ $(".sub_addauthor").removeClass("disable");
+ $('#tir').fadeOut(500)
+ $(".tishi").fadeIn();
+ } else {
+ ShowDanger("请求失败!");
+ $(".sub_addauthor").removeClass("disable");
+ $('#tir').fadeOut(500)
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ $(".sub_addauthor").removeClass("disable");
+ $('#tir').fadeOut(500)
+ }
+ })
+
+ }
+ })
+
+
+}
+
+// 消息、cfp、footer 内容
+function notice_con_footer(footer_ID) {
const style = document.createElement('style');
@@ -122,14 +1249,7 @@ function notice_con() {
// 将弹窗插入到页面中
newBox.insertAdjacentHTML('beforeend', commonPopupStr);
// 获取地址栏信息
- function getQueryString(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
- var r = window.location.search.substr(1).match(reg);
- if (r != null) return unescape(r[2]);
- return null;
- }
-
- var footer_ID = getQueryString('footer_id'); //footer
+
//footer
if (footer_ID != null) {
initArticleNavList()
diff --git a/side.html b/side.html
index 30a25d6..227f781 100644
--- a/side.html
+++ b/side.html
@@ -34,7 +34,7 @@