雑誌文献を検索します。書籍を検索する際には「書籍検索」を選択してください。
雑誌タイトル数:130 文献数:647,359 (2021年4月13日現在)
";
for (i = 0; i < 10; i++) {
if (data[i] != null) {
htmlString = htmlString + data[i] + "
";
}
}
htmlString = htmlString + "";
var div = document.getElementById(loginType);
div.innerHTML = htmlString;
}
}).fail(function(xhr, status, error) {
// 通信失敗時の処理
$('#loginMessage').remove();
}).always(function(arg1, status, arg2) {
// 通信完了時の処理
document.getElementById('loginArea').style.display = "";
});
}
// タブレット、スマホのメニュー表示
$(function () {
$(".menuInner .loginWrapperInner").css("display", "none");
$('#menuTrigger').click(function () {
if ($('.menuInner .loginWrapperInner').is(':hidden')) {
if ($(this).hasClass("notlogin")) {
$('#loginArea').slideDown();
}
$('.menuInner .loginWrapperInner').slideDown();
} else {
$('#loginArea').slideUp();
$('.menuInner .loginWrapperInner').slideUp();
}
});
});
// 閉じる(ログイン)
function loginClose() {
document.getElementById('loginArea').style.display = "none";
document.loginForm.id.value = "";
document.loginForm.password.value = "";
document.getElementById("btnLogin").disabled = "";
$('#loginMessage').remove();
}
// 学認
function collegeAction() {
window.location.href = document.getElementById('collegeUrl').value;
document.getElementById('loginArea').style.display = "none";
document.loginForm.id.value = "";
document.loginForm.password.value = "";
document.getElementById("btnLogin").disabled = "";
$('#loginMessage').remove();
}
// ログイン入力チェック
function loginAction(btn, loginType) {
btn.disabled = true;
var postUrl = "/login/check-login";
var id;
var pass;
if (loginType == 'loginMessageBoxCommon') {
id = document.loginForm.id.value;
pass = document.loginForm.password.value;
} else {
id = document.nextForm.id.value;
pass = document.nextForm.password.value;
}
$.ajax({
url: postUrl,
type: "POST",
async: false,
dataType: "json",
data: {
id: id,
password: pass
}
}).done(function(data) {
if (data[0] == 'OK'){
asystemLogin(btn, loginType);
} else {
btn.disabled = false;
if (loginType == 'loginMessageBoxCommon') {
document.loginForm.password.value = "";
} else {
document.nextForm.password.value = "";
}
htmlString = "
";
for (i = 0; i < 10; i++) {
if (data[i] != null) {
htmlString = htmlString + data[i] + "
";
}
}
htmlString = htmlString + "";
var div = document.getElementById(loginType);
div.innerHTML = htmlString;
}
}).fail(function(xhr, status, error) {
// 通信失敗時の処理
}).always(function(arg1, status, arg2) {
// 通信完了時の処理
});
}
// Aシステム連携API(ログイン)実施
function asystemLogin(btn, loginType) {
var loginUrl = document.getElementById('loginUrl').value;
var id;
var pass;
if (loginType == 'loginMessageBoxCommon') {
id = document.loginForm.id.value;
pass = document.loginForm.password.value;
} else {
id = document.nextForm.id.value;
pass = document.nextForm.password.value;
}
$.ajax({
url: loginUrl,
type: "POST",
crossDomain: true,
async: false,
dataType: "text",
data: {
userId: id,
password: pass,
flg: false
},
xhrFields : {withCredentials: true},
success: function (response) {
result = response.substr(response.indexOf("result") + 8, 4);
if (result == 'true') {
if (loginType == 'loginMessageBoxCommon') {
loginInfoCommon(btn, loginType);
} else {
loginInfoToken(btn, loginType);
}
} else {
btn.disabled = false;
if (loginType == 'loginMessageBoxCommon') {
document.loginForm.password.value = "";
} else {
document.nextForm.password.value = "";
}
htmlString = "
";
htmlString = htmlString + "ログインに失敗しました。" + "
";
htmlString = htmlString + "";
var div = document.getElementById(loginType);
div.innerHTML = htmlString;
outputLog('ログインに失敗しました。', response.substr(response.indexOf("msg") + 6, response.length - response.indexOf("msg") + 6));
}
},
error: function(data) {
btn.disabled = false;
if (loginType == 'loginMessageBoxCommon') {
document.loginForm.password.value = "";
} else {
document.nextForm.password.value = "";
}
htmlString = "
";
htmlString = htmlString + "ログインに失敗しました。" + "
";
htmlString = htmlString + "";
var div = document.getElementById(loginType);
div.innerHTML = htmlString;
outputLog('Aシステム連携(ログイン)に失敗しました。','');
}
});
}
// 会員情報取得(共通処理)
function loginInfoCommon(btn, loginType) {
var postUrl = "/login/login-info-common";
$.ajax({
url: postUrl,
type: "POST",
crossDomain: true,
async: false,
dataType: "json",
xhrFields : {withCredentials: true},
}).done(function(data) {
if (data[0] == 'OK'){
btn.disabled = false;
if (data[1]) {
// 遷移先が指定されている場合
window.location.href = data[1];
} else {
window.location.href = window.location.href;
}
} else {
btn.disabled = false;
if (loginType == 'loginMessageBoxCommon') {
document.loginForm.password.value = "";
} else {
document.nextForm.password.value = "";
}
htmlString = "
";
for (i = 0; i < 10; i++) {
if (data[i] != null) {
htmlString = htmlString + data[i] + "
";
}
}
htmlString = htmlString + "";
var div = document.getElementById(loginType);
div.innerHTML = htmlString;
}
}).fail(function(xhr, status, error) {
// 通信失敗時の処理
}).always(function(arg1, status, arg2) {
// 通信完了時の処理
});
}
// 会員情報取得(ログイン画面[token遷移あり])
jQuery.support.cors = true;
function loginInfoToken(btn, loginType) {
var postUrl = "/login/login-info-token";
$.ajax({
url: postUrl,
type: "POST",
crossDomain: true,
async: false,
dataType: "json",
xhrFields : {withCredentials: true},
}).done(function(data) {
if (data[0] == 'OK'){
//btn.disabled = false;
if (loginType == 'loginMessageBoxCommon') {
window.location.href = window.location.href;
} else if (loginType == 'loginMessageBoxBase'){
var protocol = window.location.protocol;
var hostname = window.location.hostname;
var nextValue = protocol + '//' + hostname;
if (data[1] != null) {
nextValue = nextValue + data[1];
if("/" == data[1]){
var form = document.createElement('form');
form.action = data[1];
form.method = "POST";
input = document.createElement('input');
input.type = 'hidden';
input.name = "messageAlertFlg";
input.value = "true";
form.appendChild(input);
document.body.appendChild(form);
form.submit();
form = null;
} else {
window.location.href = nextValue;
}
} else {
window.location.href = nextValue;
}
} else {
var protocol = window.location.protocol;
var hostname = window.location.hostname;
var nextValue = protocol + '//' + hostname;
if (document.nextForm.returnUrl.value != null) {
nextValue = nextValue + document.nextForm.returnUrl.value;
}
window.location.href = nextValue;
}
} else {
btn.disabled = false;
if (loginType == 'loginMessageBoxCommon') {
document.loginForm.password.value = "";
} else {
document.nextForm.password.value = "";
}
htmlString = "
";
for (i = 0; i < 10; i++) {
if (data[i] != null) {
htmlString = htmlString + data[i] + "
";
}
}
htmlString = htmlString + "";
var div = document.getElementById(loginType);
div.innerHTML = htmlString;
}
}).fail(function(xhr, status, error) {
// 通信失敗時の処理
if (status == '404') {
location.href = '/404';
}
}).always(function(arg1, status, arg2) {
// 通信完了時の処理
});
}
/**/
雑誌文献を検索します。書籍を検索する際には「書籍検索」を選択してください。
雑誌タイトル数:130 文献数:647,359 (2021年4月13日現在)