名称: | |
描述: | |
公开/私有: | 公开 私有 |
名称: | |
描述: | |
公开/私有: | 公开 私有 |
1.
(法)圣埃克苏佩里(exupery, s.)著
(1)
" + previewContent; $("#bookPreview_" + bookrecno).html(previewBlock + goTopTitleBlock); } else { if(previewContent != "") { $("#bookPreview_" + bookrecno).html(previewContent + goTopTitleBlock); } } if(summary != "") { $("#bookContentSummary_" + bookrecno).html(summary); } if(authorIntroduction != null) { $("#bookAuthorIntroduction_" + bookrecno).html(authorIntroduction); } if(summary == "" || authorIntroduction == "") { //showDoubanSubject(); } } function showHoldingPreview(bookrecno) { //这里需要这么做是因为$(".expressServiceTab").tabs('select', 0);这个动作会在tabs初始化后全部打开 //一次第一个tab,造成所有第一个tab数据同时请求服务器然后加载,所以这里用个标识,在第二次点击选择tab才 //真正请求加载数据然后显示 var initTimes = $("#holdingPreviewDiv_" + bookrecno).attr("inittimes"); if(initTimes == "0") { $("#holdingPreviewDiv_" + bookrecno).attr("inittimes", "1"); return; } else if(initTimes == "1") { var isDone = $.trim($("#holdingPreviewDiv_" + bookrecno).html()); if(isDone == "") { var curLibcodes = getCurlibcodes(); $.ajax({ type: "GET", url: "/opac/book/holdingpreview/"+bookrecno+";jsessionid=24DED9BA2C046C014702CB7670AC152D", data: { "curLibcodes":curLibcodes }, dataType: "xml",//这里要用xml,如果用html,则在IE下无法解析这个数据 success: function(xml){ insertHoldingPreview(bookrecno, xml); } }); } } } function getCurlibcodes(){ return ""; } function insertHoldingPreview(bookrecno, data) { var glc="P2LN0415007"; var tableHeader = new Array("索书号", "所在馆", "所在馆藏地点", "在馆复本数"); if(glc=="P3JS0519059"){ tableHeader = new Array("架位号", "所在馆藏地点", "索书号", "所在馆", "在馆复本数"); } var tableContent = new Array(); var records = $(data).find("record"); records.each(function(i) { var callno = $(this).find("callno").text(); var curlib = $(this).find("curlib").text(); var curlibName = $(this).find("curlibName").text(); var curlocal = $(this).find("curlocal").text(); var curlocalName = $(this).find("curlocalName").text(); var copycount = $(this).find("copycount").text(); var shelfno = $(this).find("shelfno").text(); var dataArray = new Array(callno, curlibName, curlocalName, copycount); if(glc=="P3JS0519059"){ dataArray = new Array(shee=1&f_class1=i&searchWay0=marc&logical0=AND&page=1">尾页>>
© 2005-2014 www.interlib.com.cn, all rights reserved
|