Skip to content
Snippets Groups Projects
Commit f2237271 authored by André Lahmann's avatar André Lahmann
Browse files

- fixed missing title in hierarchyTree if "title_in_hierarchy" is empty...

- fixed missing title in hierarchyTree if "title_in_hierarchy" is empty (optional index field, was introduced in https://github.com/vufind-org/vufind/commit/d042503cd1b09247effd1f436d9119fc770862c5)
parent 98eee39d
No related merge requests found
......@@ -165,14 +165,15 @@ class Solr extends AbstractBase
++$count;
if ($sorting) {
$positions = $current->getHierarchyPositionsInParents();
$titles = $current->getTitlesInHierarchy();
if (isset($positions[$parentID])) {
$sequence = $positions[$parentID];
}
$title = isset($titles[$parentID])
? $titles[$parentID] : $current->getTitle();
}
$titles = $current->getTitlesInHierarchy();
$title = isset($titles[$parentID])
? $titles[$parentID] : $current->getTitle();
$this->debug("$parentID: " . $current->getUniqueID());
$xmlNode = '';
$isCollection = $current->isCollection() ? "true" : "false";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment