def make_query(self, **kw):
query = kw.pop("<STR_LIT>", {})<EOL>query.update(self.get_request_query())<EOL>query.update(self.get_custom_query())<EOL>query.update(self.get_keyword_query(**kw))<EOL>sort_on, sort_order = self.get_sort_spec()<EOL>if sort_on and "<STR_LIT>" not in query:<EOL><INDENT>query.update({"<STR_LIT>": sort_on})<EOL><DEDENT>if sort_order and "<STR_LIT>" not in query:<EOL><INDENT>query.update({"<STR_LIT>": sort_order})<EOL><DEDENT>logger.info("<STR_LIT>".format(<EOL>query, self.catalog))<EOL>return query<EOL>
create a query suitable for the catalog