名称: |
"+$("#new_listName").val()+"");
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;jsessionid=CC508F9C276EFC11FAB61B8C062F359F",
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(boo=%E4%BE%A6%E6%8E%A2%E5%B0%8F%E8%AF%B4&searchType=standard&isFacet=true&view=standard&searchWay=subject&rows=10&sortWay=score&sortOrder=desc&f_subject=%E4%BE%A6%E6%8E%A2%E5%B0%8F%E8%AF%B4&f_subject=%E5%84%BF%E7%AB%A5%E6%96%87%E5%AD%A6&f_subject=%E7%9F%AD%E7%AF%87%E5%B0%8F%E8%AF%B4&f_pubdate=2014&f_booktype=1&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=CC508F9C276EFC11FAB61B8C062F359F",
data: {
"keyword": keyword,
"searchway": "subject"
},
dataType: "json",
success: function(data){
if(data.flag=="1"){
if(confirm("检索词已保存到我的订阅列表中,现在去看看?")){
window.location.href="/opac/subscription/keyword/list;jsessionid=CC508F9C276EFC11FAB61B8C062F359F";
}
}else{
alert("无法保存检索词:"+keyword);
}
}
});
}
function saveSearchResultList() {
$.ajax({
type: "post",
url: "/opac/searchResultList/save;jsessionid=CC508F9C276EFC11FAB61B8C062F359F",
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=CC508F9C276EFC11FAB61B8C062F359F?q=%E4%BE%A6%E6%8E%A2%E5%B0%8F%E8%AF%B4&searchType=standard&isFacet=true&view=standard&searchWay=subject&rows=10&sortWay=score&sortOrder=desc&f_subject=%E4%BE%A6%E6%8E%A2%E5%B0%8F%E8%AF%B4&f_subject=%E5%84%BF%E7%AB%A5%E6%96%87%E5%AD%A6&f_subject=%E7%9F%AD%E7%AF%87%E5%B0%8F%E8%AF%B4&f_pubdate=2014&f_booktype=1&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=CC508F9C276EFC11FAB61B8C062F359F",
data: {
"bookListId": bookListId,
"bookListItems": bookItemStr
},
dataType: "xml",//这里要用xml,如
图书
x
已经限定的分面
出版日期:
文献类型: |