Classes/ViewHelpers/ResultViewHelper.php
protected function catalogueLink($locationAll)
    {
        $linkElement = null;
        $URL = $locationAll['ch']['md-catalogue-url'][0]['values'][0];
        $targetName = $locationAll['attrs']['name'];

        if ($URL && $targetName) {
            $linkElement = $this->doc->createElement('a');
            $linkElement->setAttribute('href', $URL);
            $linkTitle = LocalizationUtility::translate('Im Katalog ansehen', 'Pazpar2');
            $linkElement->setAttribute('title', $linkTitle);
            $this->turnIntoNewWindowLink($linkElement);
            $linkElement->setAttribute('class', 'pz2-detail-catalogueLink');

            /* Try to localise catalogue name, fall back to original target name
                if no localisation is available */
            $linkText = LocalizationUtility::translate('catalogue-name-' . $targetName, 'Pazpar2');
            if ($linkText === null) {
                $linkText = $targetName;
            }
            $linkElement->appendChild($this->doc->createTextNode($linkText));
        }

        return $linkElement;
    }
protected function catalogueLink($locationAll)
    {
        $linkElement = null;
        $URL = $locationAll['ch']['md-catalogue-url'][0]['values'][0];
        $targetName = $locationAll['attrs']['name'];

        if ($URL && $targetName) {
            $linkElement = $this->doc->createElement('a');
            $linkElement->setAttribute('href', $URL);
            $linkTitle = LocalizationUtility::translate('Im Katalog ansehen', 'Pazpar2');
            $linkElement->setAttribute('title', $linkTitle);
            $this->turnIntoNewWindowLink($linkElement);
            $linkElement->setAttribute('class', 'pz2-detail-catalogueLink');

            /* Try to localise catalogue name, fall back to original target name
                if no localisation is available */
            $linkText = LocalizationUtility::translate('catalogue-name-' . $targetName, 'Pazpar2');
            if ($linkText === null) {
                $linkText = $targetName;
            }
            $linkElement->appendChild($this->doc->createTextNode($linkText));
        }

        return $linkElement;
    }
protected function catalogueLink ( $ locationAll ) { $ linkElement = null ; $ URL = $ locationAll [ 'ch' ] [ 'md-catalogue-url' ] [ 0 ] [ 'values' ] [ 0 ] ; $ targetName = $ locationAll [ 'attrs' ] [ 'name' ] ; if ( $ URL && $ targetName ) { $ linkElement = $ this -> doc -> createElement ( 'a' ) ; $ linkElement -> setAttribute ( 'href' , $ URL ) ; $ linkTitle = LocalizationUtility :: translate ( 'Im Katalog ansehen' , 'Pazpar2' ) ; $ linkElement -> setAttribute ( 'title' , $ linkTitle ) ; $ this -> turnIntoNewWindowLink ( $ linkElement ) ; $ linkElement -> setAttribute ( 'class' , 'pz2-detail-catalogueLink' ) ; /* Try to localise catalogue name, fall back to original target name
                if no localisation is available */ $ linkText = LocalizationUtility :: translate ( 'catalogue-name-' . $ targetName , 'Pazpar2' ) ; if ( $ linkText === null ) { $ linkText = $ targetName ; } $ linkElement -> appendChild ( $ this -> doc -> createTextNode ( $ linkText ) ) ; } return $ linkElement ; }
Returns a link for the current record that points to the catalogue page for that item.
@param array $locationAll
@return \DOMElement
Returns a link for the current record that points to the catalogue page for that item .