-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFulItemChangeDueDateLetter.xsl
107 lines (106 loc) · 3.95 KB
/
FulItemChangeDueDateLetter.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
<?xml version="1.0" encoding="utf-8"?>
<!--
Modified on 20161031 by Wee Hiong
1. Remove unused reference to senderReceiver.xsl.
Modified on 20160811 by Wee Hiong
1. Remove library address from the body.
2. Remove bolding from the message text.
3. Remove additional header ("Loans") from the list of loans.
4. Replace the description column with the call number.
5. Remove the old due date column.
6. Change signature to patron-facing 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">
<tr>
<td>
<xsl:if test="notification_data/message='RECALL_DUEDATE_CHANGE'">
@@recall_and_date_change@@
</xsl:if>
<xsl:if test="notification_data/message='RECALL_ONLY'">
@@recall_and_no_date_change@@
</xsl:if>
<xsl:if test="notification_data/message='DUE_DATE_CHANGE_ONLY'">
@@message@@
</xsl:if>
<xsl:if test="notification_data/message='RECALL_CANCEL_RESTORE_ORIGINAL_DUEDATE'">
@@cancel_recall_date_change@@
</xsl:if>
<xsl:if test="notification_data/message='RECALL_CANCEL_ITEM_RENEWED'">
@@cancel_recall_renew@@
</xsl:if>
<xsl:if test="notification_data/message='RECALL_CANCEL_NO_CHANGE'">
@@cancel_recall_no_date_change@@
</xsl:if>
<br />
<br />
</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>Call Number</th>
<th>@@author@@</th>
<th>@@new_due_date@@</th>
<th>@@library@@</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="call_number"/>
</td>
<td>
<xsl:value-of select="author"/>
</td>
<td>
<xsl:value-of select="new_due_date_str"/>
</td>
<td>
<xsl:value-of select="library_name"/>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
<br />
<!-- footer.xsl -->
<xsl:call-template name="myAccount" />
<xsl:call-template name="doNotReply" />
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>