function open_page_pubblicazioni(n)
{
    
    BI.setPage_pubblicazioni(show_pubblicazioni,n);
}

function show_pubblicazioni()
{
    retrieveURL("./Controller.do?query=__PRESSOL_PUBBLICAZIONE_REFRESH");
}

function open_page_pubblicazioni_collaborazioni(n)
{
    BI.setPage_pubblicazioni(show_pubblicazioniCol,n);
}

function show_pubblicazioniCol()
{
    retrieveURL("./Controller.do?query=__PRESSOL_COLLABORAZIONI_REFRESH");
}

/* INI ORIGINALE */
function ordinaPubblicazioni(orderByAutore) {
    BI.setOrderByAutore(  ordinaPubblicazioni_do  ,orderByAutore );
}
/* END ORIGINALE */

function ordinaPubblicazioni_do() { 
var param='<autore>' + document.getElementById("autore").value + '</autore>'+'<titolo>' +document.getElementById("titolo").value + '</titolo>';
 BI.setBookSearchParameterDWR(param );    
  retrieveURL('./Controller.do?query=__PRESSOL_PUBBLICAZIONE_TEMPLATE_X_AUTORE'); 
//retrieveURL("./Controller.do?query=__PRESSOL_PUBBLICAZIONE_TEMPLATE");

}

function ordinaPubblicazioni_NEW(orderByAutore) {
//alert("NEW   ordinaPubblicazioni");
var param='<autore>' + document.getElementById("autore").value + '</autore>'+'<titolo>' +document.getElementById("titolo").value + '</titolo>';
 
document.location.href="./Controller.do?query=__PRESSOL_PUBBLICAZIONE_TEMPLATE_X_AUTORE&param="+param+"&order="+orderByAutore+"&jscr=0&tipo=1";
 
}


function ordinaPubblicazioniXCollaboratore(orderByAutore) {
    BI.setOrderByAutore( function () 
                         {
                            retrieveURL("./Controller.do?query=__PRESSOL_PUBBLICAZIONE_COLLABORAZIONI");
                         }
                ,orderByAutore );
}

function ordinaPubblicazioniXRicerca(orderByAutore) {
    BI.setOrderByAutore( function () 
                         {
                            retrieveURL("./Controller.do?query=__PRESSOL_BOOK_SEARCH");
                         }
                ,orderByAutore );
}