1 2 3function check_all_sources(direction){ 4//alert(direction); 5 chk_obj=new Array(); 6 7 if (document.SEARCH['R21DBN'] && !document.SEARCH['R21DBN'].length) chk_obj[0]=document.SEARCH['R21DBN']; 8 else chk_obj=document.SEARCH['R21DBN']; 9 10 for (i=0; i < chk_obj.length; i++){ 11 // chk_obj[i].style.display = "none"; 12 chk_obj[i].checked = direction; 13 //chk_obj[i].style.display = ""; 14 } 15 16} 17 18 19 20function gid(element_id){ 21return document.getElementById(element_id); 22} 23 24function st(exp) { 25 document.SEARCH_FORM.S21STN.value='1'; 26 document.SEARCH_FORM.SAME_SEARCH.value=''; 27 document.SEARCH_FORM.FT_REQUEST.value=''; 28 document.SEARCH_FORM.S21ALL.value="(<.>"+exp+"<.>)"; 29 document.SEARCH_FORM.submit(); 30} 31 32function sh(layer){ 33 gid(layer).style.display=(gid(layer).style.display=="none") ? "" : "none"; 34} 35 36 37 38 39 40 41function fulltext_search(mfn) { 42 document.SEARCH_FORM.S21ALL.value=''; 43 document.SEARCH_FORM.S21STN.value='1'; 44 document.SEARCH_FORM.SAME_SEARCH.value=mfn; 45 document.SEARCH_FORM.FT_NEAR_MFN_NEW.value=mfn; 46 document.SEARCH_FORM.SEARCHNEAR.value='1'; 47 48 //document.SEARCH_FORM.FT_REQUEST.value=my_req; 49 //document.SEARCH_FORM.S21SRW.value=''; 50 51 document.SEARCH_FORM.submit(); 52} 53 54 55 56function next_card(mfn) { 57 document.SEARCH_FORM.S21ALL.value=''; 58 document.SEARCH_FORM.S21STN.value='1'; 59 document.SEARCH_FORM.Z21MFN.value=mfn; 60 //document.SEARCH_FORM.FT_NEAR_MFN_NEW.value=mfn; 61 //document.SEARCH_FORM.SEARCHNEAR.value='1'; 62 document.SEARCH_FORM.FT_REQUEST.value=''; 63 //document.SEARCH_FORM.S21SRW.value=''; 64 65 document.SEARCH_FORM.submit(); 66} 67 68 69function SSForm(r_number){ 70if (document.SEARCH_FORM.MFN && document.SEARCH_FORM.SEL_MFN) print_bo(); 71document.SEARCH_FORM.S21STN.value=r_number; 72//alert('ALL'+document.SEARCH_FORM.S21ALL.value); 73//alert('BACK'+document.SEARCH_FORM.REQ_BACK.value); 74//СÑÑÐ°Ñ Ð¾Ð²ÐºÐ° Ð¾Ñ Ð¿Ñоблем пÑи history back, ÑвÑзаннÑÑ Ñ Ð´Ð¸Ð½Ð°Ð¼Ð¸ÑеÑкой модиÑикаÑией Ð¿Ð¾Ð»Ñ 75if (document.SEARCH_FORM.REQ_BACK) document.SEARCH_FORM.S21ALL.value=document.SEARCH_FORM.REQ_BACK.value; 76document.SEARCH_FORM.submit(); 77} 78 79function request_decrypt(request,ft_requst){ 80pref=new Array(); 81pref[0]=new Array('T=','ÐÐÐÐÐÐÐÐ','ÐÐÐÐÐÐÐЯ'); 82pref[1]=new Array('D=','ÐÐСЦÐÐÐÐÐÐ','ÐÐСЦÐÐÐÐÐЫ'); 83pref[2]=new Array('SP=','СÐÐЦÐÐÐЬÐÐСТЬ','СÐÐЦÐÐÐЬÐÐСТÐ'); 84pref[3]=new Array('A=','ÐÐТÐÐ ','ÐÐТÐРЫ'); 85pref[4]=new Array('T=','ÐÐÐÐÐÐÐÐ','ÐÐÐÐÐÐÐЯ'); 86pref[5]=new Array('K=','ÐÐЮЧÐÐЫРСÐÐÐÐ','ÐÐЮЧÐÐЫРСÐÐÐÐ'); 87pref[6]=new Array('O=','ÐÐÐÐТÐÐЬСТÐÐ','ÐÐÐÐТÐÐЬСТÐÐ'); 88pref[7]=new Array('G=','ÐÐÐ ÐÐÐÐÐÐЯ','ÐÐÐЫ ÐÐÐÐÐÐЯ'); 89pref[8]=new Array('R=','РУÐÐ ÐÐÐ','РУÐÐ ÐÐÐ'); 90pref[9]=new Array('V=','ÐÐÐ ÐÐÐÐÐÐЯ','ÐÐÐЫ ÐÐÐÐÐÐЯ'); 91pref[10]=new Array('HD=','Ð¥ÐÐ ÐÐТÐÐ ÐÐÐУÐÐÐТÐ','Ð¥ÐÐ ÐÐТÐРЫ ÐÐÐУÐÐÐТÐ'); 92pref[11]=new Array('MHR=','ÐÐСТРХРÐÐÐÐÐЯ','ÐÐСТРХРÐÐÐÐÐЯ'); 93pref[12]=new Array('TJ=','ÐÐÐÐÐÐÐРСТÐТЬÐ','ÐÐÐÐÐÐÐЯ СТÐТÐÐ'); 94pref[13]=new Array('VR=','ÐÐÐ ÐÐÐУÐÐÐТÐ','ÐÐÐЫ ÐÐÐУÐÐÐТÐÐ'); 95pref[14]=new Array('KAF=','ÐÐФÐÐÐ Ð','ÐÐФÐÐРЫ'); 96integrator2=''; 97prf_last=''; 98 99if (ft_requst)document.writeln('<b> ÐÐÐÐÐТÐÐСТÐÐЫРÐÐÐÐ ÐС: </b>'+ft_requst); 100if (request.indexOf('I=')>0 || request.indexOf('TXT=')>0) return; 101 102multi=request.split('*'); 103for(i in multi){ 104 addi=multi[i].split('+'); 105 prf_find=false; 106 for(d in pref){ 107 if (multi[i].indexOf(pref[d][0])>0){ 108 prf_decript=(addi.length>1) ? pref[d][2]+': ' : pref[d][1]+': '; 109 prf_decript=(prf_last!=pref[d][0]) ? prf_decript : ''; 110 document.writeln(integrator2+'<b>'+prf_decript+'</b>'); 111 integrator2='<b> Ð </b>' 112 prf_find=true; 113 prf_last=pref[d][0]; 114 break; 115 } 116 } 117 118 if (prf_find){ 119 integrator=''; 120 for(k in addi){
121 document.writeln(integrator+'"'+addi[k].replace(/(.*=)|(\<\.\>)|(\))|\$|(\/\(.*\))/g,'')+'"'); 122 integrator='<b> ÐÐÐ </b>'; 123 } 124 } 125} 126 127} 128 129 130function make_win(mode,par,waiting){ 131 cmd_str=new Array(); 132 133 cmd_str[7]= new Array('ÐеÑаÑÑ_запиÑей',cgi+'?I21DBN='+par[0]+'_PRINT&P21DBN='+par[0]+'&S21FMT='+par[1]+'&S21CNR=500&S21COLORTERMS=0&C21COM=S&S21SRW='+par[2]+'&S21ALL='+par[3]+'&FT_PREFIX='+par[6]+'&SAME_SEARCH='+par[4]+'&FT_REQUEST='+par[5]+'&FT_DISTANCE='+par[7]+'&FT_PARAMS='+par[8]+'&FT_NEAR_MFN'+par[9],"status=no,location=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes",620,440); 134 //make_win(7,[document.SEARCH_FORM.P21DBN.value,document.SEARCH_FORM.PRINT_FORMAT.value,srw,s_expression,full_search,encodeURIComponent(full_search_req),document.SEARCH_FORM.FT_PREFIX.value,document.SEARCH_FORM.FT_DISTANCE.value,document.SEARCH_FORM.FT_PARAMS.value]); 135 136 137 x=cmd_str[mode][3]; 138 y=cmd_str[mode][4]; 139 cx=screen.width/2-(x/2); 140 cy=screen.height/2-(y/2); 141 adr=(waiting) ? '' : cmd_str[mode][1]; 142 var load_window=window.open(adr,cmd_str[mode][0],cmd_str[mode][2]+',width='+x+',height='+y+',top='+cy+',left='+cx); 143 load_window.focus(); 144 145 if (load_window == null) { 146 alert('ÐÑклÑÑиÑе блокиÑÐ¾Ð²ÐºÑ Ð²ÑплÑваÑÑÐ¸Ñ Ð¾ÐºÐ¾Ð½ в ÑвоÑм бÑаÑзеÑе! ÐÑплÑваÑÑие окна Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ñ Ð´Ð»Ñ ÐºÐ¾ÑÑекÑной ÑабоÑÑ ÑайÑа!'); 147 return; 148 } 149 150 151 if (waiting){ 152 load_window.document.writeln('<html><body><div style="position: absolute;width:100%; height:100%; z-index:0;" id="progress_bar" ><table style="width:100%; height:100%;"><tr><td align=center><div style="background-color: white"><table style="border: 4px double black; background-color: white"><tr><td align=center ><span style="font-size: 11pt; margin:10px; font-weight:bold">ÐдиÑе... '+waiting+'</span><br><img src="{httpjpath}/images/progbar.gif"></td></tr></table></div></td></tr></table></div></body></html>'); 153 load_window.document.location=cmd_str[mode][1]; 154 } 155 156} 157 158 159jQuery(function ($) { 160 //$.cookie("selected_codes2",""); 161 162 $(".code_checkbox").each (function(){ 163 var codes_cookies=$.cookie("selected_codes2") ? $.cookie("selected_codes2").split("*") : []; 164 if ($.inArray(this.value,codes_cookies)>=0) 165 this.checked=true; 166 167 }); 168 169 170 $(".navLeft").click(function(){ 171 $.cookie("selected_codes2",""); 172 }); 173 174 175 176 $(".code_checkbox").change(function () { 177 178 var codes_cookies=$.cookie("selected_codes2") ? $.cookie("selected_codes2").split("*") : []; 179 180 if (this.checked){ 181 codes_cookies.push(this.value); 182 }else { 183 if (codes_cookies) { 184 var current_code=this.value; 185 codes_cookies = $.grep(codes_cookies, function(val, index){ 186 return (val!= current_code); 187 }); 188 } 189 } 190 191 //codes_cookies=$.unique(codes_cookies); 192 $.cookie("selected_codes2",codes_cookies.join('*')); 193 }); 194}); 195 196function print_bo(sel_type){ 197 198 var codes_cookies=$.cookie("selected_codes2") ? $.cookie("selected_codes2").split("*") : []; 199 200 var full_search=document.SEARCH_FORM.SAME_SEARCH.value; 201 var full_search_req=document.SEARCH_FORM.FT_REQUEST.value; 202 var srw='avhead'; 203 var id_prefix=(sp_base) ? 'TXT=' : 'I='; 204 var s_expression=""; 205 206 if ((sel_type=="2"||sel_type=="3") && !codes_cookies.join()) alert("ÐÐ»Ñ Ð²ÑбÑанного Ñежима пеÑаÑи ÑÑебÑеÑÑÑ Ð¾ÑобÑаÑÑ Ð·Ð°Ð¿Ð¸Ñи!"); 207 else{ 208 if (sel_type){ 209 s_expression=""; 210 if (sel_type=="1"){ 211 s_expression=document.SEARCH_FORM.SEL_ALL.value; 212 srw=''; 213 } else { 214 integrator="%2B"; 215 if (sel_type=="3"){ 216 s_expression=document.SEARCH_FORM.SEL_ALL.value; 217 integrator="^"; 218 if (document.SEARCH_FORM.SAME_SEARCH.value){ 219 alert("Ð Ñежиме ÑанжиÑованного поиÑка иÑклÑÑение запиÑей из ÑпиÑка пеÑаÑи невозможно!"); 220 return; 221 } 222 } 223 for(i=0; i<codes_cookies.length; i++){
224 if(codes_cookies[i]) s_expression+=integrator+"<.>"+id_prefix+encodeURIComponent(decodeURIComponent(codes_cookies[i]))+"<.>"; 225 } 226 227 full_search=''; 228 full_search_req=''; 229 230 } 231 232 if (full_search) full_search_req='' 233 //alert('SAME'+full_search); 234 //alert('FREQ'+full_search_req); 235 //alert('SEXPR'+s_expression); 236 237 make_win(7,[document.SEARCH_FORM.P21DBN.value,document.SEARCH_FORM.PRINT_FORMAT.value,srw,s_expression,full_search,full_search_req,document.SEARCH_FORM.FT_PREFIX.value,document.SEARCH_FORM.FT_DISTANCE.value,document.SEARCH_FORM.FT_PARAMS.value,document.SEARCH_FORM.FT_NEAR_MFN.value]); 238 239 } 240 } 241 242 243} 244 245
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.