diff --git a/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml b/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml index 7e56b8ed61d83f53f068a40f158264ce98951537..9e36fdf0f814a2b0ba84958a79c37be6265fab1d 100644 --- a/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml +++ b/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml @@ -5,5 +5,5 @@ ?> <div id="EuropeanaDeferredRecommend"> <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs)?> + <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> </div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml b/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml index 7f023f0d739c1994a37161a5d2f41b3fb4c7c984..e3c0de443f1c9a42edca3f2b41bba42a15744889 100644 --- a/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml +++ b/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml @@ -5,5 +5,5 @@ ?> <div id="openLibraryDeferredRecommend"> <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs)?> + <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> </div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml index 9513241302a43b527ba3b92f7a2051c7cc59e78e..b167774124222c2846e499a679333602acfaeb79 100644 --- a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml +++ b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml @@ -21,7 +21,7 @@ $js = "loadVis('" . $this->recommend->getFacetFields() . "', '" . $this->recommend->getSearchParams() . "', path, " . $this->recommend->getZooming() . ");"; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $js); + echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $js, 'SET'); ?> <? endif; ?> diff --git a/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml b/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml index 80b00782cea49d8ec4c01b54e23fb40a72f217f1..ea9b1f32e2c298f2b7c321265afe3ffb4b630da5 100644 --- a/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml +++ b/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml @@ -5,5 +5,5 @@ ?> <div id="SummonDeferredRecommend"> <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs)?> + <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> </div> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/hierarchytree.phtml b/themes/blueprint/templates/RecordTab/hierarchytree.phtml index 9e4d4279b9d902b4f167fd1820e276b46350c906..3d41709667cb1e8b0a1e062b1f55f1275b7e87f1 100644 --- a/themes/blueprint/templates/RecordTab/hierarchytree.phtml +++ b/themes/blueprint/templates/RecordTab/hierarchytree.phtml @@ -11,7 +11,8 @@ . " fullHierarchy: " . ($this->tab->isFullHierarchyVisible() ? 'true' : 'false') . "\n" . "};\n" . "vufindString.showTree = \"" . $this->transEsc('hierarchy_show_tree') . "\";\n" - . "vufindString.hideTree = \"" . $this->transEsc('hierarchy_hide_tree') . "\";\n" + . "vufindString.hideTree = \"" . $this->transEsc('hierarchy_hide_tree') . "\";\n", + 'SET' ); $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'jsTree/jquery.jstree.js'); $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'hierarchyTree_JSTree.js'); diff --git a/themes/blueprint/templates/myresearch/account.phtml b/themes/blueprint/templates/myresearch/account.phtml index aed4a9336069001dc575a72a65919cee0b1fa649..c0a9fb37d9d7993f6b3bab3ebbff9a30d621a548 100644 --- a/themes/blueprint/templates/myresearch/account.phtml +++ b/themes/blueprint/templates/myresearch/account.phtml @@ -18,5 +18,5 @@ <? // Set up form validation: $initJs = '$(document).ready(function() { $(\'#accountForm\').validate(); });'; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $initJs); + echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $initJs, 'SET'); ?> diff --git a/themes/blueprint/templates/myresearch/login.phtml b/themes/blueprint/templates/myresearch/login.phtml index c72b5e23ca553b21e9834a07ccac93929c201f09..2d48e8b4746a377001a8c295af0adec6aad53794 100644 --- a/themes/blueprint/templates/myresearch/login.phtml +++ b/themes/blueprint/templates/myresearch/login.phtml @@ -9,7 +9,7 @@ // If we're in AJAX mode, load some extra Javascript inline: if ($this->layout()->getTemplate() == 'layout/lightbox') { - $this->inlineScript()->appendFile("rc4.js"); + echo $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'rc4.js', 'SET'); } // Convenience variables: @@ -44,7 +44,7 @@ <? // Set up form validation: $initJs = '$(document).ready(function() { $(\'#loginForm\').validate(); });'; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $initJs); + echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $initJs, 'SET'); ?> <? if ($account->supportsCreation()): ?> <a class="new_account" href="<?=$this->url('myresearch-account')?>"><?=$this->transEsc('Create New Account')?></a>