def check_iso_mcp(input_file):
	"""
	Checks if MCP conversion is allowed for the given file.

	MCP files are only created if the DIF has an ISO Topic Category of
	"OCEANS".

	Also makes sure the record is not private.
	"""

	allowed = False

	# Cannot use the following check:
	# oceans_tag = '<ISO_Topic_Category>OCEANS</ISO_Topic_Category>'
	# This is because some of these tags include a "uuid" attribute, so they
	# will not be marked OK for conversion.
	oceans_tag = '>OCEANS</ISO_Topic_Category>'

	private_tag = '<Private>TRUE</Private>'

	with open(input_file) as r:
		content = r.read()

		if 0 <= content.find(oceans_tag):
			allowed = True

		if 0 <= content.find(private_tag):
			allowed = False

	return allowed