function searchSolr(query, coreArea, start) {
    var base = SOLR_CONFIG["server"];
    var fields = ["title",
                  "origin",
                  "datePublished",
                  "resourceMap"].toString();
    var params = "fl=" + fields + "&defType=edismax&wt=json";
    var limit = "&rows=" + SOLR_CONFIG["limit"];
    if (start === undefined) start = "0";
    start = "&start=" + start;
    query = "&q=" + SOLR_CONFIG["filter"] + " " + query;
    if (coreArea && coreArea !== "any") {
        params += '&fq=keywords:"' + coreArea + '"';
    }
    var url = base + params + limit + start + query;
    showUrl(url);
    show_loading(true);
    makeCorsRequest(url, successCallback, errorCallback);
}
// Passes search URL and callbacks to CORS function
Passes search URL and callbacks to CORS function
Passes search URL and callbacks to CORS function
function searchSolr(query, coreArea, start) {
    var base = SOLR_CONFIG["server"];
    var fields = ["title",
                  "origin",
                  "datePublished",
                  "resourceMap"].toString();
    var params = "fl=" + fields + "&defType=edismax&wt=json";
    var limit = "&rows=" + SOLR_CONFIG["limit"];
    if (start === undefined) start = "0";
    start = "&start=" + start;
    query = "&q=" + SOLR_CONFIG["filter"] + " " + query;
    if (coreArea && coreArea !== "any") {
        params += '&fq=keywords:"' + coreArea + '"';
    }
    var url = base + params + limit + start + query;
    showUrl(url);
    show_loading(true);
    makeCorsRequest(url, successCallback, errorCallback);
}
function searchSolr ( query , coreArea , start ) { var base = SOLR_CONFIG [ "server" ] ; var fields = [ "title" , "origin" , "datePublished" , "resourceMap" ] . toString ( ) ; var params = "fl=" + fields + "&defType=edismax&wt=json" ; var limit = "&rows=" + SOLR_CONFIG [ "limit" ] ; if ( start === undefined ) start = "0" ; start = "&start=" + start ; query = "&q=" + SOLR_CONFIG [ "filter" ] + " " + query ; if ( coreArea && coreArea !== "any" ) { params += '&fq=keywords:"' + coreArea + '"' ; } var url = base + params + limit + start + query ; showUrl ( url ) ; show_loading ( true ) ; makeCorsRequest ( url , successCallback , errorCallback ) ; }
Passes search URL and callbacks to CORS function
Passes search URL and callbacks to CORS function