src/snac/server/neo4j/Neo4JUtil.php
/**
     * Search Holding Institutions
     *
     * Searches for a holding institution
     *
     * @param  string $name Beginning of constellation preferred name entry to search
     * @param  integer $count optional Number of results to return
     * @return string[]  Returns list of id-name pairs.
     */
Search Holding Institutions
Searches for a holding institution

@param  string $name Beginning of constellation preferred name entry to search
@param  integer $count optional Number of results to return
@return string[]  Returns list of id-name pairs.
Search Holding Institutions Searches for a holding institution @param string $name Beginning of constellation preferred name entry to search @param integer $count optional Number of results to return @return string [] Returns list of id - name pairs .
public function searchHoldingInstitutions($name, $count=0) {
        $realCount = \snac\Config::$SQL_LIMIT;
        if ($count > 0)
            $realCount = $count;
        $result = $this->connector->run("MATCH p=(:Resource)-[r:HIRELATION]->(a:Identity) where a.name_lower STARTS WITH {name} return DISTINCT a ORDER BY a.name limit $realCount;",
            [
                'name' => strtolower($name)
            ]
        );
        $matches = array();
        foreach ($result->getRecords() as $record) {
            array_push($matches, [
                "id" => $record->get("a")->value("id"),
                "term" => $record->get("a")->value("name")
            ]);
        }
        return $matches;
    }
public function searchHoldingInstitutions ( $ name , $ count = 0 ) { $ realCount = \ snac \ Config :: $ SQL_LIMIT ; if ( $ count > 0 ) $ realCount = $ count ; $ result = $ this -> connector -> run ( " MATCH p=(:Resource)-[r:HIRELATION]->(a:Identity) where a.name_lower STARTS WITH {name} return DISTINCT a ORDER BY a.name limit  $ realCount ; " , [ 'name' => strtolower ( $ name ) ] ) ; $ matches = array ( ) ; foreach ( $ result -> getRecords ( ) as $ record ) { array_push ( $ matches , [ " id " => $ record -> get ( " a " ) -> value ( " id " ) , " term " => $ record -> get ( " a " ) -> value ( " name " ) ] ) ; } return $ matches ; }
Search Holding Institutions
 Searches for a holding institution
Search Holding Institutions Searches for a holding institution
// List out relations