-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFulCancelRequestLetter.xsl
127 lines (125 loc) · 3.9 KB
/
FulCancelRequestLetter.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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="style.xsl" />
<xsl:include href="header.xsl" />
<xsl:include href="recordTitle.xsl" />
<xsl:include href="footer.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/letter_name" />
</title>
<xsl:call-template name="generalStyle" />
<!-- style.xsl -->
</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" cellspacing="0" cellpadding="5" border="0">
<tr>
<td>Hi,</td>
</tr>
<tr>
<td>
@@on@@ <xsl:value-of select="notification_data/general_data/current_date" /> @@we_cancel_y_req_of@@.
</td>
</tr>
<tr>
<td>
<xsl:call-template name="recordTitle" />
<!-- recordTitle.xsl -->
</td>
</tr>
<xsl:if test="notification_data/request/cancel_reason != ''">
<tr>
<td>
<b>@@request_cancellation_note@@:</b> 
<xsl:value-of select="notification_data/request/cancel_reason" />
</td>
</tr>
</xsl:if>
<xsl:if test="notification_data/request/start_time != ''">
<tr>
<td>
<b>@@start_time@@:</b> 
<xsl:value-of select="notification_data/booking_start_time_str" />
</td>
</tr>
</xsl:if>
<xsl:if test="notification_data/request/end_time != ''">
<tr>
<td>
<b>@@end_time@@:</b> 
<xsl:value-of select="notification_data/booking_end_time_str" />
</td>
</tr>
</xsl:if>
<xsl:if test="notification_data/request/note != ''">
<tr>
<td>
<b>@@request_note@@:</b> 
<xsl:value-of select="notification_data/request/note" />
</td>
</tr>
</xsl:if>
<!-- START stop emails for converted to resource sharing -->
<xsl:if test="notification_data/request/status_note">
<xsl:if test="contains(notification_data/request/status_note, 'ConvertedToResourceSharingRequest')">
<xsl:message terminate="yes">A converted to resource sharing cancellation, don't send email</xsl:message>
</xsl:if>
</xsl:if>
<!-- END stop emails for converted to resource sharing -->
<tr>
<td>
<b>@@reason_deleting_request@@:</b> 
<xsl:value-of select="notification_data/request/status_note_display" />
</td>
</tr>
<xsl:if test="notification_data/request/external_request_id !=''">
<tr>
<td>
<strong>Request ID: </strong>
<xsl:value-of select="notification_data/request/external_request_id"/>
</td>
</tr>
</xsl:if>
<tr>
<td>
@@sincerely@@
</td>
</tr>
<tr>
<td>
@@department@@
<br />
Carleton University Library
</td>
</tr>
<tr>
<td>
Need research help or assistance with your account? We're here to help!
<a href="https://library.carleton.ca/help">Ask a Librarian</a>
</td>
</tr>
</table>
</div>
</div>
<!-- AFN footer template options from footer.xsl -->
<xsl:call-template name="AFNLastFooter" />
<xsl:call-template name="AFNAccount" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>