1
|
<RESOURCE_PROFILE>
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER value="33e8cc88-3b4a-4a68-b332-7cae8baad8dc_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU=" />
|
4
|
<RESOURCE_TYPE value="TransformationRuleDSResourceType" />
|
5
|
<RESOURCE_KIND value="TransformationRuleDSResources" />
|
6
|
<RESOURCE_URI value="" />
|
7
|
<DATE_OF_CREATION value="2014-07-17T10:41:08+02:00" />
|
8
|
</HEADER>
|
9
|
<BODY>
|
10
|
<CONFIGURATION>
|
11
|
<IMPORTED />
|
12
|
<SCRIPT>
|
13
|
<TITLE>Epidoc to eagle (new)</TITLE>
|
14
|
<CODE><![CDATA[
|
15
|
<xsl:stylesheet version="2.0"
|
16
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
17
|
xmlns:dnet="eu.dnetlib.miscutils.functional.xml.DnetXsltFunctions"
|
18
|
xmlns:utils="eu.dnetlib.miscutils.datetime.DateUtils"
|
19
|
xmlns:tei="http://www.tei-c.org/ns/1.0"
|
20
|
xmlns:oai="http://www.openarchives.org/OAI/2.0/"
|
21
|
exclude-result-prefixes="xsl tei dnet utils">
|
22
|
|
23
|
<xsl:output indent="yes" encoding="UTF-8"/>
|
24
|
|
25
|
<xsl:param name="varOfficialName" />
|
26
|
<xsl:variable name="REPO_ACRONYM" select="//*[local-name()='datasourceprefix']" />
|
27
|
<xsl:variable name="REPO_ID" select="//*[local-name()='repositoryId']" />
|
28
|
<xsl:variable name="ORIG_OBJ_ID" select="//*[local-name()='objIdentifier']" />
|
29
|
<xsl:variable name="NOW" select="utils:now_ISO8601()" />
|
30
|
<xsl:variable name="LANG" select="normalize-space(//tei:TEI/@*[local-name()='lang'])" />
|
31
|
<xsl:variable name="LANDING_PAGE" select="normalize-space(//tei:publicationStmt/tei:idno[@type='uri' or @type='URI'][text() != ''])" />
|
32
|
<xsl:variable name="LOCAL_ID" select="normalize-space(//tei:idno[@type='localID'][text() != ''])" />
|
33
|
<xsl:variable name="LOCAL_ID_MD5" select="dnet:md5($LOCAL_ID)" />
|
34
|
<xsl:variable name="TM_ID" select="normalize-space(//tei:publicationStmt/tei:idno[@type='TM_id' or @type='TM'])" />
|
35
|
<xsl:variable name="DATE_EDITED" select="normalize-space(//tei:change[1]/@when)[1]" />
|
36
|
<xsl:variable name="METADATA_EDITOR" select="normalize-space(//tei:change[1]/@who)[1]" />
|
37
|
<xsl:variable name="IPR_URL" select="normalize-space(//tei:licence/@target)" />
|
38
|
<xsl:variable name="IPR_STATEMENT" select="normalize-space(//tei:licence)" />
|
39
|
<xsl:variable name="TITLE" select="normalize-space(//tei:titleStmt/tei:title)" />
|
40
|
<xsl:variable name="DESCRIPTION" select="//tei:support/tei:p" />
|
41
|
|
42
|
<xsl:template match="/">
|
43
|
<package xsl:exclude-result-prefixes="oai">
|
44
|
<!-- ARTIFACT -->
|
45
|
<oai:record xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oai="http://www.openarchives.org/OAI/2.0/">
|
46
|
<oai:header>
|
47
|
<dri:objIdentifier>
|
48
|
<xsl:value-of select="concat($ORIG_OBJ_ID, '_artifact')" />
|
49
|
</dri:objIdentifier>
|
50
|
<dri:dateOfCollection>
|
51
|
<xsl:value-of select="$NOW" />
|
52
|
</dri:dateOfCollection>
|
53
|
<dri:repositoryId>
|
54
|
<xsl:value-of select="$REPO_ID" />
|
55
|
</dri:repositoryId>
|
56
|
<!--<xsl:call-template name="headerProvenance" />-->
|
57
|
</oai:header>
|
58
|
<oai:metadata>
|
59
|
<eagleObject xmlns="http://www.eagle-network.eu/eagle">
|
60
|
<xsl:call-template name="idsTemplate">
|
61
|
<xsl:with-param name="postfix">artifact</xsl:with-param>
|
62
|
</xsl:call-template>
|
63
|
<xsl:call-template name="commonPropertiesTemplate" />
|
64
|
<entityType>artifact</entityType>
|
65
|
<artifact>
|
66
|
<artifactType>inscription</artifactType>
|
67
|
<xsl:call-template name="objectTypeTemplate" />
|
68
|
<xsl:call-template name="materialTemplate" />
|
69
|
<xsl:for-each select="//tei:support//tei:dimensions">
|
70
|
<dimensions unit="{normalize-space(concat(./@unit,./tei:width/@unit))}">
|
71
|
<width>
|
72
|
<xsl:value-of select="./tei:width" />
|
73
|
</width>
|
74
|
<height>
|
75
|
<xsl:value-of select="./tei:height" />
|
76
|
</height>
|
77
|
<depth>
|
78
|
<xsl:value-of select="./tei:depth" />
|
79
|
</depth>
|
80
|
</dimensions>
|
81
|
</xsl:for-each>
|
82
|
<xsl:for-each select="//tei:support/tei:rs[@type='decoration']">
|
83
|
<decoration uri="{normalize-space(./@ref)}">
|
84
|
<xsl:value-of select="lower-case(normalize-space(.))" />
|
85
|
</decoration>
|
86
|
</xsl:for-each>
|
87
|
<stateOfPreservation uri="{normalize-space(//tei:support/tei:rs[@type='statPreserv']/@ref)}">
|
88
|
<xsl:value-of select="lower-case(normalize-space(//tei:support/tei:rs[@type='statPreserv']))" />
|
89
|
</stateOfPreservation>
|
90
|
<xsl:call-template name="originDatingTemplate" />
|
91
|
<yearOfFinding>
|
92
|
<xsl:value-of select="normalize-space((//tei:provenance)[1]/tei:date/@when)" />
|
93
|
</yearOfFinding>
|
94
|
<xsl:call-template name="findingSpotTemplate" />
|
95
|
<xsl:call-template name="conservationPlaceTemplate"></xsl:call-template>
|
96
|
<xsl:for-each select="//tei:facsimile/tei:graphic[not(@rend = 'externalLink')]">
|
97
|
<xsl:call-template name="hasVisualRepresentationTemplate">
|
98
|
<xsl:with-param name="url" select="./@url" />
|
99
|
<xsl:with-param name="url_md5" select="dnet:md5(./@url)" />
|
100
|
<xsl:with-param name="ipr_url" select="./tei:desc/tei:ref/@target" />
|
101
|
<xsl:with-param name="ipr_text" select="./tei:desc/tei:ref" />
|
102
|
</xsl:call-template>
|
103
|
</xsl:for-each>
|
104
|
<!-- ARTIFACT+INSCRIPTION -->
|
105
|
<inscription>
|
106
|
<xsl:call-template name="tmTemplate" />
|
107
|
<xsl:call-template name="inscriptionTypeTemplate" />
|
108
|
<engravingTechnique uri="{normalize-space(//tei:layout/tei:rs[@type='execution'][1]/@ref)}">
|
109
|
<xsl:value-of select="lower-case(normalize-space(//tei:layout/tei:rs[@type='execution'][1]))" />
|
110
|
</engravingTechnique>
|
111
|
<metre>
|
112
|
<xsl:value-of select="lower-case(normalize-space(//tei:rs[@type='metre']))" />
|
113
|
</metre>
|
114
|
<xsl:for-each select="//tei:layout/tei:dimensions">
|
115
|
<fieldSize unit="{./tei:width/@unit}">
|
116
|
<width><xsl:value-of select="normalize-space(./tei:width)" /></width>
|
117
|
<height><xsl:value-of select="normalize-space(./tei:height)" /></height>
|
118
|
</fieldSize>
|
119
|
</xsl:for-each>
|
120
|
<paleographicCharacteristics>
|
121
|
<xsl:value-of select="//tei:handDesc/tei:handNote//text()"/>
|
122
|
</paleographicCharacteristics>
|
123
|
|
124
|
<xsl:for-each select="//tei:physDesc/tei:handDesc/tei:handNote/tei:height">
|
125
|
<letterSize unit="{./@unit}" min="{normalize-space(./@*[local-name()='min' or local-name()='atLeast'])}" max="{normalize-space(./@*[local-name()='max' or local-name()='atMost'])}">
|
126
|
<xsl:value-of select="normalize-space(.)" />
|
127
|
</letterSize>
|
128
|
</xsl:for-each>
|
129
|
|
130
|
<honorand socialStatus="unknown">unknown</honorand>
|
131
|
|
132
|
<!-- Properties down here are not present in EpiDoc. Can be initialized only for STARC metadata-->
|
133
|
<!-- <inscriptionAuthor>inscriptionAuthor0</inscriptionAuthor> -->
|
134
|
<!-- <dedicator>dedicator0</dedicator> -->
|
135
|
<!-- <namesMentioned>namesMentioned0</namesMentioned> -->
|
136
|
<!-- <relatedEvent>relatedEvent0</relatedEvent> -->
|
137
|
<!-- <placesMentioned>placesMentioned0</placesMentioned> -->
|
138
|
<!-- <restorationInfo>restorationInfo0</restorationInfo> -->
|
139
|
<!-- <doubleSided>doubleSided0</doubleSided> -->
|
140
|
<!-- <erasures>erasures0</erasures> -->
|
141
|
<!-- <spellingErrors>spellingErrors0</spellingErrors> -->
|
142
|
|
143
|
<xsl:call-template name="hasTranscriptionTemplate" />
|
144
|
</inscription>
|
145
|
</artifact>
|
146
|
</eagleObject>
|
147
|
</oai:metadata>
|
148
|
</oai:record>
|
149
|
|
150
|
<!-- TRANSCRIPTION -->
|
151
|
<oai:record xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oai="http://www.openarchives.org/OAI/2.0/">
|
152
|
<oai:header>
|
153
|
<dri:objIdentifier>
|
154
|
<xsl:value-of select="concat($ORIG_OBJ_ID, '_transcription')" />
|
155
|
</dri:objIdentifier>
|
156
|
<dri:dateOfCollection>
|
157
|
<xsl:value-of select="$NOW" />
|
158
|
</dri:dateOfCollection>
|
159
|
<dri:repositoryId>
|
160
|
<xsl:value-of select="$REPO_ID" />
|
161
|
</dri:repositoryId>
|
162
|
<!--<xsl:call-template name="headerProvenance" />-->
|
163
|
</oai:header>
|
164
|
<oai:metadata>
|
165
|
<eagleObject xmlns="http://www.eagle-network.eu/eagle">
|
166
|
<xsl:call-template name="idsTemplate">
|
167
|
<xsl:with-param name="postfix">transcription</xsl:with-param>
|
168
|
</xsl:call-template>
|
169
|
<xsl:call-template name="commonPropertiesTemplate" />
|
170
|
<entityType>documental</entityType>
|
171
|
<documentalManifestation>
|
172
|
<documentType>transcription</documentType>
|
173
|
<xsl:call-template name="hasArtifactTemplate" />
|
174
|
<xsl:for-each select="//tei:facsimile/tei:graphic[not(@rend = 'externalLink')]">
|
175
|
<xsl:call-template name="hasVisualRepresentationTemplate">
|
176
|
<xsl:with-param name="url" select="./@url" />
|
177
|
<xsl:with-param name="url_md5" select="dnet:md5(./@url)" />
|
178
|
<xsl:with-param name="ipr_url" select="./tei:desc/tei:ref/@target" />
|
179
|
<xsl:with-param name="ipr_text" select="./tei:desc/tei:ref" />
|
180
|
</xsl:call-template>
|
181
|
</xsl:for-each>
|
182
|
<transcription>
|
183
|
<xsl:call-template name="textsTemplate" />
|
184
|
<criticalApparatus>
|
185
|
<!-- <xsl:value-of select="normalize-space(//tei:text/tei:body/tei:div[@type='apparatus']/tei:p)" /> -->
|
186
|
<xsl:value-of select="//tei:text/tei:body/tei:div[@type='apparatus']/tei:p" />
|
187
|
</criticalApparatus>
|
188
|
<xsl:call-template name="bibliographyTemplate" />
|
189
|
<commentary>
|
190
|
<xsl:value-of select="//tei:text/tei:body/tei:div[@type='commentary']/tei:p//text()" />
|
191
|
</commentary>
|
192
|
</transcription>
|
193
|
</documentalManifestation>
|
194
|
</eagleObject>
|
195
|
</oai:metadata>
|
196
|
</oai:record>
|
197
|
|
198
|
<!-- VISUAL REPRESENTATION -->
|
199
|
<xsl:for-each select="//tei:facsimile/tei:graphic[not(@rend = 'externalLink')]">
|
200
|
<xsl:variable name="URL" select="./@url" />
|
201
|
<xsl:variable name="URL_MD5" select="dnet:md5($URL)" />
|
202
|
<oai:record xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oai="http://www.openarchives.org/OAI/2.0/">
|
203
|
<oai:header>
|
204
|
<dri:objIdentifier>
|
205
|
<xsl:value-of select="concat($ORIG_OBJ_ID, '_', $URL_MD5, '_visual')" />
|
206
|
</dri:objIdentifier>
|
207
|
<dri:dateOfCollection>
|
208
|
<xsl:value-of select="$NOW" />
|
209
|
</dri:dateOfCollection>
|
210
|
<dri:repositoryId>
|
211
|
<xsl:value-of select="$REPO_ID" />
|
212
|
</dri:repositoryId>
|
213
|
<!--<xsl:call-template name="headerProvenance" />-->
|
214
|
</oai:header>
|
215
|
<oai:metadata>
|
216
|
<eagleObject xmlns="http://www.eagle-network.eu/eagle">
|
217
|
<xsl:call-template name="idsTemplate">
|
218
|
<xsl:with-param name="postfix">
|
219
|
<xsl:value-of select="concat($URL_MD5, '::visual')" />
|
220
|
</xsl:with-param>
|
221
|
</xsl:call-template>
|
222
|
<xsl:call-template name="commonPropertiesTemplate">
|
223
|
<xsl:with-param name="imageDesc" select="(./tei:desc//text())[1]" />
|
224
|
</xsl:call-template>
|
225
|
<entityType>visual</entityType>
|
226
|
<visualRepresentation>
|
227
|
<url><xsl:value-of select="$URL" /></url>
|
228
|
<thumbnail><xsl:value-of select="$URL" /></thumbnail>
|
229
|
<visualRepresentationIpr uri="{normalize-space(./tei:desc/tei:ref/@target)}">
|
230
|
<xsl:value-of select="normalize-space(./tei:desc/tei:ref)" />
|
231
|
</visualRepresentationIpr>
|
232
|
<xsl:call-template name="hasArtifactTemplate" />
|
233
|
<xsl:call-template name="hasTranscriptionTemplate" />
|
234
|
|
235
|
<!-- These properties down here cannot be initialized for epidoc -->
|
236
|
<!-- <representationType>???</representationType> -->
|
237
|
<!-- <author>author0</author> -->
|
238
|
<!-- <creationDate>creationDate0</creationDate> -->
|
239
|
<!-- <quality>quality0</quality> -->
|
240
|
<!-- <format>format0</format> -->
|
241
|
<!-- <info3D> -->
|
242
|
<!-- <acquisitionTechnology>acquisitionTechnology0</acquisitionTechnology> -->
|
243
|
<!-- <processingInfo>processingInfo0</processingInfo> -->
|
244
|
<!-- <horizontalResolution>horizontalResolution0</horizontalResolution> -->
|
245
|
<!-- <verticalResolution>verticalResolution0</verticalResolution> -->
|
246
|
<!-- <modelDimensions unit="unit1"> -->
|
247
|
<!-- <width>0</width> -->
|
248
|
<!-- <height>0</height> -->
|
249
|
<!-- <depth>0</depth> -->
|
250
|
<!-- </modelDimensions> -->
|
251
|
<!-- <modelArea>modelArea0</modelArea> -->
|
252
|
<!-- <modelPerimeter>modelPerimeter0</modelPerimeter> -->
|
253
|
<!-- </info3D> -->
|
254
|
<!-- <infoVideo> -->
|
255
|
<!-- <duration>duration0</duration> -->
|
256
|
<!-- <resolution>resolution0</resolution> -->
|
257
|
<!-- <rate>rate0</rate> -->
|
258
|
<!-- </infoVideo> -->
|
259
|
|
260
|
</visualRepresentation>
|
261
|
</eagleObject>
|
262
|
</oai:metadata>
|
263
|
</oai:record>
|
264
|
</xsl:for-each>
|
265
|
</package>
|
266
|
</xsl:template>
|
267
|
|
268
|
<!-- ####################### -->
|
269
|
<!-- # RECURRING TEMPLATES # -->
|
270
|
<!-- ####################### -->
|
271
|
<xsl:template name="idsTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
272
|
<xsl:param name="postfix" required="yes"/>
|
273
|
<dnetResourceIdentifier>
|
274
|
<xsl:value-of select="concat($REPO_ACRONYM, '::', $LOCAL_ID_MD5, '::', $postfix)" />
|
275
|
</dnetResourceIdentifier>
|
276
|
<recordSourceInfo providerName="{$varOfficialName}" providerAcronym="{$REPO_ACRONYM}" landingPage="{$LANDING_PAGE}">
|
277
|
<xsl:value-of select="$LOCAL_ID" />
|
278
|
</recordSourceInfo>
|
279
|
</xsl:template>
|
280
|
|
281
|
<xsl:template name="commonPropertiesTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
282
|
<xsl:param name="imageDesc" />
|
283
|
<editingInfo >
|
284
|
<dateEdited>
|
285
|
<xsl:value-of select="$DATE_EDITED" />
|
286
|
</dateEdited>
|
287
|
<metadataEditor>
|
288
|
<xsl:value-of select="$METADATA_EDITOR" />
|
289
|
</metadataEditor>
|
290
|
</editingInfo>
|
291
|
<metadataIpr uri="{$IPR_URL}">
|
292
|
<xsl:value-of select="$IPR_STATEMENT" />
|
293
|
</metadataIpr>
|
294
|
<title lang="{$LANG}">
|
295
|
<xsl:value-of select="$TITLE" />
|
296
|
</title>
|
297
|
<xsl:choose>
|
298
|
<xsl:when test="$imageDesc != ''">
|
299
|
<description lang="{$LANG}">
|
300
|
<xsl:value-of select="$imageDesc" />
|
301
|
</description>
|
302
|
</xsl:when>
|
303
|
<xsl:otherwise>
|
304
|
<description lang="{$LANG}">
|
305
|
<xsl:value-of select="$DESCRIPTION" />
|
306
|
</description>
|
307
|
</xsl:otherwise>
|
308
|
</xsl:choose>
|
309
|
</xsl:template>
|
310
|
|
311
|
<xsl:template name="textsTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
312
|
<text lang="{//*[local-name()='div'][@id='edition']/@*[local-name()='lang']}">
|
313
|
<xsl:value-of select="//*[local-name()='eagleinlinetext']" />
|
314
|
</text>
|
315
|
<textHtml lang="{//*[local-name()='div'][@id='edition']/@*[local-name()='lang']}">
|
316
|
<xsl:copy-of copy-namespaces="no" select="//*[local-name()='div'][@id='edition']/node()[name() != 'h3']" />
|
317
|
</textHtml>
|
318
|
<textEpidoc>
|
319
|
<xsl:copy-of copy-namespaces="no" select="//*[local-name()='div'][@type='edition']/node()[name() = 'ab']" />
|
320
|
</textEpidoc>
|
321
|
</xsl:template>
|
322
|
|
323
|
<xsl:template name="tmTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
324
|
<hasTmId>
|
325
|
<tmId>
|
326
|
<xsl:choose>
|
327
|
<xsl:when test="$TM_ID != ''">
|
328
|
<xsl:value-of select="$TM_ID" />
|
329
|
</xsl:when>
|
330
|
<xsl:otherwise>
|
331
|
<xsl:value-of select="concat('n/a_', $REPO_ACRONYM, '::', $LOCAL_ID_MD5)" />
|
332
|
</xsl:otherwise>
|
333
|
</xsl:choose>
|
334
|
</tmId>
|
335
|
</hasTmId>
|
336
|
</xsl:template>
|
337
|
|
338
|
<xsl:template name="originDatingTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
339
|
<xsl:variable name="actualNotBefore">
|
340
|
<xsl:choose>
|
341
|
<xsl:when test="//tei:origDate/@notBefore-custom">
|
342
|
<xsl:value-of select="//tei:origDate/@notBefore-custom"/>
|
343
|
</xsl:when>
|
344
|
<xsl:otherwise>
|
345
|
<xsl:value-of select="//tei:origDate/@notBefore"/>
|
346
|
</xsl:otherwise>
|
347
|
</xsl:choose>
|
348
|
</xsl:variable>
|
349
|
<xsl:variable name="actualNotAfter">
|
350
|
<xsl:choose>
|
351
|
<xsl:when test="//tei:origDate/@notAfter-custom">
|
352
|
<xsl:value-of select="//tei:origDate/@notAfter-custom"/>
|
353
|
</xsl:when>
|
354
|
<xsl:otherwise>
|
355
|
<xsl:value-of select="//tei:origDate/@notAfter"/>
|
356
|
</xsl:otherwise>
|
357
|
</xsl:choose>
|
358
|
</xsl:variable>
|
359
|
<originDating notBefore="{$actualNotBefore}" notAfter="{$actualNotAfter}" datingMethod="{//tei:origDate/@datingMethod}" evidence="{//tei:origDate/@evidence}" period="{//tei:origDate/@period}">
|
360
|
<xsl:value-of select="//tei:origDate" />
|
361
|
</originDating>
|
362
|
</xsl:template>
|
363
|
|
364
|
<xsl:template name="inscriptionTypeTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
365
|
<xsl:choose>
|
366
|
<xsl:when test="//tei:keywords/tei:term">
|
367
|
<xsl:for-each select="//tei:keywords/tei:term">
|
368
|
<inscriptionType uri="{normalize-space(./@ref)}">
|
369
|
<xsl:value-of select="lower-case(normalize-space(.))" />
|
370
|
</inscriptionType>
|
371
|
</xsl:for-each>
|
372
|
</xsl:when>
|
373
|
<xsl:otherwise>
|
374
|
<inscriptionType uri="http://www.eagle-network.eu/voc/typeins/lod/143">unknown</inscriptionType>
|
375
|
</xsl:otherwise>
|
376
|
</xsl:choose>
|
377
|
|
378
|
</xsl:template>
|
379
|
|
380
|
<xsl:template name="materialTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
381
|
<xsl:choose>
|
382
|
<xsl:when test="//tei:material">
|
383
|
<xsl:for-each select="//tei:material">
|
384
|
<material uri="{normalize-space(./@ref)}">
|
385
|
<xsl:value-of select="lower-case(normalize-space(.))" />
|
386
|
</material>
|
387
|
</xsl:for-each>
|
388
|
</xsl:when>
|
389
|
<xsl:otherwise>
|
390
|
<material uri="http://www.eagle-network.eu/voc/material/lod/138">unknown</material>
|
391
|
</xsl:otherwise>
|
392
|
</xsl:choose>
|
393
|
</xsl:template>
|
394
|
|
395
|
<xsl:template name="objectTypeTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
396
|
<xsl:choose>
|
397
|
<xsl:when test="//tei:objectType">
|
398
|
<xsl:for-each select="//tei:objectType">
|
399
|
<objectType uri="{normalize-space(./@ref)}">
|
400
|
<xsl:value-of select="lower-case(normalize-space(.))" />
|
401
|
</objectType>
|
402
|
</xsl:for-each>
|
403
|
</xsl:when>
|
404
|
<xsl:otherwise>
|
405
|
<objectType uri="http://www.eagle-network.eu/voc/objtyp/lod/2">unknown</objectType>
|
406
|
</xsl:otherwise>
|
407
|
</xsl:choose>
|
408
|
</xsl:template>
|
409
|
|
410
|
<xsl:template name="findingSpotTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
411
|
<findingSpot>
|
412
|
<romanProvinceItalicRegion uri="{//tei:origPlace/tei:placeName[@type='provinceItalicRegion']/@ref}">
|
413
|
<xsl:value-of select="//tei:origPlace/tei:placeName[@type='provinceItalicRegion']" />
|
414
|
</romanProvinceItalicRegion>
|
415
|
<ancientFindSpot uri="{//tei:origPlace/tei:placeName[not(@type)]/@ref}">
|
416
|
<xsl:value-of select="//tei:origPlace/tei:placeName[not(@type)]" />
|
417
|
</ancientFindSpot>
|
418
|
<modernFindSpot uri="{//tei:provenance[@type='found']/tei:placeName[not(@type)]/@ref}">
|
419
|
<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[not(@type)]" />
|
420
|
</modernFindSpot>
|
421
|
<modernCountry uri="{//tei:provenance[@type='found']/tei:placeName[@type='modernCountry']/@ref}">
|
422
|
<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[@type='modernCountry']" />
|
423
|
</modernCountry>
|
424
|
<modernRegion uri="{//tei:provenance[@type='found']/tei:placeName[@type='modernRegion']/@ref}">
|
425
|
<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[@type='modernRegion']" />
|
426
|
</modernRegion>
|
427
|
<modernProvince uri="{//tei:provenance[@type='found']/tei:placeName[@type='modernProvince']/@ref}">
|
428
|
<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[@type='modernProvince']" />
|
429
|
</modernProvince>
|
430
|
</findingSpot>
|
431
|
</xsl:template>
|
432
|
|
433
|
<xsl:template name="conservationPlaceTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
434
|
<conservationPlace>
|
435
|
<conservationCountry uri="{//tei:msIdentifier/tei:country/tei:placeName/@ref}">
|
436
|
<xsl:value-of select="//tei:msIdentifier/tei:country/tei:placeName" />
|
437
|
</conservationCountry>
|
438
|
<conservationRegion uri="{//tei:msIdentifier/tei:region/tei:placeName/@ref}">
|
439
|
<xsl:value-of select="//tei:msIdentifier/tei:region/tei:placeName" />
|
440
|
</conservationRegion>
|
441
|
<conservationCity uri="{//tei:msIdentifier/tei:settlement/tei:placeName/@ref}">
|
442
|
<xsl:value-of select="//tei:msIdentifier/tei:settlement/tei:placeName" />
|
443
|
</conservationCity>
|
444
|
<museum uri="{//tei:msIdentifier/tei:repository/@ref}">
|
445
|
<xsl:value-of select="//tei:msIdentifier/tei:repository" />
|
446
|
</museum>
|
447
|
<position>
|
448
|
<xsl:value-of select="//tei:msIdentifier/tei:collection" />
|
449
|
</position>
|
450
|
<inventoryNumber>
|
451
|
<xsl:value-of select="//tei:msIdentifier/tei:idno" />
|
452
|
</inventoryNumber>
|
453
|
</conservationPlace>
|
454
|
</xsl:template>
|
455
|
|
456
|
<xsl:template name="bibliographyTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
457
|
<xsl:for-each select="//tei:div[@type='bibliography']//tei:bibl">
|
458
|
<bibliography uri="{./tei:ref/@target}">
|
459
|
<xsl:value-of select="."></xsl:value-of>
|
460
|
</bibliography>
|
461
|
</xsl:for-each>
|
462
|
</xsl:template>
|
463
|
|
464
|
<xsl:template name="hasArtifactTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
465
|
<hasArtifact>
|
466
|
<xsl:call-template name="idsTemplate">
|
467
|
<xsl:with-param name="postfix">artifact</xsl:with-param>
|
468
|
</xsl:call-template>
|
469
|
<xsl:call-template name="tmTemplate" />
|
470
|
<artifactTitle lang="{$LANG}">
|
471
|
<xsl:value-of select="$TITLE" />
|
472
|
</artifactTitle>
|
473
|
<xsl:call-template name="originDatingTemplate" />
|
474
|
<xsl:call-template name="findingSpotTemplate" />
|
475
|
<xsl:call-template name="inscriptionTypeTemplate" />
|
476
|
<xsl:call-template name="objectTypeTemplate" />
|
477
|
<xsl:call-template name="materialTemplate" />
|
478
|
<xsl:call-template name="conservationPlaceTemplate" />
|
479
|
</hasArtifact>
|
480
|
</xsl:template>
|
481
|
|
482
|
<xsl:template name="hasTranscriptionTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
483
|
<hasTranscription>
|
484
|
<xsl:call-template name="idsTemplate">
|
485
|
<xsl:with-param name="postfix">
|
486
|
<xsl:value-of>transcription</xsl:value-of>
|
487
|
</xsl:with-param>
|
488
|
</xsl:call-template>
|
489
|
<xsl:call-template name="textsTemplate" />
|
490
|
<xsl:call-template name="bibliographyTemplate" />
|
491
|
</hasTranscription>
|
492
|
</xsl:template>
|
493
|
|
494
|
<xsl:template name="hasVisualRepresentationTemplate" xmlns="http://www.eagle-network.eu/eagle">
|
495
|
<xsl:param name="url_md5" />
|
496
|
<xsl:param name="url" />
|
497
|
<xsl:param name="ipr_url" />
|
498
|
<xsl:param name="ipr_text" />
|
499
|
<hasVisualRepresentation >
|
500
|
<xsl:call-template name="idsTemplate">
|
501
|
<xsl:with-param name="postfix">
|
502
|
<xsl:value-of select="concat($url_md5, '::visual')" />
|
503
|
</xsl:with-param>
|
504
|
</xsl:call-template>
|
505
|
<url><xsl:value-of select="$url" /></url>
|
506
|
<thumbnail><xsl:value-of select="$url" /></thumbnail>
|
507
|
<visualRepresentationIpr uri="{normalize-space($ipr_url)}"><xsl:value-of select="normalize-space($ipr_text)" /></visualRepresentationIpr>
|
508
|
</hasVisualRepresentation>
|
509
|
</xsl:template>
|
510
|
|
511
|
<!--<xsl:template name="headerProvenance">
|
512
|
<provenance>
|
513
|
<xsl:value-of select="//tei:authority" />
|
514
|
</provenance>
|
515
|
</xsl:template>-->
|
516
|
</xsl:stylesheet>
|
517
|
]]></CODE>
|
518
|
</SCRIPT>
|
519
|
</CONFIGURATION>
|
520
|
<STATUS />
|
521
|
<SECURITY_PARAMETERS />
|
522
|
</BODY>
|
523
|
</RESOURCE_PROFILE>
|