-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFulBorrowingInfoLetter.xsl
110 lines (109 loc) · 2.92 KB
/
FulBorrowingInfoLetter.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?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:template match="/">
<html>
<xsl:if test="notification_data/languages/string">
<xsl:attribute name="lang">
<xsl:value-of select="notification_data/languages/string"/>
</xsl:attribute>
</xsl:if>
<head>
<title>
<xsl:value-of select="notification_data/general_data/subject"/>
</title>
<xsl:call-template name="generalStyle"/>
</head>
<body>
<xsl:attribute name="style">
<xsl:call-template name="bodyStyleCss"/>
<!-- style.xsl -->
</xsl:attribute>
<xsl:call-template name="head"/>
<!-- header.xsl -->
<div class="messageArea">
<div class="messageBody">
<table role='presentation'>
<xsl:call-template name="salutation2"/>
<xsl:choose>
<xsl:when test="notification_data/success='true'">
<tr>
<td>@@renewed_loan@@</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td>@@not_renewed_loan@@</td>
</tr>
</xsl:otherwise>
</xsl:choose>
<tr>
<td>
<table>
<tr>
<td>
<xsl:call-template name="recordTitle"/>
<!-- recordTitle.xsl -->
</td>
</tr>
</table>
</td>
</tr>
<xsl:choose>
<xsl:when test="notification_data/success='true'">
<tr>
<td>
<strong>@@new_due_date@@: </strong>
<xsl:value-of select="notification_data/item_loan_due_date"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<!-- COMMENTING OUT REASON SECTION - I WANT TO SEE WHAT IT ACTUALLY PUTS IN THESE FIRST
<xsl:choose>
<xsl:when test="notification_data/note != ''">
<tr>
<td>
<strong>@@failure_reason@@: </strong>
<xsl:value-of select="notification_data/note"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
-->
<tr>
<td>
<strong>Due date: </strong>
<xsl:value-of select="notification_data/item_loan_due_date"/>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</table>
<br/>
<table role='presentation'>
<tr>
<td>@@sincerely@@</td>
</tr>
<tr>
<td>
@@department@@
<br/>
Carleton University Library
</td>
</tr>
</table>
</div>
</div>
<xsl:call-template name="ILLFooter"/>
<xsl:call-template name="AFNAccount"/>
<!-- footer.xsl -->
</body>
</html>
</xsl:template>
</xsl:stylesheet>