diff --git a/themes/blueprint/templates/search/advanced/layout.phtml b/themes/blueprint/templates/search/advanced/layout.phtml
index 5d398551995ab109de430cb4097c5132a9a8e34d..9dcf8c67fe3ff3d6c21bdc4638cb717180d864f9 100644
--- a/themes/blueprint/templates/search/advanced/layout.phtml
+++ b/themes/blueprint/templates/search/advanced/layout.phtml
@@ -21,9 +21,16 @@
     // Step 1: Define our search arrays so they are usuable in the javascript
     $this->headScript()->appendScript($this->render('search/advanced/globals.phtml'));
     // Step 2: Call the javascript to make use of the above
-    $this->headScript()->appendFile('advanced_search.js');
+    $this->headScript()->appendFile(
+        isset($this->advancedSearchJsOverride) ? $this->advancedSearchJsOverride : 'advanced_search.js'
+    );
     // Step 3: Build the page
-    $this->headScript()->appendScript($this->partial('search/advanced/build_page.phtml', array('searchDetails' => $searchDetails)));
+    $this->headScript()->appendScript(
+        $this->partial(
+            isset($this->buildPageOverride) ? $this->buildPageOverride : 'search/advanced/build_page.phtml',
+            array('searchDetails' => $searchDetails)
+        )
+    );
 ?>
 <form method="get" action="<?=$this->url($this->options->getSearchAction())?>" id="advSearchForm" name="searchForm" class="search">
   <div class="<?=$this->layoutClass('mainbody')?>">
diff --git a/themes/bootstrap/templates/search/advanced/layout.phtml b/themes/bootstrap/templates/search/advanced/layout.phtml
index a46b130461a131b39897f745e86d24f172dd2ce7..3b0310c44dcf4473e2b79683a089e64633389eab 100644
--- a/themes/bootstrap/templates/search/advanced/layout.phtml
+++ b/themes/bootstrap/templates/search/advanced/layout.phtml
@@ -22,9 +22,16 @@
   // Step 1: Define our search arrays so they are usuable in the javascript
   $this->headScript()->appendScript($this->render('search/advanced/globals.phtml'));
   // Step 2: Call the javascript to make use of the above
-  $this->headScript()->appendFile('advanced_search.js');
+  $this->headScript()->appendFile(
+    isset($this->advancedSearchJsOverride) ? $this->advancedSearchJsOverride : 'advanced_search.js'
+  );
   // Step 3: Build the page
-  $this->headScript()->appendScript($this->partial('search/advanced/build_page.phtml', array('searchDetails' => $searchDetails)));
+  $this->headScript()->appendScript(
+    $this->partial(
+      isset($this->buildPageOverride) ? $this->buildPageOverride : 'search/advanced/build_page.phtml',
+      array('searchDetails' => $searchDetails)
+    )
+  );
 ?>
 
 <?=$this->flashmessages()?>