Skip to content

Commit

Permalink
CourtesyLetter - Remove unused template includes, change text, remove…
Browse files Browse the repository at this point in the history
… unused column
  • Loading branch information
cudevmaxwell committed Nov 29, 2021
1 parent 2f45c61 commit d722bd1
Showing 1 changed file with 46 additions and 41 deletions.
87 changes: 46 additions & 41 deletions CourtesyLetter.xsl
@@ -1,24 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl"/>
<xsl:include href="senderReceiver.xsl"/>
<xsl:include href="mailReason.xsl"/>
<xsl:include href="footer.xsl"/>
<xsl:include href="style.xsl"/>
<xsl:include href="recordTitle.xsl"/>
<xsl:include href="header.xsl" />
<xsl:include href="footer.xsl" />
<xsl:include href="style.xsl" />
<xsl:template match="/">
<html>
<head>
<xsl:call-template name="generalStyle"/>
<xsl:call-template name="generalStyle" />
<!-- style.xsl -->
</head>
<body>
<xsl:attribute name="style">
<xsl:call-template name="bodyStyleCss"/> <!-- style.xsl -->
<xsl:call-template name="bodyStyleCss" />
<!-- style.xsl -->
</xsl:attribute>
<xsl:call-template name="head"/> <!-- header.xsl -->
<br/>
<xsl:call-template name="senderReceiver"/> <!-- SenderReceiver.xsl -->
<br/>
<xsl:call-template name="head" />
<!-- header.xsl -->
<div class="messageArea">
<div class="messageBody">
<!-- AFN CODE -->
Expand Down Expand Up @@ -73,19 +70,19 @@
<xsl:for-each select="notification_data/item_loans/item_loan">
<tr>
<td>
<xsl:value-of select="title"/>
<xsl:value-of select="title" />
</td>
<td>
<xsl:value-of select="description"/>
<xsl:value-of select="description" />
</td>
<td>
<xsl:value-of select="author"/>
<xsl:value-of select="author" />
</td>
<td>
<xsl:value-of select="due_date"/>
<xsl:value-of select="due_date" />
</td>
<td>
<xsl:value-of select="library_name"/>
<xsl:value-of select="library_name" />
</td>
</tr>
</xsl:for-each>
Expand Down Expand Up @@ -132,19 +129,19 @@
<xsl:for-each select="notification_data/item_loans/item_loan">
<tr>
<td>
<xsl:value-of select="title"/>
<xsl:value-of select="title" />
</td>
<td>
<xsl:value-of select="description"/>
<xsl:value-of select="description" />
</td>
<td>
<xsl:value-of select="author"/>
<xsl:value-of select="author" />
</td>
<td>
<xsl:value-of select="due_date"/>
<xsl:value-of select="due_date" />
</td>
<td>
<xsl:value-of select="library_name"/>
<xsl:value-of select="library_name" />
</td>
</tr>
</xsl:for-each>
Expand All @@ -160,58 +157,66 @@
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
We would like to remind you that you have library materials that are due shortly. Please login to your Library Account to check the due dates and renew materials if required for a longer period. If the material has been requested by another patron you will have to return the material before the due date.
Hi,
</td>
</tr>
<tr>
<td>
Materials can be returned at the MacOdrum Library or at any university in Ontario.
It looks like your items are due soon. If you still need them, please login to your
<a href="https://ocul-crl.primo.exlibrisgroup.com/discovery/login?vid=01OCUL_CRL:CRL_DEFAULT">Library Account</a>
to renew them or reach out to us and we’ll see what we can do.
</td>
</tr>
<tr>
<td>
Otherwise, items can be returned at MacOdrum Library or at any university in Ontario.
</td>
</tr>
<tr>
<td>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<xsl:call-template name="mainTableStyleCss"/> <!-- style.xsl -->
<xsl:call-template name="mainTableStyleCss" />
<!-- style.xsl -->
</xsl:attribute>
<tr>
<th>@@title@@</th>
<th>@@description@@</th>
<th>@@author@@</th>
<th>@@due_date@@</th>
</tr>
<xsl:for-each select="notification_data/item_loans/item_loan">
<tr>
<td>
<xsl:value-of select="title"/>
<xsl:value-of select="title" />
</td>
<td>
<xsl:value-of select="description"/>
<xsl:value-of select="author" />
</td>
<td>
<xsl:value-of select="author"/>
</td>
<td>
<xsl:value-of select="due_date"/>
<xsl:value-of select="due_date" />
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
@@additional_info_1@@
<br/>
@@additional_info_2@@
<br/>
<table>
<tr>
<td>For more information please visit your <a href="https://ocul-crl.primo.exlibrisgroup.com/discovery/login?vid=01OCUL_CRL:CRL_DEFAULT">Library Account</a>.</td>
<td>
@@sincerely@@
</td>
</tr>
<tr>
<td>If you have any questions please contact a staff member from Access Services at <a href="mailto:LibCirc@cunet.carleton.ca">LibCirc@cunet.carleton.ca</a> or 613-520-2600 x2734.</td>
<td>
@@department@@
<br />
Carleton University Library
</td>
</tr>
</table>
@@additional_info_1@@
<br />
@@additional_info_2@@
<br />
</xsl:otherwise>
</xsl:choose>
<!-- END OF AFN CODE -->
Expand All @@ -223,4 +228,4 @@
</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit d722bd1

Please sign in to comment.