; $("#bookLists").append(""); addBookItems(); $("#newBookListDialog").dialog("close"); clearNewBookList(); } else { alert("创建书单或者加入书单失败!"); } } function clearNewBookList() { $("#new_listName").attr("value",""); $("#new_description").attr("value",""); $("#newBookListDialog input[name='new_privacy']").eq(0).attr("checked","checked"); } function showSaveBookListItemResult(data) { var state = $(data).find("state").text(); if(state == "1") { alert("保存成功!"); } else { alert("保存失败!"); } } function newBookListDialog() { $("#newBookListDialog").dialog("open"); clearNewBookList(); } $(function() { $("#newBookListDialog").dialog({ autoOpen: false, modal: true, width: 510, buttons:[{ text:"新增并加入书单", click:function(){ newBookList(); } } ] }); }); //读取显示隐藏趋势图的cookie信息 $(document).ready(function(){ var chartCookie = $.cookie('chartCookie'); var libcode="P2LN0415007"; if(chartCookie!=null){ if(chartCookie=='hide'){ $("#display").html(" "+getI18nMsg("chartI18n.showChart"));//显示趋势图 $("#chartCtnr").hide(0); $("#btnDiv").attr("align","left"); }else{ $("#display").html(getI18nMsg("chartI18n.hideChart")+" "); } }else{ if("0"=="0"){ $("#display").html(" "+getI18nMsg("chartI18n.showChart"));//显示趋势图 $("#chartCtnr").hide(0); $("#btnDiv").attr("align","left"); }else{ $("#display").html(getI18nMsg("chartI18n.hideChart")+" "); } } var classFacetCookie = $.cookie('classFacetCookie'); if(classFacetCookie!=null){ if(classFacetCookie=='hide'){ $("#block").html(" "+getI18nMsg("searchResultI18n.showClassFacet"));//显示 $("#classFacetDiv").hide(0); $("#sohDiv").attr("align","left"); }else{ $("#block").html(getI18nMsg("searchResultI18n.hideClassFacet")+" "); } }else{ if("P2LN0415007"=="ESH021039"){ $("#block").html(" "+getI18nMsg("searchResultI18n.showClassFacet"));//显示 $("#classFacetDiv").hide(0); $("#sohDiv").attr("align","left"); }else{ $("#block").html(getI18nMsg("searchResultI18n.hideClassFacet")+" "); } } }); //当馆藏为空时,判断该书目是否在订购中,如果是则提示 $(function() { //如果有光盘,显示提示“含光盘”,方便读者预订 }); function showAttachment(bookrecnos){ $.ajax({ type: "GET", url: "/opac/book/getAttachments", data: { "bookrecnos": bookrecnos.join(",") }, dataType: "json", success: function(data){ for(var i in data) { var bookrecno = data[i]; $("span[id='attachment_" + bookrecno + "']").show(); } } }); } function getOrderStatus(bookrecnos) { $.ajax({ type: "GET", url: "/opac/book/orderStatus", data: { "bookrecnos": bookrecnos.join(",") }, dataType: "json",//这里要用xml,如果用html,则在IE下无法解析这个数据 success: function(data){ for(var i in data) { var bookrecno = data[i]; $("div[bookrecno='" + bookrecno + "'] span.biblios_ordering").show(); } } }); } function getReservationCount(bookrecnos) { $.ajax({ type: "GET", url: "/opac/book/currentReservationCount", data: { "bookrecnos": bookrecnos.join(",") }, dataType: "json", success: function(data){ for (var i=0;i
名称:
描述:
公开/私有: 公开 私有