Different Print Templates by item type for Loan Receipt Letter
It would be great to be able to create different templates for sending out the email when a user checks out an item. Our IT department wants to send out a "Terms of Use" for when a user checks out equipment. Currently, if we were to add that to our letters, we have to place that for ALL check outs.
-
Anonymous
commented
Check the XML of the letter and and find a field that identifies equimpent, e.g. the field "material_type" in the item and include a if-statement to the XLS of the letter:
<xsl:if test="/notification_data/items/item_loan/material_type = 'EQUIPMENT'">
<p>
<strong>Terms of Use for Equipment</strong>
<ul>
<li><strong>Term 1</strong><br />Text ...</li>
<li><strong>Term 2</strong><br />Text ...</li>
</ul>
</p>
</xsl:if>