Modify the solr configuration to allow dynamic fields for booleans and dates (to allow plugins to index their own date and boolean fields)
Allow a plugin to access the indexer's @@resolved_attributes so it can register a further relationship to resolve when indexing
Move Import Jobs and Reports under the repository menu to allow more room for the advanced search
Port the public advanced search behaviour to the staff frontend
Allow advance search field rows to be added and removed
Make addition of advanced search button to the search input comply with the proper bootstrap input-append DOM structure

Also add I18n'd titles to the search buttons in the navbar.
Fix staff advanced search when more than two queries
Introduce staff_field_query schema to override the values listed for the field enum in the staff interface. Both the field_query (public interface) and staff_field_query (staff interface) now refer to their own dynamic enum when populating the field lists
Introduce Selenium tests for the advanced search interface.

Use SecureRandom when generating unique strings for test data as time and processid was not always unique.

When checking if an element is not present, if it is in the DOM it should be hidden.
Move FrontendEnumSource into common so it can be shared with both the staff and public Rails apps; Fix an exception in the public app where it had no enum_source specified
Make changes after review:
 - rename frontend_enum_source.rb to client_enum_source.rb
 - refactor advanced query building logic into a common class so can be shared between public and staff controllers
 - remove silly whitespace
 - increment migration script number to 32 after rebase
Add schemas and amend the advanced search to allow for date and boolean queries

Allow negation of first field of staff advanced search

Clean up staff advanced search fields, reorder so they read better, and also prettify with some CSS

And fix I18n for suppressed in the boolean field list.

Fix date operation not sticking

Create enumerations for the date and boolean field values (provide some default entries)

Initialize a combobox for field lists with items greater than the min combobox limit

Modify backend search to allow for date ranges from the advanced search form (boolean searches follow same syntax as text searches)

Introduce moment.js to validate dates on the fly in the search date field (it was disable the form submission if the date is invalid)

Allow filter to be applied to results set from an advanced search (params are retained in the filter links)
After review, fix AdvancedQueryBuilder to allow the text field_query type to be set by the controller that instantiates it - as the staff and public use different types
Merge pull request #773 from hudmol/staff-advanced-search-merge

Advanced Search for the staff interface