search.controllers.util module

Controller helpers.

search.controllers.util.catch_underscore_syntax(term)[source]

Rewrite author name strings in surname_f format to use commas.

Return type:Tuple[str, bool]
search.controllers.util.does_not_start_with_wildcard(form, field)[source]

Check that value does not start with a wildcard character.

Return type:None
search.controllers.util.has_balanced_quotes(form, field)[source]

Check that value has balanced (paired) quotes.

Return type:None
search.controllers.util.paginate(query, data)[source]

Update pagination parameters on a Query from request parameters.

Parameters:
Returns:

Return type:

Query

Return type:

Query

search.controllers.util.strip_white_space(value)[source]

Strip whitespace from form input.

Return type:str