var explicitz3950 = ''; var infow; var unknown; var formtosubmit; var dbname_full = ''; var html_email_full = ''; var text_email_full = ''; var pagelibri = ''; var agt=navigator.userAgent.toLowerCase(); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); function scan (use_x, str,lang) { if (lang == undefined) lang = 'it'; //FRANCESE + SPAGNOLO if (lang == 'it') tit = 'che iniziano per'; else if (lang == 'fr') tit = 'qui commencent par'; else if (lang == 'es') tit = 'que empiezan por'; else tit = 'which start with'; if (!str) { //FRANCESE + SPAGNOLO if (lang =='it') alert("Inserire almeno un carattere."); else if (lang =='fr') alert("Entrer au moins un caractère."); else if (lang =='es') alert("Introducir por lo menos un carácter."); else alert("Insert at least a character."); return false; } var txtu = ''; var indx = use_x.indexOf('X'); txtu = use_x.substring(indx+1); use_x = use_x.substring(0,indx); document.list.request.value = '1=' + use_x + ' 4=2 "' + str + '"'; //FRANCESE + SPAGNOLO if (lang =='it') document.list.visrequest.value = '' + txtu + ' che iniziano per ' + str + ''; else if (lang =='fr') document.list.visrequest.value = '' + txtu + ' qui commencent par ' + str + ''; else if (lang =='es') document.list.visrequest.value = '' + txtu + ' que empiezan por ' + str + ''; else document.list.visrequest.value = '' + txtu + ' which start with ' + str + ''; // document.list.address.value = // document.AccessF.polo.options[document.AccessF.polo.selectedIndex].value; document.list.submit(); } function search_advanced (lang,da,a,filtro,restriction1,rangename,datename,restrictiontxt1) { var result = ""; var txtresult = ""; var op = "@and@"; var txtop = "and"; var txtu = ""; var struct = '@and@'; if (lang =='it') txtop = 'e'; var allfiltro = 1; if (lang =='fr') txtop = 'et'; if (lang =='es') txtop = 'y'; for (var num=0; num < document.AccessF.elements.length; num++) { var use_x = document.AccessF.elements[num].name if(use_x != undefined && use_x != '' && use_x.indexOf('item') != -1) { var indx = use_x.indexOf('X'); txtu = use_x.substring(indx+1); txtu = replace_char(txtu,'XX',' '); use_x = use_x.substring(4,indx); var str = ''; var check1 = 1; str = document.AccessF.elements[num].value; if (use_x == '3014' || use_x == '1001' || use_x == '1021' || use_x == '1025') // if (use_x == '1001' || use_x == '1021' || use_x == '1025') check1 = 0; use_x = "1=" + use_x; var item = subfield(str, use_x, struct, check1,''); if (item && (!filtro || filtro.indexOf(use_x) == -1)) allfiltro = 0; if (item && (use_x != '1=3014' && !check1)) // if (item && !check1) str = document.AccessF.elements[num].options[document.AccessF.elements[num].selectedIndex].text; if (use_x == '1=1025' && lang == 'it') { txtu = 'Tonalità'; } if ((item != "") && (result =="")) { txtresult = '' + txtu + '= "' + str + '"'; result = item; } else { if (item != "") { result = result + " " + op + " " + item; txtresult = txtresult + " " + txtop + " " + '' + txtu + '= "' + str + '"'; } } } } //FRANCESE + SPAGNOLO if (a || da) { var opt = rangedate('da','a',1,'1=31',''); if (opt) { if (lang == 'it') opttxt = txtrangedate('Anno di pubblicazione ','da','a',1) else if (lang == 'fr') opttxt = txtrangedate("Année de publication",'du','au',1) else if (lang == 'es') opttxt = txtrangedate("Año de publicación",'del','al',1) else opttxt = txtrangedate('Publication year ','da','a',1) if (result) { result = result + ' ' + op + ' '; txtresult = txtresult + ' ' + txtop + ' '; } result = result + opt; txtresult = txtresult + opttxt; } } if (rangename) { var parts = rangename.split('X'); var opt = rangedate(parts[0]+'da',parts[0]+'a',0,'1='+parts[1],''); if (opt) { opttxt = txtrangedate(parts[2],parts[0]+'da',parts[0]+'a',0) if (result) { result = result + ' ' + op + ' '; txtresult = txtresult + ' ' + txtop + ' '; } result = result + opt; txtresult = txtresult + opttxt; } } if (datename) { var parts = datename.split('X'); var y1 = eval("self.document.AccessF."+parts[0]+"y.value"); if (y1 != "") { var range = isLegalRangeYear(y1, ''); if (range) { opt = querynotation (result,'1='+parts[1],'4=4','2=3',range,op); opttxt = parts[2] + " = " + y1 + " "; if (result) { result = result + ' ' + op + ' '; txtresult = txtresult + ' ' + txtop + ' '; } result = result + opt; txtresult = txtresult + opttxt; } } } //FRANCESE + SPAGNOLO if (result == "") { if (lang =='it') alert("Inserire almeno una parola chiave."); else if (lang =='fr') alert("Entrer au moins l'un des mots-clé."); else if (lang =='es') alert("Introducir por lo menos una palabra clave."); else alert("Insert a valid keyword."); return false; } //FRANCESE + SPAGNOLO if (allfiltro && (restriction == undefined || restriction == '')) { if (lang =='it') alert("Inserire un termine in un canale di ricerca significativo e non solo sui filtri!"); else if (lang =='fr') alert("Entrer un mot dans un critère de recherche significatifs et non seulement dans les filtres !"); else if (lang =='es') alert("¡Introducir una palabra en un canal de búsqueda significativo y no sólo en los filtros!"); else alert("Insert a valid keyword not only filters!"); return false; } // if the restriction is set then add to the present query if(restriction1 != undefined && restriction1 != '') { result = restriction1 + ' ' + op + ' ' + result; } if(restrictiontxt1 != undefined && restrictiontxt1 != '') { txtresult = restrictiontxt1 + ' ' + txtresult; } if(restriction != undefined && restriction != '') { result = restriction + ' ' + op + ' ' + result; txtresult = restrictiontxt + ' ' + txtop + ' ' + txtresult; } document.records.visrequest.value = txtresult; document.records.request.value = result ; if (document.records.address.value == '') document.records.address.value == 'alldbs'; else document.records.database.value = 0; document.records.submit(); return true; } function lista(use_x,str,template,nopopup,lang) { var txtu = ''; var indx = use_x.indexOf('X'); txtu = use_x.substring(indx+1); use_x = use_x.substring(0,indx); var value = escape('1=' + use_x + ' 4=2 "' + str + '"'); //FRANCESE + SPAGNOLO if (!str) { if (lang =='it') alert("Inserire almeno una parola chiave."); else if (lang =='fr') alert("Entrer au moins un mot-clé."); else if (lang =='es') alert("Introducir por lo menos una palabra clave."); else alert("Insert a valid keyword."); return false; } //FRANCESE + SPAGNOLO var valuetxt = escape('' + txtu + " che iniziano per " + str + ''); if (lang == 'en') valuetxt = escape('' + txtu + " which start with " + str + ''); if (lang == 'fr') valuetxt = escape('' + txtu + " qui commencent par " + str + ''); if (lang == 'es') valuetxt = escape('' + txtu + " que empiezan por " + str + ''); if (nopopup) self.location.href = '/cgi-bin/list.cgi?request=' + value + '&visrequest=' + valuetxt + '&template=' + template + '&noheader=1'; else newwindowlista('/cgi-bin/list.cgi?request=' + value + '&visrequest=' + valuetxt + '&template=' + template + '&noheader=1'); } function newwindowlista (url,name){ if (infow && infow != undefined) infow.close(); var specs='width=700,height=380,resizable=yes,scrollbars=yes,status=0'; if (name == unknown) name = 'infow'; infow=window.open(url,name,specs); if (!infow) return; infow.opener = self; // infow.location.href = url; infow.focus(name); } function newwindow (url,name){ if (infow && infow != undefined) infow.close(); var specs='width=400,height=300,resizable=yes,scrollbars=yes,status=0'; if (name == unknown) name = 'infow'; infow=window.open(url,name,specs); if (!infow) return; infow.opener = self; // infow.location.href = url; infow.focus(name); } function getinfotosubmit (infourl,formname,login) { formtosubmit=formname; if (login) newwindow(infourl,'Information'); else needlogin(infourl,'Information'); } function continua_ricerca (nome) { formtosubmit.nome.value= nome; formtosubmit.submit(); } function print_page (page) { var specs='width=700,height=400,resizable=yes,scrollbars=yes,status=0'; var infow=window.open('/stampa_brief.html','infow',specs); if (!infow) return; infow.focus(); } //FRANCESE + SPAGNOLO function print_libri (basket,language,page,tit1) { var url = '/stampa_libri.html'; if (language == 'en' || language == 'oc') url = '/print_libri.html'; if (language == 'fr' || language == 'af') url = '/imprimer_libri.html'; if (language == 'es' || language == 'as') url = '/imprimir_libri.html'; pagelibri = page; var specs='width=700,height=400,resizable=yes,scrollbars=yes,status=0'; var infow=window.open(url,'Books',specs); infow.focus(); } function print_schede (records,visrequest,dbname) { var specs='width=700,height=400,resizable=yes,scrollbars=yes,status=0'; dbname_full = dbname; var infow=window.open('/stampa_full.html','schede',specs); if (!infow) return; infow.focus(); } function email_schede (records,visrequest,dbname) { var specs='width=700,height=400,resizable=yes,scrollbars=yes,status=0'; html_email_full = get_rec_html(records,visrequest,dbname); text_email_full = get_rec_textual(records,visrequest,dbname); var infow=window.open('/email_schede.html','email',specs); if (!infow) return; infow.opener = self; infow.focus(); } function get_rec_textual (records,visrequest,dbname) { var strres = ''; visrequest = replace_char(unescape(visrequest),'',''); visrequest = replace_char(visrequest,"",''); visrequest = replace_char(visrequest,"",''); visrequest = replace_char(visrequest,"",''); strres = strres + 'Schede bibliografiche complete: '+ dbname + '\n\n\n'+ 'Ricerca: ' + visrequest + '\n\n'; for (var i=0; i< records.length; i++) { strres = strres + 'Scheda: ' + records[i].number + '\n\n' + unescape(records[i].txt); strres = strres + get_loc_txt(records[i].number,records[i].category,records[i].localizz); strres = strres + '\n\n'; } return escape(strres); } function get_rec_html (records,visrequest,dbname) { var strres = ''; strres = strres + 'Schede bibliografiche complete: '+ dbname + ''+ 'Ricerca: ' + unescape(visrequest) + '' + '' + 'Scheda: ' + records[i].number + '' + '' + '' + unescape(records[i].html) + '\n'; strres = strres + get_loc_html(records[i].number,records[i].category,records[i].localizz); strres = strres + ''; } strres = strres + '
Schede bibliografiche complete: '+ dbname + '
Ricerca: ' + unescape(visrequest) + '