def csw_query(identifier):
    """
    Create CSW GetRecordById query for a given identifier.
    """
    
    return f'''
<csw:GetRecordById xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" outputSchema="http://www.isotc211.org/2005/gmd">
  <csw:Id>{identifier}</csw:Id>
  <csw:ElementSetName>full</csw:ElementSetName>
</csw:GetRecordById>
'''