@utilities.arguments_not_none<EOL><INDENT>def get_catalogs_by_query(self, catalog_query):<DEDENT>
<EOL>if self._catalog_session is not None:<EOL><INDENT>return self._catalog_session.get_catalogs_by_query(catalog_query)<EOL><DEDENT>query_terms = dict(catalog_query._query_terms)<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>result = collection.find(query_terms).sort('<STR_LIT>', DESCENDING)<EOL>return objects.CatalogList(result, runtime=self._runtime)<EOL>
Gets a list of ``Catalogs`` matching the given catalog query.

        arg:    catalog_query (osid.cataloging.CatalogQuery): the
                catalog query
        return: (osid.cataloging.CatalogList) - the returned
                ``CatalogList``
        raise:  NullArgument - ``catalog_query`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``catalog_query`` is not of this service
        *compliance: mandatory -- This method must be implemented.*