an").html("("+count+"个结果)"); libs.push(libcode); }else if(li.length==1){ index++; li.find(".facetCount").html("("+count+")"); if(index<=10){ li.removeClass("hide") }else{ if(!li.hasClass("hide")){ li.addClass("hide"); } } libs.push(libcode); } } } } //隐藏无结果分馆 $("#otherLibs>div, #curlibcodeFacetUL>li").each(function(){ var libcode = $(this).attr("code"); if(libcode && $.inArray(libcode, libs)==-1){ $(this).remove(); } }); //"更多"按钮的显示处理 if(index>10){ $("#curlibcodeFacetLI").show(); }else{ $("#curlibcodeFacetLI").hide(); } if(index>0){ $("#otherLibs").show(); }else{ $("#otherLibs").hide(); } } } } }); }); $(function(){ $.cookie("searcher_libcode", "", {expires:365, path:'/opac'}); });