-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFulLostLoanLetter.xsl
141 lines (140 loc) · 4.57 KB
/
FulLostLoanLetter.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
<?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.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.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 />
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td>
<h>@@inform_you_item_below@@</h>
<h>@@borrowed_by_you@@ @@decalred_as_lost@@</h>
</td>
</tr>
</table>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="mainTableStyleCss" />
</xsl:attribute>
<xsl:for-each select="notification_data">
<table>
<tr>
<td>
<table>
<tr>
<td>
<b>@@lost_item@@:</b>
</td>
<td>
<xsl:value-of select="item_loan/title" />
</td>
</tr>
<tr>
<td>
<b>@@by@@:</b>
</td>
<td>
<xsl:value-of select="item_loan/author" />
</td>
</tr>
<tr>
<td>
<b>@@library@@:</b>
</td>
<td>
<xsl:value-of select="organization_unit/name" />
</td>
</tr>
<tr>
<td>
<b>@@loan_date@@:</b>
</td>
<td>
<xsl:value-of select="item_loan/loan_date" />
</td>
</tr>
<tr>
<td>
<b>@@due_date@@:</b>
</td>
<td>
<xsl:value-of select="item_loan/due_date" />
</td>
</tr>
<tr>
<td>
<b>@@barcode@@:</b>
</td>
<td>
<xsl:value-of select="item_loan/barcode" />
</td>
</tr>
<tr>
<td>
<b>@@call_number@@:</b>
</td>
<td>
<xsl:value-of select="phys_item_display/call_number" />
</td>
</tr>
</table>
<b>@@charged_with_fines_fees@@</b>
</td>
</tr>
</table>
</xsl:for-each>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="mainTableStyleCss" />
</xsl:attribute>
<tr>
<th>@@fee_type@@</th>
<th>@@fee_amount@@</th>
<th>@@note@@</th>
</tr>
<xsl:for-each select="notification_data/fines_fees_list/user_fines_fees">
<tr>
<td>
<xsl:value-of select="fine_fee_type_display" />
</td>
<td>
<xsl:value-of select="fine_fee_ammount/sum" />
<xsl:text> </xsl:text>
<xsl:value-of select="fine_fee_ammount/currency" />
</td>
<td>
<xsl:value-of select="ff" />
</td>
</tr>
</xsl:for-each>
</table>
</table>
<br />
<!-- footer.xsl -->
<xsl:call-template name="myAccount" />
<xsl:call-template name="doNotReply" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>