Skip to content
Snippets Groups Projects
Commit 2fe1c789 authored by Demian Katz's avatar Demian Katz
Browse files

Allow some advanced search elements to be overridden.

- Will be used by forthcoming EDS implementation.
parent 286582f8
No related merge requests found
...@@ -21,9 +21,16 @@ ...@@ -21,9 +21,16 @@
// Step 1: Define our search arrays so they are usuable in the javascript // Step 1: Define our search arrays so they are usuable in the javascript
$this->headScript()->appendScript($this->render('search/advanced/globals.phtml')); $this->headScript()->appendScript($this->render('search/advanced/globals.phtml'));
// Step 2: Call the javascript to make use of the above // 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 // 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"> <form method="get" action="<?=$this->url($this->options->getSearchAction())?>" id="advSearchForm" name="searchForm" class="search">
<div class="<?=$this->layoutClass('mainbody')?>"> <div class="<?=$this->layoutClass('mainbody')?>">
......
...@@ -22,9 +22,16 @@ ...@@ -22,9 +22,16 @@
// Step 1: Define our search arrays so they are usuable in the javascript // Step 1: Define our search arrays so they are usuable in the javascript
$this->headScript()->appendScript($this->render('search/advanced/globals.phtml')); $this->headScript()->appendScript($this->render('search/advanced/globals.phtml'));
// Step 2: Call the javascript to make use of the above // 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 // 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()?> <?=$this->flashmessages()?>
......
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