全馆预约到馆通知
  • 全馆图书催还通知 ay=score&sortOrder=desc&f_subject=%E9%95%BF%E7%AF%87%E5%B0%8F%E8%AF%B4&f_lang=ger&searchWay0=marc&logical0=AND"; $("#title").val(keywords); $("#searchURL").val(searchURL); $("#saveSearchResultListDialog").dialog("open"); } function saveKeyword(){ var keyword = "*:*"; var checking = checkLogin(); if(!checking){ return; }else if($.trim(keyword) == ""||keyword == "*:*"){ alert("无效的检索词,请重新发起检索"); return; } $.ajax({ type: "post", url: "/opac/subscription/keyword/save;jsessionid=1FAEE3E5182C28E74420C35039DA17A2", data: { "keyword": keyword, "searchway": "" }, dataType: "json", success: function(data){ if(data.flag=="1"){ if(confirm("检索词已保存到我的订阅列表中,现在去看看?")){ window.location.href="/opac/subscription/keyword/list;jsessionid=1FAEE3E5182C28E74420C35039DA17A2"; } }else{ alert("无法保存检索词:"+keyword); } } }); } function saveSearchResultList() { $.ajax({ type: "post", url: "/opac/searchResultList/save;jsessionid=1FAEE3E5182C28E74420C35039DA17A2", data: { "title": $("#title").val(), "searchURL": $("#searchURL").val(), "description": $("#description").val(), "isPublic": $("#saveSearchResultListDialog input[name='isPublic']:checked").val() }, dataType: "xml",//这里要用xml,如果用html,则在IE下无法解析这个数据 success: function(xml){ showSaveSearchResultListResult(xml); } }); } function showSaveSearchResultListResult(data) { var state = $(data).find("state").text(); if(state == "1") { alert("保存成功!"); $("#saveSearchResultListDialog").dialog("close"); } else { alert("保存失败!"); } } //添加图书专题 function addBookSpecial(){ window.location.href="/opac/admin/bookSpecial/edit;jsessionid=1FAEE3E5182C28E74420C35039DA17A2?q=*%3A*&searchType=standard&isFacet=true&view=standard&rows=10&sortWay=score&sortOrder=desc&f_subject=%E9%95%BF%E7%AF%87%E5%B0%8F%E8%AF%B4&f_lang=ger&searchWay0=marc&logical0=AND"; } //保存书单至输出邮件/本地文件列表 function saveBookIdList(){ bookItemStr = ""; $("input[name='bookItemCheckbox']").each(function(i) { if($(this).attr("checked")) { bookItemStr = bookItemStr + $(this).val() + ","; } }); if(bookItemStr.length==0 || bookItemStr==""){ alert("请选择需要输出的书籍"); return ; } bookItemStr = bookItemStr.substring(0, bookItemStr.lastIndexOf(",")); $("input[type='hidden'][name='printBookIdList']").attr("value" , bookItemStr); $("form[name='printBookIdListForm']").trigger("submit"); } //书单 function selectAllBookItems() { $("input[name='bookItemCheckbox']").attr("checked", true); } function clearAllBookItems() { $("input[name='bookItemCheckbox']").attr("checked", false); } var bookListId=""; var bookItemStr =""; function saveItemsToBookList() { var rdid = getRdid(); if(rdid == "") { alert("请先登录!"); return; } bookListId = $("#bookLists").val(); bookItemStr = ""; $("input[name='bookItemCheckbox']").each(function(i) { if($(this).attr("checked")) { bookItemStr = bookItemStr + $(this).val() + ","; } }); if(bookItemStr == "") { alert("请选择图书."); return; } if($("#bookLists").val()=="") { newBookListDialog(); return; } addBookItems(); } //把添加这一块单独提取出来,可能多个地方会用到 function addBookItems() { $.ajax({ type: "post", url: "/opac/booklistitem/save;jsessionid=1FAEE3E5182C28E74420C35039DA17A2", data: { "bookListId": bookListId, "bookListItems": bookItemStr }, dataType: "xml",//这里要用xml,如果用html,则在IE下无法解析这个数据 success: function(xml){ showSaveBookListItemResult(xml); } }); } function newBookList(){ if($("#new_listName").val()=="") { alert("书单名称不能为空!"); return; } $.ajax({ type:"post", url:"/opac/booklist/save;jsessionid=1FAEE3E5182C28E74420C35039DA17A2", data:{ "listName": $("#new_listName").val(), "description": $("#new_description").val(), "privacy": $("#newBookListDialog input[name='new_privacy']:checked").val() }, dataType:"xml", success:function(xml){ showNewBookListResult(xml); } }); } function showNewBookListResult(data){ //alert(data.text()); var state=$(data).find("state").text(); if(state=="2") { if(confirm("你已创建过了相同名称的书单,是否直接保存进该书单!")) { bookListId=$(data).find("bookListId").text(); addBookItems(); } $("#newBookListDialog").dialog("close"); clearNewBookList(); } else if(state=="1") { bookListId=$(data).find("bookListId").text(); $("#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", ur