code/pagetypes/BrowseCataloguePage.php
/**
     * This function parses and gets the full details of an DC format record.
     *
     * @param  DOMDocument $doc
     * @return Array
     */
This function parses and gets the full details of an DC format record.
@param  DOMDocument $doc
@return Array
This function parses and gets the full details of an DC format record . @param DOMDocument $doc @return Array
protected function parseDetailsDC($doc)
    {
        $mdArray = array();
        $response = $doc->getElementsByTagNameNS('http://www.opengis.net/cat/csw/2.0.2', "GetRecordByIdResponse");
        $metadata = $response->item(0)->getElementsByTagName("Record");
        $php = $this->XML2PHP($metadata->item(0));
        $return = [];
        foreach ([
            'dc:title' => 'MDTitle',
            'dc:identifier' => 'MDIdentifier',
        ] as $in => $out) {
            $return[$out] = $php[$in]['Value'];
            unset($php[$in]);
        }
        $return['Rows'] = ArrayList::create(array_values($php));
        return [$return];
    }
protected function parseDetailsDC ( $ doc ) { $ mdArray = array ( ) ; $ response = $ doc -> getElementsByTagNameNS ( 'http://www.opengis.net/cat/csw/2.0.2' , " GetRecordByIdResponse " ) ; $ metadata = $ response -> item ( 0 ) -> getElementsByTagName ( " Record " ) ; $ php = $ this -> XML2PHP ( $ metadata -> item ( 0 ) ) ; $ return = [ ] ; foreach ( [ 'dc:title' => 'MDTitle' , 'dc:identifier' => 'MDIdentifier' , ] as $ in => $ out ) { $ return [ $ out ] = $ php [ $ in ] [ 'Value' ] ; unset ( $ php [ $ in ] ) ; } $ return [ 'Rows' ] = ArrayList :: create ( array_values ( $ php ) ) ; return [ $ return ] ; }
This function parses and gets the full details of an DC format record.
This function parses and gets the full details of an DC format record .