-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSenior Packet.ftl
289 lines (265 loc) · 14.3 KB
/
Senior Packet.ftl
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<#function escapeAmp str>
<#-- returns a URI-encoded "&"
because we pass XML in the URI, we have to escape this way -->
<#return str?replace('&', '%26amp%3B')>
</#function>
<#assign courseWork = xml.getAllSubtrees('local/courseWorkWrapper')>
<#list courseWork as courseWork>
<#assign courseWorkType = courseWork.get('courseWorkType')>
<#if (courseWorkType == "Senior packet")>
<style>
.attachments {
position: static;
}
</style>
<dl>
<#assign exhibitWrapper = xml.getAllSubtrees('local/exhibitWrapper')>
<#assign artistDoc = xml.getAllSubtrees('local/artistDocWrapper')>
<#assign department = xml.get('local/department')>
<#assign itemUuid = xml.get('item/@id')>
<#assign itemversion = xml.get('item/@version')>
<#assign itemAttachments = xml.getAllSubtrees('item/attachments/attachment')>
<#assign name = xml.getAllSubtrees('mods/name')>
<#assign subNameWrapper = xml.getAllSubtrees('mods/name/subNameWrapper')>
<#assign date = xml.getAllSubtrees('mods/origininfo/dateCreatedWrapper')>
<#assign physdesc = xml.getAllSubtrees('mods/physicalDescription')>
<#assign courseInfo = xml.getAllSubtrees('local/courseInfo')>
<#assign powerSearch = 'Pc121f09c-8ea9-4bc9-90bf-8467c37a4ec4'>
<#assign title = xml.get('mods/titleInfo/title')>
<h2 id="title">${title}</h2>
<#assign division = xml.get('local/division')>
<#assign department = xml.get('local/department')>
<#if division != "">
<dt class="hide">Collection</dt>
<#assign departmentUrl = "/access/searching.do?doc=%3Cxml%3E%3Clocal%3E%3Cdepartment%3E${department}%3C%2Fdepartment%3E%3C%2Flocal%3E%3C%2Fxml%3E&in=${powerSearch}&q=&sort=datemodified&dr=AFTER">
<#assign divisionUrl = "/access/searching.do?in=${powerSearch}&q=&sort=datemodified&dr=AFTER" />
<dd class="collection">
<a href="${departmentUrl}">${department}</a> | <a href="${divisionUrl}">${division}</a>
</dd>
</#if>
<#list name as name>
<#assign namePart = name.get('namePart')>
<#assign namePartUrl = '/access/searching.do?doc=%3Cxml%3E%3Cmods%3E%3Cname%3E%3CnamePart%3E${namePart}%3C%2FnamePart%3E%3C%2Fname%3E%3C%2Fmods%3E%3C%2Fxml%3E&in=${powerSearch}&q=&sort=datemodified&dr=AFTER'>
<dd><b>Creator: </b><a href="${namePartUrl}">${namePart}</a>
<#list subNameWrapper as subName>
<#assign major = subName.get('major')>
<#assign gradDate = subName.get('gradDate')>
<#assign majorUrl = "/access/searching.do?doc=%3Cxml%3E%3Cmods%3E%3Cname%3E%3CsubNameWrapper%3E%3Cmajor%3E${major}%3C%2Fmajor%3E%3C%2FsubNameWrapper%3E%3C%2Fname%3E%3C%2Fmods%3E%3C%2Fxml%3E&in=${powerSearch}&q=&sort=datemodified&dr=AFTER" />
<#assign gradDateUrl = "/access/searching.do?doc=%3Cxml%3E%3Cmods%3E%3Cname%3E%3CsubNameWrapper%3E%3CgradDate%3E${gradDate}%3C%2FgradDate%3E%3C%2FsubNameWrapper%3E%3C%2Fname%3E%3C%2Fmods%3E%3C%2Fxml%3E&in=${powerSearch}&q=&sort=datemodified&dr=AFTER" />
<#if major != ""> — <a href="${majorUrl}">${major}</a></#if>
<#if gradDate != "">
— Graduated: <a href="${gradDateUrl}">${gradDate}</a>
</#if>
</#list>
</dd>
</#list>
<#assign faculties = xml.list('local/courseInfo/faculty')>
<#if faculties?size != 0>
<dd><b>Faculty Advisor(s)</b>:
<#list faculties as faculty>
<#assign facultyUrl = "/access/searching.do?doc=%3Cxml%3E%3Clocal%3E%3CcourseInfo%3E%3Cfaculty%3E${faculty}%3C%2Ffaculty%3E%3C%2FcourseInfo%3E%3Cdepartment%3E${department}%3C%2Fdepartment%3E%3C%2Flocal%3E%3C%2Fxml%3E&in=${powerSearch}&q=&sort=datemodified&dr=AFTER" />
<a href ="${facultyUrl}">${faculty}</a><#if faculty_has_next>, </#if>
</#list></dd>
</#if>
<#assign abstract = xml.get('mods/abstract')>
<#if (abstract != "")>
<dd><b>Description</b>:<br>
<pre>${abstract}</pre>
</dd>
</#if>
<#list exhibitWrapper as exhibitWrapper>
<#assign gallery = exhibitWrapper.get('gallery')>
<#assign note = exhibitWrapper.get('note')>
<#assign dates = exhibitWrapper.list('date')>
<#assign title = exhibitWrapper.get('title')>
<#assign galleryUrl = "/access/searching.do?doc=%3Cxml%3E%3Clocal%3E%3CcourseInfo%2F%3E%3CcourseWorkWrapper%3E%3CcourseWorkType%3ESenior+packet%3C%2FcourseWorkType%3E%3C%2FcourseWorkWrapper%3E%3Cdepartment%3E${department}%3C%2Fdepartment%3E%3CexhibitWrapper%3E%3Cgallery%3E${gallery}%3C%2Fgallery%3E%3C%2FexhibitWrapper%3E%3C%2Flocal%3E%3Cmods%3E%3Cname%3E%3CnamePart%2F%3E%3C%2Fname%3E%3C%2Fmods%3E%3C%2Fxml%3E&in=${powerSearch}&q=&sort=datemodified&dr=AFTER" />
<#-- only show if we actually have something -->
<#if gallery != "" || note != "" || title != "">
<h4><u>Senior Show Information</u></h4>
<dd>
<#if title != ""><em>${title}</em></#if>
<#if gallery != ""><a href="${galleryUrl}">${gallery}</a></#if>
<#-- note is just a non-CCA gallery in SR Packet template -->
<#if note != "">${note}</#if>
<#if dates?size != 0> —
<#list dates as date>
${date}<#if date_has_next> through </#if>
</#list>
</#if>
</dd>
</#if>
</#list>
<#list xml.getAllSubtrees('local/exhibitWrapper/showcardFile') as showcardFile>
<#list itemAttachments as itemAttachment>
<#if showcardFile.get('/') = itemAttachment.get('uuid')>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<div class="image-artistDocs">
<p class="artistDocs"><i><u>Show card</i></u></p>
<a href="/file/${itemUuid}/${itemversion}/${full}" rel="group" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="artistDocs">${full}</p>
</div>
</#if>
</#list>
</#list>
<#list xml.getAllSubtrees('local/exhibitWrapper/installationShotFile') as installationShotFile>
<#list itemAttachments as itemAttachment>
<#if installationShotFile.get('/') = itemAttachment.get('uuid')>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<div class="image-artistDocs">
<p class="artistDocs"><i><u>Installation shot</i></u></p>
<a href="/file/${itemUuid}/${itemversion}/${full}" rel="group" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="artistDocs">${full}</p>
</div>
</#if>
</#list>
</#list>
<div class="clearfix"></div>
<#-- only show if we actually have something -->
<#assign artistStatementFile = xml.get('local/artistDocWrapper/artistStatementFile')>
<#if artistStatementFile != "">
<h4><u>Artist Documents</u></h4>
<#list itemAttachments as itemAttachment>
<#if artistStatementFile == itemAttachment.get('uuid')>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<div class="image-artistDocs">
<p class="artistDocs"><i><u>Artist statement</u></i></p>
<a href="/file/${itemUuid}/${itemversion}/${full}" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="artistDocs">
<#if full != "">
${full}
</#if>
</p>
</div>
</#if>
</#list>
</#if>
<#assign resumeCVFile = xml.get('local/artistDocWrapper/resumeCVFile')>
<#list itemAttachments as itemAttachment>
<#if resumeCVFile == itemAttachment.get('uuid')>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<div class="image-artistDocs">
<p class="artistDocs"><i><u>Resume/CV</u></i></p>
<a href="/file/${itemUuid}/${itemversion}/${full}" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="artistDocs">${full}</p>
</div>
</#if>
</#list>
<#assign imageListFile = xml.get('local/artistDocWrapper/imageListFile')>
<#list itemAttachments as itemAttachment>
<#if imageListFile == itemAttachment.get('uuid')>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<div class="image-artistDocs">
<p class="artistDocs"><i><u>Image list</u></i></p>
<a href="/file/${itemUuid}/${itemversion}/${full}" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="artistDocs">${full}</p>
</div>
</#if>
</#list>
<#assign videoFile = xml.get('mods/part/number')>
<#list itemAttachments as itemAttachment>
<#if videoFile == itemAttachment.get('uuid')>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<div class="image-artistDocs">
<p class="artistDocs"><i><u>Video File</u></i></p>
<a href="/file/${itemUuid}/${itemversion}/${full}" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="artistDocs">${full}</p>
</div>
</#if>
</#list>
<div class="clearfix"></div>
<div class="clearfix">
<h4><u>Image List</u></h4>
<#list itemAttachments as itemAttachment>
<#assign full = itemAttachment.get('file')>
<#assign uuid = itemAttachment.get('uuid')>
<#list xml.getAllSubtrees('local/seniorPacketWrapper') as seniorPacket>
<#assign title = seniorPacket.get('title')>
<#assign date = seniorPacket.get('date')>
<#assign forms = seniorPacket.list('formatBroad')>
<#assign temperature = seniorPacket.get('formatOther')>
<#assign materials = seniorPacket.list('formatSpecific')>
<#-- heightINCH is full dimensions string -->
<#assign dimensions = seniorPacket.get('heightINCH')>
<#-- note: where file is stored & which files we want to
display will vary by collection -->
<#assign jpgFile = seniorPacket.get('lowResFile')>
<#assign file = seniorPacket.get('hiResFile')>
<#-- building techniques -->
<#assign techniques = seniorPacket.list('technique')>
<#assign techniqueOther = seniorPacket.get('techniqueOther')>
<#-- finishing techniques -->
<#assign processes = seniorPacket.list('process')>
<#assign processOther = seniorPacket.get('processOther')>
<#assign tags = seniorPacket.list('tags')>
<#assign description = seniorPacket.get('notes')>
<#if file == uuid>
<div class="image-with-metadata">
<a href="/file/${itemUuid}/${itemversion}/${full}" rel="group" target="_blank">
<img src="/thumbs/${itemUuid}/${itemversion}/${uuid}"/></a>
<p class="metadata">
<#if title != ""><span class="title">${title}</span></#if>
<#if date != "">${date}<br></#if>
<#if forms?size != 0>
<b>Form(s):</b>
<#list forms as form>
${form}<#if form_has_next>, </#if>
</#list><br>
</#if>
<#-- building techniques -->
<#if techniques?size != 0>
<b>Building Techniques:</b>
<#list techniques as technique>
<#if technique != 'other...'>
${technique}<#if technique_has_next>, </#if>
<#else>
${techniqueOther}<#if technique_has_next>, </#if>
</#if>
</#list><br>
</#if>
<#-- finishing techniques -->
<#if processes?size != 0>
<b>Finishing Techniques:</b>
<#list processes as process>
<#if process != 'other...'>
${process}<#if process_has_next>, </#if>
<#else>
${processOther}<#if process_has_next>, </#if>
</#if>
</#list><br>
</#if>
<#if materials?size != 0>
<b>Materials:</b>
<#list materials as material>
${material}<#if material_has_next>, </#if>
</#list><br>
</#if>
<#if dimensions != ""><b>Dimensions:</b> ${dimensions}<br></#if>
<#if temperature != ""><b>Firing temp.:</b> ${temperature}<br></#if>
<#if tags?size != 0>
<b>Themes:</b>
<#list tags as tag>
${tag}<#if tag_has_next>, </#if>
</#list><br>
</#if>
<#if description != "">${description}</#if>
</p>
</div>
</#if>
</#list>
</#list>
</div>
</dl>
</#if>
</#list>