ageBaseURL + "&research.q=" + q; document.location.href = targetURL; } //显示计数 $(function() { }); function showVisitedCount(count){ var countStr = new String(count); while(countStr.length < 8) { countStr = "0" + countStr; } var len = countStr.length; var result = "访问量:"+countStr+""; $("#showVisitedCountDiv").html(result); $("#showVisitedCountDiv").fadeIn(1000); } $(function() { /* $("#baseSearchForm").submit(function() { var searchWay = $("#baseSearchForm select[name='searchWay']").val(); if(searchWay == "callno") { $(this).append( $("").attr("name", "sortWay").attr("type", "hidden").val("callno_sort")) .append( $("").attr("name", "sortOrder").attr("type", "hidden").val("asc")); } }); */ }); function baseSearch() { var qword = $("#q").val(); if(qword!=""&&bannedHashSet.contains(qword)){ alert("您的检索词中包含不当词汇,请更换或删除敏感词"); return; } var q = encodeURIComponent($("#q").val()); if(q == "") { alert("请输入检索词."); return; } //q = "marc:" + q; var baseURL = "/opac/search;jsessionid=668DBC3C70D38333E059A551F727B8FD?"; var targetURL = baseURL + "&q=" + q; var $searchWay = $("#baseSearchForm select[name='searchWay']"); if ($searchWay != null){ var searchWay = $searchWay.val(); targetURL = targetURL+"&searchWay="+searchWay; if(searchWay == "callno") { targetURL += "&sortWay=callno_sort"; targetURL += "&sortOrder=asc"; } } var $scWay = $("#baseSearchForm select[name='scWay']"); targetURL += "&scWay="+$scWay.val(); targetURL += "&curlibcode="+"001 著"; targetURL += "&searchSource=reader"; if($("#navPageBaseURL").text().indexOf("view=express")!=-1){ targetURL += "&view=express"; var locals = ""; var codeArrays = locals.split(","); for (index in codeArrays) { if(codeArrays[index]!=""){ targetURL += "&curlocal="+codeArrays[index]; } } }else if ($("#navPageBaseURL").text().indexOf("view=reserveloan")!=-1) { targetURL += "&view=reserveloan"; //如果是网上预借页面则加上view=reserveloan标识 } var curlocalconfig = $.cookie("localConfig"); if(curlocalconfig != null && curlocalconfig != ""){ var values = curlocalconfig.split(","); for(var i = 0; i