var result = new Array(200); var count = new Array(200); var rbl = new Array(200); var cover = new Array(200); var listline = new Array(200); var resizeimg = new Array(200); var myAjax = new Array(200); var review = new Array(200); var revavg = new Array(1); function ctlsrhClear() { var cnt=0; if(document.catsrhform.ajax_bibid != null){ if (document.catsrhform.ajax_bibid.length) { for (cnt = 0; cnt < document.catsrhform.ajax_bibid.length; cnt++) { clearDisp(cnt); } }else{ clearDisp(0); } } } function ctlsrhInit() { var resultid; var countid; var listlineid; var resizeimgid; var cnt=0; if(document.catsrhform.ajax_bibid != null){ if (document.catsrhform.ajax_bibid.length) { for (cnt = 0; cnt < document.catsrhform.ajax_bibid.length; cnt++) { myAjax[cnt]=null; listlineid="listline"+cnt; listline[cnt] = $(listlineid); listline[cnt].innerHTML ='
'; resizeimgid="resizeimg"+cnt; resizeimg[cnt] = $(resizeimgid); resizeimg[cnt].innerHTML =''; resultid="result"+cnt; result[cnt] = $(resultid); countid="count"+cnt; count[cnt] = $(countid); ctlsrhDisp(document.catsrhform.ajax_bibid[cnt].value,cnt,document.catsrhform.ajax_gcattp[cnt].value) } }else{ myAjax[0]=null; listlineid="listline0"; listline[0] = $(listlineid); listline[cnt].innerHTML ='
'; resizeimgid="resizeimg"+cnt; resizeimg[cnt] = $(resizeimgid); resizeimg[cnt].innerHTML =''; resultid="result0"; result[0] = $(resultid); countid="count0"; count[0] = $(countid); ctlsrhDisp(document.catsrhform.ajax_bibid.value,0,document.catsrhform.ajax_gcattp.value) } } } function rblsrhInit() { var rblid; var coverid; var cnt=0; if(document.catsrhform.ajax_bibid != null){ if (document.catsrhform.ajax_bibid.length) { for (cnt = 0; cnt < document.catsrhform.ajax_bibid.length; cnt++) { rblid="rbl"+cnt; rbl[cnt] = $(rblid); coverid="cover"+cnt; cover[cnt] = $(coverid); rblsrhDisp(document.catsrhform.ajax_bibid[cnt].value,cnt); } }else{ rblid="rbl0"; rbl[0] = $(rblid); coverid="cover0"; cover[0] = $(coverid); rblsrhDisp(document.catsrhform.ajax_bibid.value,0); } } } function revsrhInit() { var reviewid; var cnt=0; if(document.catsrhform.ajax_volbr != null){ if (document.catsrhform.ajax_volbr.length) { for (cnt = 0; cnt < document.catsrhform.ajax_volbr.length; cnt++) { myAjax[cnt]=null; reviewid="review"+cnt; review[cnt] = $(reviewid); revsrhDisp(document.catsrhform.ajax_bibid.value,document.catsrhform.ajax_volbr[cnt].value,document.catsrhform.ajax_isbn[cnt].value,cnt); } }else{ myAjax[0]=null; reviewid="review0"; review[0] = $(reviewid); revsrhDisp(document.catsrhform.ajax_bibid.value,document.catsrhform.ajax_volbr.value,document.catsrhform.ajax_isbn.value,0); } } } function imgsrhInit() { var coverid; var cnt=0; if(document.catsrhform.bibid_work != null){ if (document.catsrhform.bibid_work.length) { for (cnt = 0; cnt < document.catsrhform.bibid_work.length; cnt++) { coverid="cover"+cnt; cover[cnt] = $(coverid); imgsrhDisp(document.catsrhform.bibid_work[cnt].value,document.catsrhform.txtl_work[cnt].value,cnt); } }else{ coverid="cover0"; cover[0] = $(coverid); imgsrhDisp(document.catsrhform.bibid_work.value,document.catsrhform.txtl_work.value,0); } } } function imgsrhfrvInit() { var coverid; var cnt=0; if(document.frvexeform.bibid_work != null){ if (document.frvexeform.bibid_work.length) { for (cnt = 0; cnt < document.frvexeform.bibid_work.length; cnt++) { coverid="cover"+cnt; cover[cnt] = $(coverid); imgsrhDisp(document.frvexeform.bibid_work[cnt].value,document.frvexeform.txtl_work[cnt].value,cnt); } }else{ coverid="cover0"; cover[0] = $(coverid); imgsrhDisp(document.frvexeform.bibid_work.value,document.frvexeform.txtl_work.value,0); } } } function revavgInit() { var revavgid; myAjax[0]=null; revavgid="revavg"; revavg[0] = $(revavgid); revavgDisp(document.catsrhform.ajax_bibid.value); } function catsrmInit() { var resultid; var cnt=0; if(document.catsrhform.ajax != null){ if (document.catsrhform.ajax.length) { for (cnt = 0; cnt < document.catsrhform.ajax.length; cnt++) { myAjax[cnt]=null; resultid="result"+cnt; result[cnt] = $(resultid); countid="count"+cnt; count[cnt] = $(countid); catsrmDisp(document.catsrhform.ajax[cnt].value,cnt) } }else{ myAjax[0]=null; resultid="result0"; result[0] = $(resultid); catsrmDisp(document.catsrhform.ajax.value,0) } } } function ctlsrhDisp(bibid,cnt,gcattp) { var i; var tmpHtml0=""; var non_disp_hols=''; var non_disp_hols_arr = new Array(); non_disp_hols_arr = non_disp_hols.split(","); var disp = true; //所蔵情報を取得するかどうかを判断 for(i=0; i=record.length){ tmpHtml += ""; tmpHtml += "

"; tmpHtml += "

"; tmpHtml += "

"; tmpHtml += "

"; tmpHtml += "

"; tmpHtml += "

"; tmpHtml += ""; }else{ tmpHtml += ""; //印刷のモードかどうかを判断するフラグ var print = ''; delimiter="||"; item=""; itemValue=""; item = record[i].getElementsByTagName('holar'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += "
" + itemValue+ "
"; item=""; itemValue=""; item = record[i].getElementsByTagName('hollc'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += "
" + itemValue+ "
"; item=""; itemValue=""; item = record[i].getElementsByTagName('cln'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += "
" + itemValue+ "
"; item=""; itemValue=""; item = record[i].getElementsByTagName('hlv'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += "
" + itemValue+ "
"; item=""; itemValue=""; item = record[i].getElementsByTagName('hlyr'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += "
" + itemValue+ "
"; item=""; itemValue=""; item = record[i].getElementsByTagName('cont'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += "
" + itemValue+ "
"; tmpHtml += ""; } } if(gethitcnt(data) > 2){ tmpHtml += "全件表示  "; } tmpHtml += "\n"; } catch (e) { ; } return tmpHtml; } function getholbk(data){ var tmpHtml=""; var item=""; var itemValue=""; var itemValue2=""; var response = data.responseXML.getElementsByTagName('body'); var record = response[0].getElementsByTagName('record'); if(record.length == 0){ return "
データを取得できませんでした。
"; } try{ tmpHtml +=""; for(i = -1; i < 2; i++){ if(i==-1){ tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; }else if(i>=record.length){ tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; }else{ tmpHtml += ""; //印刷のモードかどうかを判断するフラグ var print = ''; delimiter="||"; item=""; itemValue=""; item = record[i].getElementsByTagName('volbr'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('holar'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('hollc'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('cln'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('hollistst'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; if(print!="_PRINT"){ var rsvbtndisp = record[i].getElementsByTagName('rsvBtnDisp'); var rsvbtndisp_value = ""; try{ rsvbtndisp_value = rsvbtndisp[0].firstChild.nodeValue; }catch(e){ rsvbtndisp_value = ""; } if(rsvbtndisp_value=="true"){ var holid_rsv = record[i].getElementsByTagName('holid'); var holid_rsv_value = ""; try{ holid_rsv_value = holid_rsv[0].firstChild.nodeValue; }catch(e){ holid_rsv_value = ""; } var vol1_rsv = record[i].getElementsByTagName('vol1'); var vol1_rsv_value = ""; try{ vol1_rsv_value = vol1_rsv[0].firstChild.nodeValue; vol1_rsv_value = vol1_rsv_value.replace(/\'/g, "\\'") }catch(e){ vol1_rsv_value = ""; } var vol2_rsv = record[i].getElementsByTagName('vol2'); var vol2_rsv_value = ""; try{ vol2_rsv_value = vol2_rsv[0].firstChild.nodeValue; vol2_rsv_value = vol2_rsv_value.replace(/\'/g, "\\'") }catch(e){ vol2_rsv_value = ""; } var volbr_rsv = record[i].getElementsByTagName('volbr'); var volbr_rsv_value = ""; try{ volbr_rsv_value = volbr_rsv[0].firstChild.nodeValue; volbr_rsv_value = volbr_rsv_value.replace(/\'/g, "\\'") }catch(e){ volbr_rsv_value = ""; } var annul_rsv = record[i].getElementsByTagName('annul'); var annul_rsv_value = ""; try{ annul_rsv_value = annul_rsv[0].firstChild.nodeValue; annul_rsv_value = annul_rsv_value.replace(/\'/g, "\\'") }catch(e){ annul_rsv_value = ""; } tmpHtml += "'; } } tmpHtml += ""; } } if(gethitcnt(data) > 2){ tmpHtml += ""; } tmpHtml += "
巻冊次等
所蔵館
配置場所
請求記号
状態





" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
全件表示  
\n"; } catch (e) { ; } return tmpHtml; } function getholsr(data){ var tmpHtml=""; var item=""; var itemValue=""; var response = data.responseXML.getElementsByTagName('body'); var record = response[0].getElementsByTagName('record'); if(record.length == 0){ return "

データを取得できませんでした。
"; } try{ tmpHtml +=""; for(i = -1; i < 2; i++){ if(i==-1){ tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; }else if(i>=record.length){ tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; }else{ tmpHtml += ""; //印刷のモードかどうかを判断するフラグ var print = ''; delimiter="||"; item=""; itemValue=""; item = record[i].getElementsByTagName('volbr'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('vola'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('annul'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('holar'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('hollc'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('cln'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; item=""; itemValue=""; item = record[i].getElementsByTagName('hollistst'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue ="
"; } tmpHtml += ""; var rsvbtndisp = record[i].getElementsByTagName('rsvBtnDisp'); var rsvbtndisp_value = ""; try{ rsvbtndisp_value = rsvbtndisp[0].firstChild.nodeValue; }catch(e){ rsvbtndisp_value = ""; } if(rsvbtndisp_value=="true"){ var holid_rsv = record[i].getElementsByTagName('holid'); var holid_rsv_value = ""; try{ holid_rsv_value = holid_rsv[0].firstChild.nodeValue; }catch(e){ holid_rsv_value = ""; } var vol1_rsv = record[i].getElementsByTagName('vol1'); var vol1_rsv_value = ""; try{ vol1_rsv_value = vol1_rsv[0].firstChild.nodeValue; vol1_rsv_value = vol1_rsv_value.replace(/\'/g, "\\'") }catch(e){ vol1_rsv_value = ""; } var vol2_rsv = record[i].getElementsByTagName('vol2'); var vol2_rsv_value = ""; try{ vol2_rsv_value = vol2_rsv[0].firstChild.nodeValue; vol2_rsv_value = vol2_rsv_value.replace(/\'/g, "\\'") }catch(e){ vol2_rsv_value = ""; } var volbr_rsv = record[i].getElementsByTagName('volbr'); var volbr_rsv_value = ""; try{ volbr_rsv_value = volbr_rsv[0].firstChild.nodeValue; volbr_rsv_value = volbr_rsv_value.replace(/\'/g, "\\'") }catch(e){ volbr_rsv_value = ""; } var annul_rsv = record[i].getElementsByTagName('annul'); var annul_rsv_value = ""; try{ annul_rsv_value = annul_rsv[0].firstChild.nodeValue; annul_rsv_value = annul_rsv_value.replace(/\'/g, "\\'") }catch(e){ annul_rsv_value = ""; } tmpHtml += "'; } tmpHtml += ""; } } if(gethitcnt(data) > 2){ tmpHtml += ""; } tmpHtml += "
巻冊次等
補足巻号
年月次
所蔵館
配置場所
請求記号
状態







" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
" + itemValue+ "
全件表示  
\n"; } catch (e) { ; } return tmpHtml; } function showErrMsg(){ result[cnt].innerHTML += ""; for( i= 0; i<2; i++){ result[cnt].innerHTML += ""; } result[cnt].innerHTML += "
データを取得できませんでした。
"; } } function rblsrhDisp(bibid,cnt) { var url = "/webopac/rblsrh.do"; var paramList = "bibid="+bibid; myAjax[cnt] = new Ajax.Request(url,{ method: 'get', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var tmpHtml=""; var tmpHtml2=""; var rblid=""; var rbltype=""; var isbn=""; var imgurl=""; var dtlurl=""; rblid=getrblid(data); rbltype=getrbltype(data); isbn=getisbn(data); imgurl=getimgurl(data); dtlurl=getdtlurl(data); if(rblid!="0"){ if(rbltype=="book"){ tmpHtml="(冊子体はこちら)"; }else if(rbltype=="ele"){ tmpHtml="(電子資料はこちら)"; } } if(imgurl!="0"){ tmpHtml2="
\"image\"
\"image\""; }else{ tmpHtml2=""; } rbl[cnt].innerHTML = tmpHtml; cover[cnt].innerHTML = tmpHtml2; } function getrblid(data){ var rblidValue; var response = data.responseXML.getElementsByTagName('body'); var rblid = response[0].getElementsByTagName('rbl'); try{ rblidValue = rblid[0].firstChild.nodeValue; } catch (e) { rblidValue ="0"; } return rblidValue; } function getrbltype(data){ var rbltypeValue; var response = data.responseXML.getElementsByTagName('header'); var rbltype = response[0].getElementsByTagName('rbltype'); try{ rbltypeValue = rbltype[0].firstChild.nodeValue; } catch (e) { rbltypeValue ="0"; } return rbltypeValue; } function getisbn(data){ var isbnValue; var response = data.responseXML.getElementsByTagName('body'); var isbn = response[0].getElementsByTagName('isbn'); try{ isbnValue = isbn[0].firstChild.nodeValue; } catch (e) { isbnValue ="0"; } return isbnValue; } function getimgurl(data){ var imgurlValue; var response = data.responseXML.getElementsByTagName('body'); var imgurl = response[0].getElementsByTagName('imgurl'); try{ imgurlValue = imgurl[0].firstChild.nodeValue; } catch (e) { imgurlValue ="0"; } return imgurlValue; } function getdtlurl(data){ var dtlurlValue; var response = data.responseXML.getElementsByTagName('body'); var dtlurl = response[0].getElementsByTagName('dtlurl'); try{ dtlurlValue = dtlurl[0].firstChild.nodeValue; } catch (e) { dtlurlValue ="0"; } return dtlurlValue; } function showErrMsg(){ rbl[cnt].innerHTML += "(データを取得できませんでした。)"; } } function imgsrhDisp(bibid,txtl,cnt) { var url = "/webopac/rblsrh.do"; var paramList = "bibid="+bibid+"&txtl="+txtl; myAjax[cnt] = new Ajax.Request(url,{ method: 'get', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var tmpHtml=""; var imgurl=""; var dtlurl=""; imgurl=getimgurl(data); dtlurl=getdtlurl(data); if(imgurl!="0"){ tmpHtml="
\"image\"
\"image\""; }else{ tmpHtml=""; } cover[cnt].innerHTML = tmpHtml; } function getimgurl(data){ var imgurlValue; var response = data.responseXML.getElementsByTagName('body'); var imgurl = response[0].getElementsByTagName('imgurl'); try{ imgurlValue = imgurl[0].firstChild.nodeValue; } catch (e) { imgurlValue ="0"; } return imgurlValue; } function getdtlurl(data){ var dtlurlValue; var response = data.responseXML.getElementsByTagName('body'); var dtlurl = response[0].getElementsByTagName('dtlurl'); try{ dtlurlValue = dtlurl[0].firstChild.nodeValue; } catch (e) { dtlurlValue ="0"; } return dtlurlValue; } function showErrMsg(){ rbl[cnt].innerHTML += "(データを取得できませんでした。)"; } } function catsrmDisp(bibid,cnt) { clearsrmDisp(cnt); result[cnt].innerHTML = "情報取得中...
\n"; var url = "/webopac/togsrh.do"; var paramList = "?bibid="+bibid; var i; myAjax[cnt] = new Ajax.Request(url,{ method: 'get', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var response = data.responseXML.getElementsByTagName('root'); var record = response[0].getElementsByTagName('record'); var tmpHtml=""; var item; var itemValue; for(i = 0; i < record.length; i++){ item="" itemValue="" item = record[i].getElementsByTagName('holar'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue =""; } tmpHtml += "" + itemValue + " "; item="" itemValue="" item = record[i].getElementsByTagName('hlyr'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue =""; } tmpHtml += "(" + itemValue + ") "; item="" itemValue="" item = record[i].getElementsByTagName('hlv'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue =""; } tmpHtml += itemValue + " "; item="" itemValue="" item = record[i].getElementsByTagName('cont'); try{ itemValue = item[0].firstChild.nodeValue; } catch (e) { itemValue =""; } tmpHtml += itemValue + " "; tmpHtml += "
\n"; } clearsrmDisp(cnt); result[cnt].innerHTML = tmpHtml; } function showErrMsg(){ clearsrmDisp(cnt); result[cnt].innerHTML = "データを取得できませんでした。
\n"; } } function revsrhDisp(bibid,volbr,isbn,cnt) { // 情報取得中...のメッセージ表示 var tmpHtml0=""; tmpHtml0 += ""; tmpHtml0 += ""; tmpHtml0 += ""; tmpHtml0 += ""; tmpHtml0 += ""; tmpHtml0 += "
"; tmpHtml0 += '
'; tmpHtml0 += "情報取得中..."; tmpHtml0 += "
"; tmpHtml0 += "
"; review[cnt].innerHTML = tmpHtml0; // URL作成 var date = new Date(); var timestamp = date.getTime(); var url = "/webopac/revsrx.do?time="+timestamp; var paramList = "key=logoff&bibid="+bibid+"&volbr="+volbr+"&isbn="+isbn; myAjax[cnt] = new Ajax.Request(url,{ method: 'post', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var response=data.responseXML.getElementsByTagName('header'); var hitcntitem = response[0].getElementsByTagName('hitcnt'); var hitcntValue=""; try{ hitcntValue= hitcntitem[0].firstChild.nodeValue; } catch (e) { hitcntValue="0"; } var tmpHtml=""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; }else{ tmpHtml += ""; tmpHtml += '
'; tmpHtml += ""+hitcntValue+"件のレビューを見る" tmpHtml += ""; tmpHtml += "
"; tmpHtml += ""; tmpHtml += getrevdata(data); } tmpHtml += "
"; if(hitcntValue=="0"){ tmpHtml += '
'; tmpHtml += "レビューはありません"; tmpHtml += "
"; tmpHtml += "
"; tmpHtml += "
"; review[cnt].innerHTML = tmpHtml; } function getrevdata(data){ var response = data.responseXML.getElementsByTagName('body'); var record = response[0].getElementsByTagName('record'); var item; var crtdtValue=""; var pointValue=""; var titleValue=""; var bodyValue=""; var moreflgValue=""; var nicnmValue=""; var tmpHtml=""; var usescValue=""; var usearValue=""; var usetpValue=""; for(i = 0; i < record.length; i++){ item = record[i].getElementsByTagName('id'); idValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('crtdt'); crtdtValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('point'); pointValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('title'); titleValue = item[0].firstChild.nodeValue; titleValue=titleValue.replace(/&/g,'&'); titleValue=titleValue.replace(//g,'>'); titleValue=titleValue.replace(/"/g,'"'); item = record[i].getElementsByTagName('body'); bodyValue = item[0].firstChild.nodeValue; bodyValue=bodyValue.replace(/&/g,'&'); bodyValue=bodyValue.replace(//g,'>'); bodyValue=bodyValue.replace(/"/g,'"'); item = record[i].getElementsByTagName('moreflg'); moreflgValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('nicnm'); nicnmValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('usesc'); usescValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('usear'); usearValue = item[0].firstChild.nodeValue; item = record[i].getElementsByTagName('usetp'); usetpValue = item[0].firstChild.nodeValue; tmpHtml += ""; tmpHtml += ""; tmpHtml += '
'; tmpHtml += "
"; tmpHtml += "
"; tmpHtml += ""; tmpHtml += "  "; tmpHtml += titleValue; tmpHtml += ""; tmpHtml += "
"; tmpHtml += "
"; tmpHtml += bodyValue; if(moreflgValue=="1"){ tmpHtml += "[全文を読む]"; } tmpHtml += "
"; tmpHtml += "
"; tmpHtml += '投稿日:' tmpHtml += crtdtValue; tmpHtml += "  "; tmpHtml += '投稿者:' tmpHtml += nicnmValue; tmpHtml += "  "; tmpHtml += '' tmpHtml += usescValue; tmpHtml += "  "; tmpHtml += '' tmpHtml += usearValue; tmpHtml += "  "; tmpHtml += '' tmpHtml += usetpValue; tmpHtml += "  "; tmpHtml += "
"; tmpHtml += ""; tmpHtml += ""; } return tmpHtml; } function showErrMsg(){ result[cnt].innerHTML += ""; for( i= 0; i<2; i++){ result[cnt].innerHTML += ""; } result[cnt].innerHTML += "
データを取得できませんでした。
"; } } function revavgDisp(bibid) { // URL作成 var date = new Date(); var timestamp = date.getTime(); var url = "/webopac/revsrx.do?time="+timestamp; var paramList = "key=logoff&bibid="+bibid+"&mode=avg"; myAjax[0] = new Ajax.Request(url,{ method: 'get', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var response=data.responseXML.getElementsByTagName('header'); var hitcntitem = response[0].getElementsByTagName('hitcnt'); var hitcntValue=""; try{ hitcntValue= hitcntitem[0].firstChild.nodeValue; } catch (e) { hitcntValue="0"; } var tmpHtml=""; tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; if(hitcntValue=="0"){ tmpHtml += ""; }else{ tmpHtml += ""; tmpHtml += ""; tmpHtml += ""; } tmpHtml += ""; tmpHtml += "
"; tmpHtml += "レビューはありません"; tmpHtml += ""; tmpHtml += "総合評価:"; tmpHtml += ""; tmpHtml += getrevavg(data); tmpHtml += ""; tmpHtml += " ▼レビューを見る(総数"+hitcntValue+"件)"; tmpHtml += "
"; revavg[0].innerHTML = tmpHtml; } function getrevavg(data){ var response = data.responseXML.getElementsByTagName('body'); var item; var avgptValue=""; var avgnameValue=""; var tmpHtml=""; item = response[0].getElementsByTagName('avgpt'); try{ avgptValue = item[0].firstChild.nodeValue; } catch (e) { avgptValue ="0.0"; } item = response[0].getElementsByTagName('avgname'); try{ avgnameValue = item[0].firstChild.nodeValue; } catch (e) { avgnameValue ="0_0"; } tmpHtml += ""; tmpHtml += ""; return tmpHtml; } function showErrMsg(){ result[cnt].innerHTML += ""; for( i= 0; i<2; i++){ result[cnt].innerHTML += ""; } result[cnt].innerHTML += "
データを取得できませんでした。
"; } } function httpAbort() { for (cnt = 0; cnt < 200; cnt++) { if(myAjax[cnt]!=null){ myAjax[cnt].transport.abort(); } } } function clearDisp(cnt) { var listlineid; var resizeimgid; var rblid; var coverid; result[cnt].innerHTML = ""; listlineid="listline"+cnt; listline[cnt] = $(listlineid); listline[cnt].innerHTML =""; resizeimgid="resizeimg"+cnt; resizeimg[cnt] = $(resizeimgid); resizeimg[cnt].innerHTML =""; } function clearsrmDisp(cnt) { result[cnt].innerHTML = ""; } function cln_block(value_cln,delimiter,callno_cnt){ var i; //請求記号1 var cln1 = ""; //請求記号2 var cln2 = ""; //請求記号3 var cln3 = ""; //請求記号4 var cln4 = ""; //delimiterで請求記号値を分かる var clnArray = value_cln.split(delimiter); //請求記号1があれば cln1 = clnsChk(clnArray[0]); //請求記号2があれば cln2 = clnsChk(clnArray[1]); //請求記号3があれば cln3 = clnsChk(clnArray[2]); //請求記号4があれば cln4 = clnsChk(clnArray[3]); //請求記号1、2、3、4のいずれがあれば、ポップ画面を表示する if(cln1!=" "||cln2!=" "||cln3!=" "||cln4!=" "){ //表示内容を編集 var content = ""; var clnArray_new = new Array(4); clnArray_new[0] = cln1; clnArray_new[1] = cln2; clnArray_new[2] = cln3; clnArray_new[3] = cln4; //パラメータに段数が4を超える場合、4を設定する if(callno_cnt > 4){ callno_cnt = 4; } //ラベル内容の構築 content += ""; for(i=0; i"; content += "
"; //最後の行ではない場合に、表示クラスを指定して、下線を表示する }else{ content += "" + clnArray_new[i] + ""; } } //表示内容をパラメタとしてoverlibに渡してポップ画面のスタイルを設定し、ポップ画面を生成 overlib(content, BORDER, '0', WIDTH, '30', FULLHTML); } } function clnsChk(cln){ var str = ""; if(typeof(cln) != 'undefined'){ str = cln.replace("
", ""); //内容が空値の場合、全角SPACEを詰め if(str.replace(" ","")==""){ str=" "; } }else{ str = " "; } return str; } function seeBibDtl_Ajax(id){ resetCatSrhForm(); document.catsrhform.action='/webopac/catdbl.do'; document.catsrhform.pkey.value = id; document.catsrhform.fvol.value=''; document.catsrhform.fannul.value=''; document.catsrhform.startpos.value='-1'; document.catsrhform.togflg.value=''; document.catsrhform.fromDsp.value='catlsl'; document.catsrhform.initFlg.value='_RESULT_SET_NOTBIB'; document.catsrhform.submit(); } function sesSrhDisp() { var ssAjax = new Array(); ssAjax = null; var url = '/webopac/sessrh.do'; var paramList = 'isbnsn='+document.catsrhform.ajax_isbn_issn_ss.value+'&gcattp='+document.catsrhform.ajax_gcattp_ss.value+'&title='+document.catsrhform.ajax_title_ss.value+'&bibid='+document.catsrhform.ajax_bibid_ss.value; ssAjax = new Ajax.Request(url,{ method: 'post', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var tmpHtml=''; var tmpHtml2=''; var startDate=''; var startDateValue=''; var endDate=''; var endDateValue=''; var databaseName=''; var databaseNameValue=''; var url=''; var urlValue=''; var linkName=''; var linkNameValue=''; try{ hitcnt=gethitcnt(data) if(hitcnt == 0){ return; } datatype=getdatatype(data); tmpHtml += ''; tmpHtml += ''; tmpHtml += '
'; tmpHtml += ' mark'+hitcnt+'件の利用可能な電子リソースが見つかりました。'; tmpHtml += '
    '; var response = data.responseXML.getElementsByTagName('root'); var record = response[0].getElementsByTagName('record'); for(var i = 0; i < record.length; i++){ if(datatype=="journal"){ startDate = record[i].getElementsByTagName('startDate'); if(startDate[0].firstChild != null){ startDateValue = startDate[0].firstChild.nodeValue; } endDate = record[i].getElementsByTagName('endDate'); endDateValue = endDate[0].firstChild.nodeValue; databaseName = record[i].getElementsByTagName('databaseName'); databaseNameValue = databaseName[0].firstChild.nodeValue; url = record[i].getElementsByTagName('url'); urlValue = url[0].firstChild.nodeValue; if(startDate[0].firstChild != null){ tmpHtml += '
  1. '+startDateValue+'-'+endDateValue+' ('+databaseNameValue+')'; }else{ tmpHtml += '
  2. '+databaseNameValue+''; } }else{ linkName = record[i].getElementsByTagName('linkName'); linkNameValue = linkName[0].firstChild.nodeValue; databaseName = record[i].getElementsByTagName('databaseName'); databaseNameValue = databaseName[0].firstChild.nodeValue; url = record[i].getElementsByTagName('url'); urlValue = url[0].firstChild.nodeValue; tmpHtml += '
  3. '+linkNameValue+' ('+databaseNameValue+')'; } } tmpHtml += '
'; tmpHtml += '
mark
'; tmpHtml += '
'; tmpHtml2 = 'mark'; }catch(e){ alert(e); } if(record.length == 0){ return; } sslink.innerHTML = tmpHtml; sslink2.innerHTML = tmpHtml2; var objID=document.getElementById('sslink'); objID.style.display='block'; var objID2=document.getElementById('sslink2'); objID2.style.display='block'; } function showErrMsg(){ return; } function gethitcnt(data){ var hitcntValue; var response = data.responseXML.getElementsByTagName('header'); var hitcnt = response[0].getElementsByTagName('hitcnt'); try{ hitcntValue = hitcnt[0].firstChild.nodeValue; } catch (e) { hitcntValue ="0"; } return hitcntValue; } function getdatatype(data){ var datatypeValue; var response = data.responseXML.getElementsByTagName('header'); var datatype = response[0].getElementsByTagName('datatype'); try{ datatypeValue = datatype[0].firstChild.nodeValue; } catch (e) { datatypeValue ="book"; } return datatypeValue; } } function sfxSrhDisp() { var sfxAjax = new Array(); sfxAjax = null; var url = '/webopac/sfxsrh.do'; var paramList = 'isbnsn='+document.catsrhform.ajax_isbn_issn_sfx.value+'&gcattp='+document.catsrhform.ajax_gcattp_sfx.value+'&title='+document.catsrhform.ajax_title_sfx.value+'&bibid='+document.catsrhform.ajax_bibid_sfx.value; sfxAjax = new Ajax.Request(url,{ method: 'post', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var tmpHtml=''; var tmpHtml2=''; var databaseName=''; var databaseNameValue=''; var url=''; var urlValue=''; var linkName=''; var linkNameValue=''; try{ hitcnt=gethitcnt(data) if(hitcnt == 0){ return; } tmpHtml += ''; tmpHtml += ''; tmpHtml += '
'; tmpHtml += ' mark'+hitcnt+'件の利用可能な電子リソースが見つかりました。'; tmpHtml += '
    '; var response = data.responseXML.getElementsByTagName('root'); var record = response[0].getElementsByTagName('record'); for(var i = 0; i < record.length; i++){ linkName = record[i].getElementsByTagName('linkName'); linkNameValue = linkName[0].firstChild.nodeValue; databaseName = record[i].getElementsByTagName('databaseName'); databaseNameValue = databaseName[0].firstChild.nodeValue; url = record[i].getElementsByTagName('url'); urlValue = url[0].firstChild.nodeValue; tmpHtml += '
  1. '+linkNameValue+' ('+databaseNameValue+')'; } tmpHtml += '
'; tmpHtml += '
'; tmpHtml2 = 'mark'; }catch(e){ alert(e); } if(record.length == 0){ return; } sfxlink.innerHTML = tmpHtml; sfxlink2.innerHTML = tmpHtml2; var objID=document.getElementById('sfxlink'); objID.style.display='block'; var objID2=document.getElementById('sfxlink2'); objID2.style.display='block'; } function showErrMsg(){ return; } function gethitcnt(data){ var hitcntValue; var response = data.responseXML.getElementsByTagName('header'); var hitcnt = response[0].getElementsByTagName('hitcnt'); try{ hitcntValue = hitcnt[0].firstChild.nodeValue; } catch (e) { hitcntValue ="0"; } return hitcntValue; } } function blfsrhInit(bibid,target) { var objID=""; var objID2=""; objID=document.getElementById('result'+target); if(objID.style.display == 'block' ){ objID.style.display='none'; objID2=document.getElementById('check'+target); objID2.src="/webopac/image/plus.gif"; return; } var blfAjax = new Array(); blfAjax = null; var url = '/webopac/blfsrh.do'; var paramList = 'bibid='+bibid; blfAjax = new Ajax.Request(url,{ method: 'get', onSuccess: getData, onFailure: showErrMsg, parameters: paramList }); function getData(data){ var tmpHtml=''; var bibbr=''; var bibbrValue=''; var bibid=''; var bibidValue=''; try{ hitcnt=gethitcnt(data) if(hitcnt == 0){ return; } var response = data.responseXML.getElementsByTagName('root'); var record = response[0].getElementsByTagName('record'); for(var i = 0; i < record.length; i++){ bibbr = record[i].getElementsByTagName('bibbr'); bibbrValue = bibbr[0].firstChild.nodeValue; bibid = record[i].getElementsByTagName('bibid'); bibidValue = bibid[0].firstChild.nodeValue; tmpHtml += "   -"+bibbrValue+""; tmpHtml += "
\n"; } }catch(e){ alert(e); } objID=document.getElementById('result'+target); objID.innerHTML = tmpHtml; objID.style.display='block'; objID2=document.getElementById('check'+target); objID2.src="/webopac/image/minus.gif"; } function showErrMsg(){ return; } function gethitcnt(data){ var hitcntValue; var response = data.responseXML.getElementsByTagName('header'); var hitcnt = response[0].getElementsByTagName('hitcnt'); try{ hitcntValue = hitcnt[0].firstChild.nodeValue; } catch (e) { hitcntValue ="0"; } return hitcntValue; } }