Advanced search form Question 2

Hi ,

I have a similar question than Kupke (here : Advanced Search Question)
I wonder why the advanced search form is not simply a replication of the “side advanced search form” which is way more efficient, precise and less misleading to anyone searching content in a website.

Here is the side search form which really works (it searches for all types of content : items, exhibits, files, simple pages… and you can filter by them) :

How can I replicated this simple and clear form in the advanced search? and then just add some other filters (like exhibits)… For now I had to narrow my advanced search to a full text search OR a search by exhibits, but no way to link them together) :

with :

if (!empty($formActionUri)):
    $formAttributes['action'] = $formActionUri;
    $formAttributes['action'] = url(array('controller' => 'items',
                                          'action' => 'browse'));
$formAttributes['method'] = 'GET';

<form <?php echo tag_attributes($formAttributes); ?>>

Ou chercher par exposition :

    <?php fire_plugin_hook('public_items_search', array('view' => $this)); ?>
        <?php if (!isset($buttonText)) {
            $buttonText = __('Search for items');
        } ?>
        <input type="submit" class="submit" name="submit_search" id="submit_search_advanced" value="<?php echo $buttonText ?>">


I would rather have the full side simple search form instead. But I don’t know where to find it…

If anyone can help, It would be wonderfull …

Thanks !

In the meantime I found a pseudo-solution with the CSS :

I erased everything from my themes/items/search-form.php, to keep only this :

if (!empty($formActionUri)):
    $formAttributes['action'] = $formActionUri;
    $formAttributes['action'] = url(array('controller' => 'items',
                                          'action' => 'browse'));
$formAttributes['method'] = 'GET';

<form <?php echo tag_attributes($formAttributes); ?>>


<?php echo js_tag('items-search'); ?>
<script type="text/javascript">
    jQuery(document).ready(function () {

And here is my new themes/default/search.php:

$pageTitle = __('Search Items');
echo head(array('title' => $pageTitle,
           'bodyclass' => 'items advanced-search'));

<h1><?php echo $pageTitle; ?></h1>

<nav class="items-nav navigation secondary-nav">
    <?php echo public_nav_items(); ?>

<h3>Rechercher dans la médiathèque</h3>

<div class="field">
    <div class="two columns alpha">
        <label for="exhibit">Recherche full-text avec possibilité de filtrer par type de contenu</label>
      <div class="five columns omega inputs"><?php echo search_form(array('show_advanced' => true)); ?></div>

<?php echo $this->partial('items/search-form.php',
    array('formAttributes' =>
        array('id' => 'advanced-search-form'))); ?>

<?php echo foot(); ?>

Then I worked on the CSS to make my hidden side advanced-search form appear on the main advanced search page (items/search), modifying the #advanced-form CSS style, line 1664 with a display: block; instead of a display:none;

and then adding this new .field button CSS style code (notice : margin-top: -22px;):

.field button,
input[type="button"] {
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-family: 'PT Serif', serif;
  font-size: 16px;
  line-height: 24px;
  outline: 0;
  overflow: visible;
  padding: 3px 10px;
  width: auto;
  /* IE7 */
  margin-top: -22px;
  *padding-top: 2px;
  *padding-bottom: 0px;

Which gives someting like this:

But still no possibility to add new filters though :frowning:

Hi Sam,

thanks for sharing your knowledge as I also try to adapt the Avanced Search and to change the labels of the research icons.

I am on Omeka-S and not Omeka classic but as I am a very beginner in Omeka, I wonder where I can find the ccs and php files to change it ? is it directly in the plugin Advanced Search or in the core of Omeka installation ?
Many thanks if you can help me,