Skip to content
Snippets Groups Projects
Commit 561afd75 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Fix hierarchy translations for modal.

parent a4949c84
No related merge requests found
......@@ -8,13 +8,14 @@
\Zend\View\Helper\HeadScript::SCRIPT,
"var hierarchySettings = {\n"
. " lightboxMode: " . ($this->layout()->getTemplate() == 'layout/lightbox' ? 'true' : 'false') . ",\n"
. " fullHierarchy: " . ($this->tab->isFullHierarchyVisible() ? 'true' : 'false') . "\n"
. "};\n",
. " fullHierarchy: false\n" // . ($this->tab->isFullHierarchyVisible() ? 'true' : 'false') . "\n"
. "};\n"
. "VuFind.addTranslations({\n"
. " 'showTree': '" . $this->transEsc('hierarchy_show_tree') . "',\n"
. " 'hideTree': '" . $this->transEsc('hierarchy_hide_tree') . "'}\n"
. ");\n",
'SET'
);
$this->jsTranslations()->addStrings(
['showTree' => 'hierarchy_show_tree', 'hideTree' => 'hierarchy_hide_tree']
);
$this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'vendor/jsTree/jstree.min.js');
$this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'hierarchyTree.js');
echo $this->inlineScript();
......
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