src/snac/client/webui/WebUIExecutor.php
/**
     * Search Constellations
     *
     * This method requests a search from the server, then returns its response as JSON directly
     * back to the web client.  This allows the client to update the search page by AJAX
     * rather than needing to reload the page.
     *
     * @param string[] $input Post/Get inputs from the webui
     * @return string[] The web ui's response to the client (array ready for json_encode)
     */
Search Constellations
This method requests a search from the server, then returns its response as JSON directly
back to the web client.  This allows the client to update the search page by AJAX
rather than needing to reload the page.

@param string[] $input Post/Get inputs from the webui
@return string[] The web ui's response to the client (array ready for json_encode)
Search Constellations This method requests a search from the server then returns its response as JSON directly back to the web client . This allows the client to update the search page by AJAX rather than needing to reload the page . @param string [] $input Post / Get inputs from the webui @return string [] The web ui ' s response to the client ( array ready for json_encode )
public function searchConstellations(&$input) {
        if (!isset($input["term"]))
            $input["term"] = "";
        if (!isset($input["entity_type"]))
            $input["entity_type"] = "";
        if (isset($input["q"])) {
            $input["term"] = $input["q"];
        }
        if (!isset($input["biog_hist"]))
            $input["biog_hist"] = null;
        $input["facets"] = array();
        if (isset($input["subject"])) {
            $input["facets"]["subject"] = $input["subject"];
        }
        if (isset($input["occupation"])) {
            $input["facets"]["occupation"] = $input["occupation"];
        }
        if (isset($input["activity"])) {
            $input["facets"]["activity"] = $input["activity"];
        }
        $results = $this->performNameSearch($input);
        if (isset($results["results"])) {
            $results["query"] = $input["term"];
            $results["entityType"] = $input["entity_type"];
            $results["searchType"] = $results["search_type"];
            $results["facets"] = $input["facets"];
            $results["aggregations"] = $results["aggregations"];
            $results["biog_hist"] = $input["biog_hist"];
        }
        return $results;
    }
public function searchConstellations ( & $ input ) { if ( ! isset ( $ input [ " term " ] ) ) $ input [ " term " ] = " " ; if ( ! isset ( $ input [ " entity_type " ] ) ) $ input [ " entity_type " ] = " " ; if ( isset ( $ input [ " q " ] ) ) { $ input [ " term " ] = $ input [ " q " ] ; } if ( ! isset ( $ input [ " biog_hist " ] ) ) $ input [ " biog_hist " ] = null ; $ input [ " facets " ] = array ( ) ; if ( isset ( $ input [ " subject " ] ) ) { $ input [ " facets " ] [ " subject " ] = $ input [ " subject " ] ; } if ( isset ( $ input [ " occupation " ] ) ) { $ input [ " facets " ] [ " occupation " ] = $ input [ " occupation " ] ; } if ( isset ( $ input [ " activity " ] ) ) { $ input [ " facets " ] [ " activity " ] = $ input [ " activity " ] ; } $ results = $ this -> performNameSearch ( $ input ) ; if ( isset ( $ results [ " results " ] ) ) { $ results [ " query " ] = $ input [ " term " ] ; $ results [ " entityType " ] = $ input [ " entity_type " ] ; $ results [ " searchType " ] = $ results [ " search_type " ] ; $ results [ " facets " ] = $ input [ " facets " ] ; $ results [ " aggregations " ] = $ results [ " aggregations " ] ; $ results [ " biog_hist " ] = $ input [ " biog_hist " ] ; } return $ results ; }
Search Constellations
 This method requests a search from the server, then returns its response as JSON directly
 back to the web client.
Search Constellations This method requests a search from the server then returns its response as JSON directly back to the web client .