Template Filter during Publish Catalog

The Template functionality impacts Publish Catalog feature because the Publish Catalog does not publish any records, in XML, that are template records.

This has been achieved by a rule that is executed for each and every record during the Publish Catalog execution.

<constraint>
	<name>IsTemplateRecord</name>
	<description>Checks record is template </description>
	<condition>
		<and>
			<eq>
				<var>CATALOG_NAME</var>
				<const type="string">PRODUCT</const>
			</eq>
			<defined>
				<var>IsTemplate</var>
			</defined>
		</and>		
	</condition>
	<action>
		<check>
			<explanation>Record is template.</explanation>
			<!--reject record when condition is evaluated to false-->			
			<neq>
				<var>IsTemplate</var>
				<const type="boolean">true</const>
			</neq>
		</check>
	</action>
</constraint>
Note: The rule is executed only for the PRODUCT repository record as only these records can be defined as a template.