forked from collectionspace/services
/
cinefilesUOCbyRequesterObject.jrxml
239 lines (238 loc) · 12 KB
/
cinefilesUOCbyRequesterObject.jrxml
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="UOCbyRequsterObject" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1da71959-7468-4c0d-8036-685691a34b6d">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<parameter name="Requester" class="java.lang.String">
<parameterDescription><![CDATA[Requester Name:]]></parameterDescription>
</parameter>
<parameter name="ObjectNumber" class="java.lang.String">
<parameterDescription><![CDATA[Collection Object Number]]></parameterDescription>
</parameter>
<queryString>
<![CDATA[select
'<a href="https://' || get_deplname() || '.cspace.berkeley.edu/record/uoc/' || huoc.name || '">' ||
case
when uoc.referencenumber is null or uoc.referencenumber = ''
then '<i>' || uoc.title || '</i>'
else uoc.referencenumber ||
case
when uoc.title is null or uoc.title = ''
then ''
else ': <i>' || uoc.title || '</i>'
end
end || '</a>' as RefNumTitle,
to_char(uoc.daterequested::timestamp at time zone 'US/Pacific' at time zone 'UTC', 'yyyy-mm-dd') as Requested,
to_char(uoc.datecompleted::timestamp at time zone 'US/Pacific' at time zone 'UTC', 'yyyy-mm-dd') as Completed,
get_uoc_authby(uoc.id) as Authorizations,
get_uoc_reqby(uoc.id) as Requesters,
get_uoc_objnum(uoc.id) as Objects
from uoc_common uoc
join hierarchy huoc on (uoc.id = huoc.id)
where check_reqbyobjnum(uoc.id, $P{Requester}, $P{ObjectNumber}) is true
and (get_uoc_reqby(uoc.id) is not null or get_uoc_objnum(uoc.id) is not null)
order by uoc.referencenumber]]>
</queryString>
<field name="RefNumTitle" class="java.lang.String"/>
<field name="Requested" class="java.lang.String"/>
<field name="Completed" class="java.lang.String"/>
<field name="Authorizations" class="java.lang.String"/>
<field name="Requesters" class="java.lang.String"/>
<field name="Objects" class="java.lang.String"/>
<title>
<band height="72">
<frame>
<reportElement mode="Opaque" x="-20" y="-20" width="842" height="92" backcolor="#006699" uuid="9f12c9cf-ebe1-43b5-bf2a-0172314c34f1"/>
<staticText>
<reportElement x="20" y="46" width="802" height="40" forecolor="#FFFFFF" uuid="2f28d156-e300-4f24-a38a-526872ab1d4d"/>
<textElement textAlignment="Center">
<font size="24" isBold="true"/>
</textElement>
<text><![CDATA[Use of Collections by Requester/Object Report]]></text>
</staticText>
<staticText>
<reportElement x="20" y="10" width="802" height="20" forecolor="#FFFFFF" uuid="02c8ee9d-04d6-4c60-8c77-8dfa3013ba1a"/>
<textElement textAlignment="Left">
<font size="14" isBold="false"/>
</textElement>
<text><![CDATA[CineFiles]]></text>
</staticText>
</frame>
</band>
</title>
<columnHeader>
<band height="50">
<line>
<reportElement x="-20" y="46" width="842" height="1" forecolor="#666666" uuid="b0d93450-f528-487c-bceb-c3bfb92903bb"/>
</line>
<staticText>
<reportElement x="20" y="25" width="300" height="18" uuid="d6124ea1-46a1-4c19-b450-6b6a1ae1f946">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdbc204-8862-42b9-b91b-33c0867dcc0f"/>
</reportElement>
<textElement verticalAlignment="Bottom">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Authorizations]]></text>
</staticText>
<staticText>
<reportElement x="642" y="2" width="80" height="18" uuid="3cdd0b2a-6fa4-4b65-9f4b-79696d5fed9b">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdbc204-8862-42b9-b91b-33c0867dcc0f"/>
</reportElement>
<textElement verticalAlignment="Bottom">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Requested]]></text>
</staticText>
<staticText>
<reportElement x="560" y="25" width="242" height="18" uuid="1a25653d-abe7-4086-a7ad-1a6343973f8f">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdbc204-8862-42b9-b91b-33c0867dcc0f"/>
</reportElement>
<textElement verticalAlignment="Bottom">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Objects]]></text>
</staticText>
<staticText>
<reportElement x="722" y="2" width="80" height="18" uuid="675bc864-bb98-491e-8efc-30c8b1a68d6e">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdbc204-8862-42b9-b91b-33c0867dcc0f"/>
</reportElement>
<textElement verticalAlignment="Bottom">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Completed]]></text>
</staticText>
<staticText>
<reportElement x="0" y="2" width="642" height="18" uuid="e1b29ae6-c70d-45ae-8237-659cb6dd15bf">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdbc204-8862-42b9-b91b-33c0867dcc0f"/>
</reportElement>
<textElement verticalAlignment="Bottom">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Reference Number: Title]]></text>
</staticText>
<staticText>
<reportElement x="320" y="25" width="240" height="18" uuid="24e1e92a-1235-480c-bcbf-f05493600cbd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdbc204-8862-42b9-b91b-33c0867dcc0f"/>
</reportElement>
<textElement verticalAlignment="Bottom">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Requests]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="43">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement mode="Opaque" x="0" y="2" width="642" height="18" backcolor="#E6E6E6" uuid="844030ec-6263-4214-9d56-577c1831c99d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="1f3cce93-eec6-4d65-939b-abe46f3ea104"/>
</reportElement>
<textElement verticalAlignment="Top" markup="html">
<font size="10"/>
<paragraph leftIndent="2" spacingBefore="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{RefNumTitle}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement mode="Opaque" x="642" y="2" width="80" height="18" backcolor="#E6E6E6" uuid="f0d4c4f5-ac42-4923-86ba-1cf771b42f6d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="2b6c48dd-274f-4957-861f-3ff03d0c2e05"/>
</reportElement>
<textElement verticalAlignment="Top">
<font size="10"/>
<paragraph leftIndent="2" spacingBefore="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{Requested}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement mode="Opaque" x="722" y="2" width="80" height="18" backcolor="#E6E6E6" uuid="29795750-a244-46e4-9ce2-3ffc4062d24e">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="88051d4e-a77b-4bb0-93aa-f06bf68f7fe5"/>
</reportElement>
<textElement verticalAlignment="Top">
<font size="10"/>
<paragraph leftIndent="2" spacingBefore="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{Completed}]]></textFieldExpression>
</textField>
<frame>
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="0" y="20" width="802" height="20" isRemoveLineWhenBlank="true" backcolor="#FFFFFF" uuid="f6481d73-fbe6-44c4-bbff-bdb6d22a2538"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="20" y="3" width="300" height="18" backcolor="#FFFFFF" uuid="98fd26b8-f785-494d-ba63-44585eb3a399">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="c2edfa9f-bfe4-47f5-90bb-318c0742a10e"/>
</reportElement>
<textElement verticalAlignment="Top" markup="html">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{Authorizations}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="320" y="3" width="240" height="18" uuid="c06d32bc-7b7a-492c-bfd5-1fcc2fdc067d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="9f4f0138-fa37-45fe-a920-1a5ad7b703af"/>
</reportElement>
<textElement markup="html"/>
<textFieldExpression><![CDATA[$F{Requesters}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="560" y="3" width="242" height="18" isPrintWhenDetailOverflows="true" uuid="91fccf18-efd2-493a-a056-04c846575504">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="dcc1f0e6-4cbf-423a-8d68-8d51d76fafd9"/>
</reportElement>
<textElement verticalAlignment="Top">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{Objects}]]></textFieldExpression>
</textField>
</frame>
</band>
</detail>
<pageFooter>
<band height="17">
<textField>
<reportElement mode="Opaque" x="0" y="4" width="762" height="13" backcolor="#E6E6E6" uuid="fd586714-2cf5-47b1-89a6-9d2a304c980a"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement mode="Opaque" x="762" y="4" width="40" height="13" backcolor="#E6E6E6" uuid="ca0cf69c-a9dc-4d66-af2d-c20ade6bea78"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement x="0" y="4" width="180" height="13" uuid="049049f9-5f5a-4fe2-9fbc-dc4be35ec07f"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<noData>
<band height="122">
<frame>
<reportElement mode="Opaque" x="-20" y="-20" width="842" height="92" backcolor="#006699" uuid="9f12c9cf-ebe1-43b5-bf2a-0172314c34f1"/>
<staticText>
<reportElement x="20" y="46" width="802" height="35" forecolor="#FFFFFF" uuid="2f28d156-e300-4f24-a38a-526872ab1d4d"/>
<textElement textAlignment="Center">
<font size="24" isBold="true"/>
</textElement>
<text><![CDATA[Use of Collections by Requester/Object Report]]></text>
</staticText>
<staticText>
<reportElement x="20" y="10" width="802" height="20" forecolor="#FFFFFF" uuid="02c8ee9d-04d6-4c60-8c77-8dfa3013ba1a"/>
<textElement textAlignment="Left">
<font size="14" isBold="false"/>
</textElement>
<text><![CDATA[CineFiles]]></text>
</staticText>
</frame>
<staticText>
<reportElement x="0" y="92" width="802" height="20" uuid="0f25f5e7-68fb-4bbe-8b9d-02063ee86db8"/>
<textElement>
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[No records match....]]></text>
</staticText>
</band>
</noData>
</jasperReport>