Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
pazpar2
typo3-pazpar2
Commits
a2d4c33e
Commit
a2d4c33e
authored
Jun 08, 2012
by
ssp
Browse files
suppress display of parent link for articles
parent
fc9c733f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Classes/ViewHelpers/ResultViewHelper.php
View file @
a2d4c33e
...
...
@@ -610,7 +610,7 @@ private function locationDetails ($result) {
// $this->cleanISBNs(); not implemented in PHP version
$this
->
appendInfoToContainer
(
$this
->
detailInfoItem
(
'isbn'
,
$location
),
$detailsData
);
$this
->
appendInfoToContainer
(
$this
->
electronicURLs
(
$location
,
$result
),
$detailsData
);
$this
->
appendInfoToContainer
(
$this
->
parentLink
(
$locationAll
),
$detailsData
);
$this
->
appendInfoToContainer
(
$this
->
parentLink
(
$locationAll
,
$result
),
$detailsData
);
$this
->
appendInfoToContainer
(
$this
->
catalogueLink
(
$locationAll
),
$detailsData
);
// Only append location information if additional details exist
...
...
@@ -831,16 +831,18 @@ private function electronicURLs ($location, $result) {
/**
* Returns DOM
element
s linking to the catalogue page of the current
* Returns DOM
node
s linking to the catalogue page of the current
* record’s parent record, plus spacing.
* @param type $locationAll
* @return type
* @param Array $locationAll
* @param Array $result
* @return NULL|Array of DOMNodes
*/
private
function
parentLink
(
$locationAll
)
{
$
result
=
NULL
;
private
function
parentLink
(
$locationAll
,
$result
)
{
$
nodes
=
NULL
;
$URL
=
$locationAll
[
'ch'
][
'md-parent-catalogue-url'
][
0
][
'values'
][
0
];
if
(
$URL
&&
$result
[
'md-medium'
][
0
][
'values'
][
0
]
!==
'article'
)
{
debugster
(
$result
);
if
(
$URL
)
{
$linkElement
=
$this
->
doc
->
createElement
(
'a'
);
$linkElement
->
setAttribute
(
'href'
,
$URL
);
$linkTitle
=
Tx_Extbase_Utility_Localization
::
translate
(
'enthaltendes Werk im Katalog ansehen'
,
'Pazpar2'
);
...
...
@@ -851,10 +853,10 @@ private function parentLink ($locationAll) {
$linkText
=
Tx_Extbase_Utility_Localization
::
translate
(
'enthaltendes Werk'
,
'Pazpar2'
);
$linkElement
->
appendChild
(
$this
->
doc
->
createTextNode
(
$linkText
));
$
result
=
array
(
$linkElement
,
$this
->
doc
->
createTextNode
(
' '
));
$
nodes
=
array
(
$linkElement
,
$this
->
doc
->
createTextNode
(
' '
));
}
return
$
result
;
return
$
nodes
;
}
...
...
pz2-client
@
440cc9c8
Compare
6375e266
...
440cc9c8
Subproject commit
6375e26661937cab94abfe836d45805bbfe8b36a
Subproject commit
440cc9c80833619b60aeae08b8bfdc616243683c
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment