-
Notifications
You must be signed in to change notification settings - Fork 1
/
FulUserBorrowingActivityLetter.xsl
168 lines (166 loc) · 6.08 KB
/
FulUserBorrowingActivityLetter.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="utf-8"?>
<!--
Modified on 20160707 by Wee Hiong
1. Add do-not-reply message to the footer.
Modified on 20151222 by Wee Hiong
1. Remove sender's address as contact information is now inside the header.
2. Add link to library account.
3. Remove unnecessary bolds.
Modified on 20151116 by Wee Hiong
1. Remove footer.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl" />
<xsl:include href="mailReason.xsl" />
<xsl:include href="footer.xsl" />
<xsl:include href="style.xsl" />
<xsl:template match="/">
<html>
<head>
<xsl:call-template name="generalStyle" />
</head>
<body>
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="bodyStyleCss" />
</xsl:attribute>
<!-- header.xsl -->
<xsl:call-template name="head" />
<br />
<!-- mailReason.xsl -->
<xsl:call-template name="toWhomIsConcerned" />
<div class="messageArea">
<div class="messageBody">
<table cellspacing="0" cellpadding="5" border="0">
<xsl:if test="notification_data/item_loans/item_loan or notification_data/overdue_item_loans/item_loan">
<tr>
<td>
<h>@@reminder_message@@</h>
</td>
</tr>
<xsl:if test="notification_data/overdue_item_loans/item_loan">
<tr>
<td>
<b>@@overdue_loans@@</b>
</td>
</tr>
<tr>
<td>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="mainTableStyleCss" />
</xsl:attribute>
<tr>
<th>@@title@@</th>
<th>@@description@@</th>
<th>@@author@@</th>
<th>@@due_date@@</th>
<th>@@fine@@</th>
<th>@@library@@</th>
</tr>
<xsl:for-each select="notification_data/overdue_item_loans/item_loan">
<tr>
<td>
<xsl:value-of select="title" />
</td>
<td>
<xsl:value-of select="description" />
</td>
<td>
<xsl:value-of select="author" />
</td>
<td>
<xsl:value-of select="due_date" />
</td>
<td>
<xsl:value-of select="fine" />
</td>
<td>
<xsl:value-of select="library_name" />
</td>
</tr>
</xsl:for-each>
</table>
<br />
</td>
</tr>
</xsl:if>
<xsl:if test="notification_data/item_loans/item_loan">
<tr>
<td>
<b>@@loans@@</b>
</td>
</tr>
<tr>
<td>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="mainTableStyleCss" />
</xsl:attribute>
<tr>
<th>@@title@@</th>
<th>@@due_date@@</th>
<th>@@fine@@</th>
<th>@@description@@</th>
</tr>
<xsl:for-each select="notification_data/item_loans/item_loan">
<tr>
<td>
<xsl:value-of select="title" />
</td>
<td>
<xsl:value-of select="due_date" />
</td>
<td>
<xsl:value-of select="fine" />
</td>
<td>
<xsl:value-of select="description" />
</td>
</tr>
</xsl:for-each>
</table>
<br />
</td>
</tr>
</xsl:if>
</xsl:if>
<xsl:if test="notification_data/organization_fee_list/string">
<tr>
<td>
<h>@@debt_message@@</h>
</td>
</tr>
<xsl:for-each select="notification_data/organization_fee_list/string">
<tr>
<td>
<xsl:value-of select="." />
</td>
</tr>
</xsl:for-each>
<tr>
<td>
<b>@@total@@
<xsl:value-of select="notification_data/total_fee" />
</b>
</td>
</tr>
<tr>
<td>
<h>@@please_pay_message@@</h>
</td>
</tr>
</xsl:if>
</table>
<br />
<!-- footer.xsl -->
<xsl:call-template name="myAccount" />
<xsl:call-template name="doNotReply" />
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>