src/snac/server/neo4j/Neo4JUtil.php
/**
     * Check Holding Institution Status
     *
     * Checks whether the given constellation is a holding institution and sets a constellation flag
     *
     * @param  \snac\data\Constellation $constellation Constellation to search
     * @return boolean  Returns true if it's a holding repository, false otherwise
     */
Check Holding Institution Status
Checks whether the given constellation is a holding institution and sets a constellation flag

@param  \snac\data\Constellation $constellation Constellation to search
@return boolean  Returns true if it's a holding repository, false otherwise
Check Holding Institution Status Checks whether the given constellation is a holding institution and sets a constellation flag @param \ snac \ data \ Constellation $constellation Constellation to search @return boolean Returns true if it ' s a holding repository false otherwise
public function checkHoldingInstitutionStatus(&$constellation) {
        $result = $this->connector->run("RETURN EXISTS((:Resource)-[:HIRELATION]-(:Identity {id: {icid}}));",
            [
                'icid' => $constellation->getID()
            ]
        );
        $isHoldingInstitution = $result->firstRecord()->values()[0];
        if ($isHoldingInstitution === true) {
                $constellation->setFlag("holdingRepository");
                return true;
        }
        return false;
    }
public function checkHoldingInstitutionStatus ( & $ constellation ) { $ result = $ this -> connector -> run ( " RETURN EXISTS((:Resource)-[:HIRELATION]-(:Identity {id: {icid}})); " , [ 'icid' => $ constellation -> getID ( ) ] ) ; $ isHoldingInstitution = $ result -> firstRecord ( ) -> values ( ) [ 0 ] ; if ( $ isHoldingInstitution === true ) { $ constellation -> setFlag ( " holdingRepository " ) ; return true ; } return false ; }
Check Holding Institution Status
 Checks whether the given constellation is a holding institution and sets a constellation flag
Check Holding Institution Status Checks whether the given constellation is a holding institution and sets a constellation flag