-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFulDigitizationNotificationItemLetter.xsl
167 lines (167 loc) · 5.34 KB
/
FulDigitizationNotificationItemLetter.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
<?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="footer.xsl" />
<xsl:variable name="conta1">0</xsl:variable>
<xsl:variable name="stepType" select="/notification_data/request/work_flow_entity/step_type" />
<xsl:variable name="externalRequestId" select="/notification_data/external_request_id" />
<xsl:variable name="externalSystem" select="/notification_data/external_system" />
<xsl:variable name="isDeposit" select="/notification_data/request/deposit_indicator" />
<xsl:variable name="isDigitalDocDelivery" select="/notification_data/digital_document_delivery" />
<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>@@your_request@@</td>
</tr>
<tr>
<td>
As a reminder please see our copyright statement:
</td>
</tr>
<tr>
<td>
<em>
I acknowledge and agree that this item is being supplied solely for my own personal use,
and may only be used for the purpose of research, education, private study, review, or criticism.
I agree that I will not share, distribute, publish, or make copies of this item, or otherwise provide
it to any other person.
</em>
</td>
</tr>
<xsl:if test="$isDeposit='true'">
<tr>
<td>@@material@@:</td>
</tr>
<tr>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="notification_data/item_url" />
</xsl:attribute>
<xsl:value-of select="notification_data/phys_item_display/title" />
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="$isDigitalDocDelivery='true' or $isDeposit='false'">
<!-- DOCUMENT DELIVERY -->
<tr>
<td>@@material@@:</td>
</tr>
<tr>
<td>
<xsl:value-of select="notification_data/phys_item_display/title" />
</td>
</tr>
<xsl:if test="$externalRequestId != ''">
<tr>
<td>
@@the_request_relates@@
<xsl:value-of select="$externalRequestId" />
@@of@@
<xsl:value-of select="$externalSystem" />
.
</td>
</tr>
</xsl:if>
<xsl:if test="/notification_data/url_list[string]">
<tr>
<td>@@attached_are_the_urls@@:</td>
</tr>
<xsl:for-each select="/notification_data/attachments_list/attachments">
<xsl:if test="url">
<tr>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="url" />
</xsl:attribute>
<xsl:value-of select="url" />
</a>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:if>
<tr>
<td>@@request_type_digitization@@</td>
</tr>
<xsl:if test="/notification_data/request/citation_upload_file_status">
<xsl:choose>
<xsl:when test="/notification_data/request/citation_upload_file_status = 'FILE_NOT_UPLOADED_FILE_EXISTS'">
<tr>
<td>@@file_not_uploaded_file_exists@@.</td>
</tr>
</xsl:when>
<xsl:when test="/notification_data/request/citation_upload_file_status = 'FILE_NOT_UPLOADED_MULTIPLE_FILES'">
<tr>
<td>@@file_not_uploaded_multiple_files@@.</td>
</tr>
</xsl:when>
<xsl:when test="/notification_data/request/citation_upload_file_status = 'FILE_NOT_UPLOADED_GENERAL_ERROR'">
<tr>
<td>@@file_not_uploaded_general_error@@.</td>
</tr>
</xsl:when>
<xsl:when test="/notification_data/request/citation_upload_file_status = 'FILE_UPLOADED_SUCCESS'">
<tr>
<td>@@file_uploaded@@.</td>
</tr>
</xsl:when>
</xsl:choose>
</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>