// 底部
$('.footer').load('footer_in.html')
// 搜索框
function seek_box() {
// 期刊列表数据
$.ajax({
type: 'get', url: apiUrl + 'api/Journal/getJournalList',
data: {},
success: function (result) {
if (result.code == 0) {
var arr = result.data.journalList;
var str = "";
for (var i = 0; i < arr.length; i++) {
if (arr[i].title != 'tmRxiv') {
str += '
' +
'
' +
'' + arr[i].title + '
'
}
}
$('.search_jour>ul').html(str);
} else {
ShowDanger("请求失败!");
}
}
})
// 点击搜索
$('.serseek .search .ser_btn').click(function () {
console.log($('.serseek .search .ser_input').val());
console.log($("select[name='ser_ect']").find("option:selected").val())
})
}
// 搜索列表
function seek_list() {
}
// 首页搜索列表
function scout_home() {
}
// 期刊列表搜索
function scout_jour() {
// 获取地址栏信息
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]);
return null;
}
var se_ch = getQueryString('se_ch'); //关键字
$('.art_main_con').append('')
$('.wenz_list').append('all total
')
var ser_list = {};
ser_list.keyword = se_ch;
ser_list.journal_id = Jour_num;
ser_list.pageIndex = 1;
ser_list.pageSize = 10;
var totalPage;//总页码
var totalRecords;//总数据条数
var pageNo = ser_list.pageIndex;//当前页码
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/searchArticle',
data: ser_list,
success: function (result) {
if (result.code == 0) {
totalPage = result.data.count % ser_list.pageSize == 0 ? (result.data.count / ser_list.pageSize) : (Math.ceil(result.data.count / ser_list.pageSize));
totalRecords = result.data.count;
$('.wenz_list .tioashu').html(result.data.count);
$('.wenz_list>h4').html('"' + se_ch + '" search results');
$(".sfor_inp").val(se_ch)
var arr = result.data.articles;
var str = "";
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 == '' || arr[i].npp == ' ') {
var npp_ = ''
} else {
var npp_ = ': ' + arr[i].npp + '. '
}
if (arr[i].stage.stage_no == '0') {
var stage_ = ''
} else {
var stage_ = ' (' + arr[i].stage.stage_no + ')'
}
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].article_id == '172') {
var mp4_ = '
'
} else {
var mp4_ = ''
}
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 = 'Retracted'
}
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 = ''
}
if (localStorage.Journals_num == '22') {
var c_t_a = ''
} else {
var c_t_a = ''
}
arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
var link_ = '
Abstract ( ' + arr[i].abs_num + ' ) ' +
html_ + pdf_ + mp4_ + c_t_a +
'' + 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") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + 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) {
}
});
}
})
$('.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);
})
// 点击弹窗出现 复制和下载
$('.txt_content').css('display', 'none');
$('.export').css('display', 'none');
$(document).click(function (e) {
if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
$('.export').hide();
}
})
$('.txt_copy').click(function () {
$('.export').css('display', 'none');
$(this).find('.export').fadeIn(200);
})
$('.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!");
});
})
$('.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();
}
})
})
$('.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();
}
})
})
$('.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();
}
})
})
$('.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();
}
})
})
if (Jour_num == '22') {
//生成分页
//有些参数是可选的,比如lang,若不传有默认值
kkpager.generPageHtml({
pno: pageNo,
//总页码
total: totalPage,
//总数据条数
totalRecords: totalRecords,
mode: 'click',//默认值是link,可选link或者click
click: function (n) {
this.selectPage(n);
//除了第一页写逻辑跳转
ser_list.pageIndex = n;
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/searchArticle',
data: ser_list,
success: function (result) {
if (result.code == 0) {
totalRecords = result.data.count;
$('.wenz_list .tioashu').html(result.data.count);
var arr = result.data.articles;
var str = "";
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 == '' || arr[i].npp == ' ') {
var npp_ = ''
} else {
var npp_ = ': ' + arr[i].npp + '. '
}
if (arr[i].stage.stage_no == '0') {
var stage_ = ''
} else {
var stage_ = ' (' + arr[i].stage.stage_no + ')'
}
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].article_id == '172') {
var mp4_ = '
'
} else {
var mp4_ = ''
}
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 = 'Retracted'
}
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 = ''
}
if (localStorage.Journals_num == '22') {
var c_t_a = ''
} else {
var c_t_a = ''
}
arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
var link_ = '
Abstract ( ' + arr[i].abs_num + ' ) ' +
html_ + pdf_ + mp4_ + c_t_a +
'' + 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") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
'
' + doi_ + '' +
'
' + link_ + '

'
+ trad_tion +'
'
}
$('.wenz_list>ul').html(str);
$('.goup-container').click();
$('.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);
})
// 点击弹窗出现 复制和下载
$('.txt_content').css('display', 'none');
$('.export').css('display', 'none');
$(document).click(function (e) {
if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
$('.export').hide();
}
})
$('.txt_copy').click(function () {
$('.export').css('display', 'none');
$(this).find('.export').fadeIn(200);
})
$('.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!");
});
})
$('.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();
}
})
})
$('.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();
}
})
})
$('.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();
}
})
})
$('.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!");
}
})
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);
//除了第一页写逻辑跳转
ser_list.pageIndex = n;
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/searchArticle',
data: ser_list,
success: function (result) {
if (result.code == 0) {
totalRecords = result.data.count;
$('.wenz_list .tioashu').html(result.data.count);
var arr = result.data.articles;
var str = "";
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 == '' || arr[i].npp == ' ') {
var npp_ = ''
} else {
var npp_ = ': ' + arr[i].npp + '. '
}
if (arr[i].stage.stage_no == '0') {
var stage_ = ''
} else {
var stage_ = ' (' + arr[i].stage.stage_no + ')'
}
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].article_id == '172') {
var mp4_ = '
'
} else {
var mp4_ = ''
}
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 = 'Retracted'
}
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 = ''
}
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 = '
'
} else {
var person_img = '
'
}
if (localStorage.Journals_num == '22') {
var c_t_a = ''
} else {
var c_t_a = ''
}
arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
var link_ = '
Abstract ( ' + arr[i].abs_num + ' ) ' +
html_ + pdf_ + mp4_ + c_t_a +
'' + 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") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
'
' + doi_ + '' +
'
' + link_ + '
'
}
$('.wenz_list>ul').html(str);
$('.goup-container').click();
$('.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);
})
// 点击弹窗出现 复制和下载
$('.txt_content').css('display', 'none');
$('.export').css('display', 'none');
$(document).click(function (e) {
if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
$('.export').hide();
}
})
$('.txt_copy').click(function () {
$('.export').css('display', 'none');
$(this).find('.export').fadeIn(200);
})
$('.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!");
});
})
$('.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();
}
})
})
$('.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();
}
})
})
$('.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();
}
})
})
$('.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!");
}
})
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!");
}
})
}