diff --git a/themes/bootstrap3/templates/breadcrumbs/multi.phtml b/themes/bootstrap3/templates/breadcrumbs/multi.phtml
index a5921e7a5f7ad94866660208656d228f9f05ad52..dfa9d17bf61fb54a3a1d6e9d63f5ee0a0fca92ae 100644
--- a/themes/bootstrap3/templates/breadcrumbs/multi.phtml
+++ b/themes/bootstrap3/templates/breadcrumbs/multi.phtml
@@ -17,4 +17,5 @@
 <?php else: ?>
   <li class="active" title="<?=$this->layout()->title ?>"><?=$this->truncate($this->layout()->title, 100) ?></li>
 <?php endif; ?>
-<script>$('.dropdown-toggle').dropdown()</script>
+<?php $dropdownToggle = '$(\'.dropdown-toggle\').dropdown()'; ?>
+<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $dropdownToggle, 'SET');
diff --git a/themes/bootstrap3/templates/search/reservessearch.phtml b/themes/bootstrap3/templates/search/reservessearch.phtml
index 19f5354c80466a75e0327aa90b2c6709d6eda8fb..828dfed7b91f3f0d87d7e5361ec5677761fa99ca 100644
--- a/themes/bootstrap3/templates/search/reservessearch.phtml
+++ b/themes/bootstrap3/templates/search/reservessearch.phtml
@@ -18,7 +18,7 @@
     <input id="reservesSearchForm_lookfor" type="text" name="lookfor" size="40" value="<?=$this->escapeHtmlAttr($reservesLookfor)?>" <?=$this->searchOptions('SolrReserves')->autocompleteEnabled() ? ' class="autocomplete searcher:SolrReserves type:Reserves"' : ''?> />
     <input class="btn btn-primary" type="submit" name="submit" value="<?=$this->transEsc("Find")?>"/>
   </form>
-  <script type="text/javascript">$("#reservesSearchForm_lookfor").focus()</script>
+  <?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, "$('#reservesSearchForm_lookfor').focus()", 'SET')?>
 
   <div class="resulthead">
     <div class="pull-left flip">