diff --git a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml index 2d0ee0873a6a18433bbf3cb6cd9148be4fd8a464..1ded1375862bec1766f02c9d851f6decd067692e 100644 --- a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml +++ b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml @@ -15,8 +15,11 @@ <div id="clearButtonText" style="display: none"><?=$this->translate('Clear') ?></div> </div> <? endforeach; ?> - <script type="text/javascript"> - loadVis('<?=$this->recommend->getFacetFields() ?>', '<?=$this->recommend->getSearchParams() ?>', path, <?=$this->recommend->getZooming() ?>); - </script> + <? + $js = "loadVis('" . $this->recommend->getFacetFields() . "', '" + . $this->recommend->getSearchParams() . "', path, " + . $this->recommend->getZooming() . ");"; + echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $js); + ?> <? endif; ?>