bibframe_ruby 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -2
- data/docs/superpowers/plans/2026-09-09-marc-conversion.md +537 -0
- data/docs/superpowers/specs/2026-09-09-marc-conversion-design.md +110 -0
- data/lib/bibframe_ruby/marc_converter.rb +67 -0
- data/lib/bibframe_ruby/parser.rb +4 -2
- data/lib/bibframe_ruby/version.rb +1 -1
- data/lib/bibframe_ruby.rb +7 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-001-007.xsl +2276 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-006,008.xsl +1295 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-010-048.xsl +1712 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-050-088.xsl +713 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-1XX,7XX,8XX-names.xsl +1141 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-200-247not240-Titles.xsl +771 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-240andX30-UnifTitle.xsl +535 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-250-270.xsl +283 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-3XX.xsl +2245 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-460-468-SeriesTreat.xsl +135 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-490-510-Links.xsl +145 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-5XX.xsl +1448 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-600-662.xsl +1417 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-720+740to755.xsl +333 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-758.xsl +102 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-760-788-Links.xsl +771 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-841-887.xsl +328 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-880.xsl +119 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-ControlSubfields.xsl +495 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-LDR.xsl +183 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-Preprocess0-Splitting.xsl +765 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-Process6-Series.xsl +627 -0
- data/vendor/marc2bibframe2/xsl/ConvSpec-Process8-ProvAct.xsl +1021 -0
- data/vendor/marc2bibframe2/xsl/conf/abbreviations.xml +13 -0
- data/vendor/marc2bibframe2/xsl/conf/code-to-script.xml +399 -0
- data/vendor/marc2bibframe2/xsl/conf/codeMaps.xml +723 -0
- data/vendor/marc2bibframe2/xsl/conf/exclusions.xml +4 -0
- data/vendor/marc2bibframe2/xsl/conf/iso6392-to-1.xml +615 -0
- data/vendor/marc2bibframe2/xsl/conf/languageCrosswalk.xml +1503 -0
- data/vendor/marc2bibframe2/xsl/conf/map880.xml +175 -0
- data/vendor/marc2bibframe2/xsl/conf/scriptCrosswalk.xml +210 -0
- data/vendor/marc2bibframe2/xsl/conf/subjectThesaurus.xml +29 -0
- data/vendor/marc2bibframe2/xsl/marc2bibframe2.xsl +610 -0
- data/vendor/marc2bibframe2/xsl/naco-normalize.xsl +205 -0
- data/vendor/marc2bibframe2/xsl/utils.xsl +963 -0
- data/vendor/marc2bibframe2/xsl/variables.xsl +108 -0
- metadata +68 -1
|
@@ -0,0 +1,2276 @@
|
|
|
1
|
+
<?xml version='1.0'?>
|
|
2
|
+
<xsl:stylesheet version="1.0"
|
|
3
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
4
|
+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
|
5
|
+
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
|
6
|
+
xmlns:bf="http://id.loc.gov/ontologies/bibframe/"
|
|
7
|
+
xmlns:bflc="http://id.loc.gov/ontologies/bflc/"
|
|
8
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
9
|
+
xmlns:madsrdf="http://www.loc.gov/mads/rdf/v1#"
|
|
10
|
+
exclude-result-prefixes="xsl marc">
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
Conversion specs for 001-007
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
<xsl:template match="marc:controlfield[@tag='001']" mode="adminmetadata">
|
|
17
|
+
<xsl:param name="serialization" select="'rdfxml'"/>
|
|
18
|
+
<xsl:choose>
|
|
19
|
+
<xsl:when test="$serialization= 'rdfxml'">
|
|
20
|
+
<bf:identifiedBy>
|
|
21
|
+
<bf:Local>
|
|
22
|
+
<rdf:value><xsl:value-of select="."/></rdf:value>
|
|
23
|
+
<bf:assigner>
|
|
24
|
+
<bf:Agent>
|
|
25
|
+
<xsl:choose>
|
|
26
|
+
<xsl:when test="../marc:controlfield[@tag='003'] = 'DLC' or ../marc:controlfield[@tag='003'] = ''">
|
|
27
|
+
<xsl:attribute name="rdf:about">http://id.loc.gov/vocabulary/organizations/dlc</xsl:attribute>
|
|
28
|
+
<bf:code>DLC</bf:code>
|
|
29
|
+
</xsl:when>
|
|
30
|
+
<xsl:when test="not(../marc:controlfield[@tag='003'])">
|
|
31
|
+
<xsl:attribute name="rdf:about">http://id.loc.gov/vocabulary/organizations/dlc</xsl:attribute>
|
|
32
|
+
<bf:code>DLC</bf:code>
|
|
33
|
+
</xsl:when>
|
|
34
|
+
<xsl:otherwise>
|
|
35
|
+
<bf:code><xsl:value-of select="../marc:controlfield[@tag='003']" /></bf:code>
|
|
36
|
+
</xsl:otherwise>
|
|
37
|
+
</xsl:choose>
|
|
38
|
+
</bf:Agent>
|
|
39
|
+
</bf:assigner>
|
|
40
|
+
</bf:Local>
|
|
41
|
+
</bf:identifiedBy>
|
|
42
|
+
</xsl:when>
|
|
43
|
+
</xsl:choose>
|
|
44
|
+
</xsl:template>
|
|
45
|
+
|
|
46
|
+
<!--
|
|
47
|
+
<xsl:template match="marc:controlfield[@tag='005']" mode="adminmetadata">
|
|
48
|
+
<xsl:param name="serialization" select="'rdfxml'"/>
|
|
49
|
+
<xsl:variable name="changeDate" select="concat(substring(.,1,4),'-',substring(.,5,2),'-',substring(.,7,2),'T',substring(.,9,2),':',substring(.,11,2),':',substring(.,13,2))"/>
|
|
50
|
+
<xsl:if test="not (starts-with($changeDate, '0000'))">
|
|
51
|
+
<xsl:choose>
|
|
52
|
+
<xsl:when test="$serialization= 'rdfxml'">
|
|
53
|
+
<bf:changeDate>
|
|
54
|
+
<xsl:attribute name="rdf:datatype"><xsl:value-of select="$xs"/>dateTime</xsl:attribute>
|
|
55
|
+
<xsl:value-of select="$changeDate"/>
|
|
56
|
+
</bf:changeDate>
|
|
57
|
+
</xsl:when>
|
|
58
|
+
</xsl:choose>
|
|
59
|
+
</xsl:if>
|
|
60
|
+
</xsl:template>
|
|
61
|
+
-->
|
|
62
|
+
|
|
63
|
+
<xsl:template match="marc:controlfield[@tag='007']" mode="work">
|
|
64
|
+
<xsl:param name="serialization" select="'rdfxml'"/>
|
|
65
|
+
<xsl:variable name="vNodeId" select="generate-id(.)"/>
|
|
66
|
+
<!--
|
|
67
|
+
<xsl:variable name="workType">
|
|
68
|
+
<xsl:choose>
|
|
69
|
+
<xsl:when test="contains('ad',substring(.,1,1)) and
|
|
70
|
+
substring(../marc:leader,7,1) != 'e' and
|
|
71
|
+
substring(../marc:leader,7,1) != 'f'">Cartography</xsl:when>
|
|
72
|
+
<xsl:when test="substring(.,1,1) = 'c' and
|
|
73
|
+
substring(../marc:leader,7,1) != 'm'">Multimedia</xsl:when>
|
|
74
|
+
<xsl:when test="contains('gk',substring(.,1,1)) and
|
|
75
|
+
substring(../marc:leader,7,1) != 'k'">StillImage</xsl:when>
|
|
76
|
+
<xsl:when test="substring(.,1,1) = 'h' and
|
|
77
|
+
substring(../marc:leader,7,1) != 'a' and
|
|
78
|
+
substring(../marc:leader,7,1) != 't'">Text</xsl:when>
|
|
79
|
+
<xsl:when test="contains('mv',substring(.,1,1)) and
|
|
80
|
+
substring(../marc:leader,7,1) != 'g'">MovingImage</xsl:when>
|
|
81
|
+
<xsl:when test="substring(.,1,1) = 's' and
|
|
82
|
+
substring(../marc:leader,7,1) != 'i' and
|
|
83
|
+
substring(../marc:leader,7,1) != 'j'">Audio</xsl:when>
|
|
84
|
+
</xsl:choose>
|
|
85
|
+
</xsl:variable>
|
|
86
|
+
<xsl:if test="$workType != ''">
|
|
87
|
+
<xsl:choose>
|
|
88
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
89
|
+
<rdf:type>
|
|
90
|
+
<xsl:attribute name="rdf:resource"><xsl:value-of select="concat($bf,$workType)"/></xsl:attribute>
|
|
91
|
+
</rdf:type>
|
|
92
|
+
</xsl:when>
|
|
93
|
+
</xsl:choose>
|
|
94
|
+
</xsl:if>
|
|
95
|
+
-->
|
|
96
|
+
<xsl:variable name="vContentType">
|
|
97
|
+
<xsl:choose>
|
|
98
|
+
<xsl:when test="substring(.,1,1) = 'a'">
|
|
99
|
+
<xsl:choose>
|
|
100
|
+
<xsl:when test="substring(.,2,1) = 'q'">crf</xsl:when>
|
|
101
|
+
<xsl:when test="contains('dgjkrsy',substring(.,2,1)) and
|
|
102
|
+
substring(../marc:leader,7,1) != 'e' and
|
|
103
|
+
substring(../marc:leader,7,1) != 'f'">cri</xsl:when>
|
|
104
|
+
</xsl:choose>
|
|
105
|
+
</xsl:when>
|
|
106
|
+
<xsl:when test="substring(.,1,1) = 'd'">crf</xsl:when>
|
|
107
|
+
<xsl:when test="contains('gk',substring(.,1,1)) and
|
|
108
|
+
substring(../marc:leader,7,1) != 'k'">sti</xsl:when>
|
|
109
|
+
<xsl:when test="contains('mv',substring(.,1,1)) and
|
|
110
|
+
substring(../marc:leader,7,1) != 'g'">tdi</xsl:when>
|
|
111
|
+
</xsl:choose>
|
|
112
|
+
</xsl:variable>
|
|
113
|
+
<xsl:if test="$vContentType != '' and
|
|
114
|
+
not(../marc:datafield[@tag='336'])">
|
|
115
|
+
<xsl:choose>
|
|
116
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
117
|
+
<bf:content>
|
|
118
|
+
<bf:Content>
|
|
119
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="concat($contentType,$vContentType)"/></xsl:attribute>
|
|
120
|
+
<rdfs:label>
|
|
121
|
+
<xsl:choose>
|
|
122
|
+
<xsl:when test="$vContentType='crf'">cartographic three-dimensional form</xsl:when>
|
|
123
|
+
<xsl:when test="$vContentType='cri'">cartographic image</xsl:when>
|
|
124
|
+
<xsl:when test="$vContentType='tdi'">two-dimensional moving image</xsl:when>
|
|
125
|
+
<xsl:when test="$vContentType='sti'">still image</xsl:when>
|
|
126
|
+
</xsl:choose>
|
|
127
|
+
</rdfs:label>
|
|
128
|
+
</bf:Content>
|
|
129
|
+
</bf:content>
|
|
130
|
+
</xsl:when>
|
|
131
|
+
</xsl:choose>
|
|
132
|
+
</xsl:if>
|
|
133
|
+
<!-- <xsl:choose> -->
|
|
134
|
+
<!-- map -->
|
|
135
|
+
<!-- electronic resource -->
|
|
136
|
+
<!-- globe -->
|
|
137
|
+
<!-- projected graphic -->
|
|
138
|
+
<!-- microform -->
|
|
139
|
+
<!-- nonprojected graphic -->
|
|
140
|
+
<!-- motion picture -->
|
|
141
|
+
<!-- no Work properties for sound recording other than rdf:type -->
|
|
142
|
+
<!-- videorecording -->
|
|
143
|
+
<!-- </xsl:choose> -->
|
|
144
|
+
</xsl:template>
|
|
145
|
+
|
|
146
|
+
<xsl:template match="marc:controlfield[@tag='007']" mode="instance">
|
|
147
|
+
<xsl:param name="serialization" select="'rdfxml'"/>
|
|
148
|
+
<xsl:param name="pInstanceType"/>
|
|
149
|
+
<xsl:variable name="vMediaTypeLabel">
|
|
150
|
+
<xsl:choose>
|
|
151
|
+
<xsl:when test="substring(.,1,1) = 'a'">unmediated</xsl:when>
|
|
152
|
+
<xsl:when test="substring(.,1,1) = 'c'">computer</xsl:when>
|
|
153
|
+
<xsl:when test="substring(.,1,1) = 'g'">projected</xsl:when>
|
|
154
|
+
<xsl:when test="substring(.,1,1) = 'h'">microform</xsl:when>
|
|
155
|
+
<xsl:when test="substring(.,1,1) = 'k'">unmediated</xsl:when>
|
|
156
|
+
<xsl:when test="substring(.,1,1) = 'm'">projected</xsl:when>
|
|
157
|
+
<xsl:when test="substring(.,1,1) = 's'">audio</xsl:when>
|
|
158
|
+
<xsl:when test="substring(.,1,1) = 'v'">video</xsl:when>
|
|
159
|
+
</xsl:choose>
|
|
160
|
+
</xsl:variable>
|
|
161
|
+
<xsl:variable name="vMediaTypeCode">
|
|
162
|
+
<xsl:choose>
|
|
163
|
+
<xsl:when test="substring(.,1,1) = 'a'">n</xsl:when>
|
|
164
|
+
<xsl:when test="substring(.,1,1) = 'c'">c</xsl:when>
|
|
165
|
+
<xsl:when test="substring(.,1,1) = 'g'">g</xsl:when>
|
|
166
|
+
<xsl:when test="substring(.,1,1) = 'h'">h</xsl:when>
|
|
167
|
+
<xsl:when test="substring(.,1,1) = 'k'">n</xsl:when>
|
|
168
|
+
<xsl:when test="substring(.,1,1) = 'm'">g</xsl:when>
|
|
169
|
+
<xsl:when test="substring(.,1,1) = 's'">s</xsl:when>
|
|
170
|
+
<xsl:when test="substring(.,1,1) = 'v'">v</xsl:when>
|
|
171
|
+
</xsl:choose>
|
|
172
|
+
</xsl:variable>
|
|
173
|
+
<xsl:if test="$vMediaTypeLabel != '' and not(../marc:datafield[@tag='337'])">
|
|
174
|
+
<xsl:choose>
|
|
175
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
176
|
+
<bf:media>
|
|
177
|
+
<bf:Media>
|
|
178
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="concat($mediaType,$vMediaTypeCode)"/></xsl:attribute>
|
|
179
|
+
<rdfs:label><xsl:value-of select="$vMediaTypeLabel"/></rdfs:label>
|
|
180
|
+
</bf:Media>
|
|
181
|
+
</bf:media>
|
|
182
|
+
</xsl:when>
|
|
183
|
+
</xsl:choose>
|
|
184
|
+
</xsl:if>
|
|
185
|
+
<xsl:variable name="vCarrierURIs">
|
|
186
|
+
<xsl:variable name="vCarriers338">
|
|
187
|
+
<xsl:apply-templates select="ancestor::marc:record" mode="mURI33X">
|
|
188
|
+
<xsl:with-param name="pTag" select="'338'"/>
|
|
189
|
+
<xsl:with-param name="pCode" select = "'b'"/>
|
|
190
|
+
<xsl:with-param name="pStem" select="$carriers"/>
|
|
191
|
+
</xsl:apply-templates>
|
|
192
|
+
</xsl:variable>
|
|
193
|
+
<xsl:variable name="vCarrier008">
|
|
194
|
+
<xsl:if test="$pInstanceType != 'SecondaryInstance'">
|
|
195
|
+
<xsl:apply-templates select="ancestor::marc:record" mode="mCarrier008URI"/>
|
|
196
|
+
</xsl:if>
|
|
197
|
+
</xsl:variable>
|
|
198
|
+
<xsl:value-of select="normalize-space(concat($vCarriers338,' ',$vCarrier008))"/>
|
|
199
|
+
</xsl:variable>
|
|
200
|
+
<xsl:choose>
|
|
201
|
+
<!-- map -->
|
|
202
|
+
<xsl:when test="substring(.,1,1) = 'a'">
|
|
203
|
+
<xsl:variable name="genreForm">
|
|
204
|
+
<xsl:choose>
|
|
205
|
+
<xsl:when test="substring(.,2,1) = 'd'">Atlases</xsl:when>
|
|
206
|
+
<xsl:when test="substring(.,2,1) = 'g'">Graphs</xsl:when>
|
|
207
|
+
<xsl:when test="substring(.,2,1) = 'j'">Maps</xsl:when>
|
|
208
|
+
<xsl:when test="substring(.,2,1) = 'k'">Cartographic materials</xsl:when>
|
|
209
|
+
<xsl:when test="substring(.,2,1) = 'q'">Models (Representations)</xsl:when>
|
|
210
|
+
<xsl:when test="substring(.,2,1) = 'r'">Remote-sensing images</xsl:when>
|
|
211
|
+
<xsl:when test="substring(.,2,1) = 's'">Geological cross-sections</xsl:when>
|
|
212
|
+
<xsl:when test="substring(.,2,1) = 'y'">Views</xsl:when>
|
|
213
|
+
</xsl:choose>
|
|
214
|
+
</xsl:variable>
|
|
215
|
+
<xsl:variable name="genreUri">
|
|
216
|
+
<xsl:choose>
|
|
217
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($genreForms,'gf2011026058')"/></xsl:when>
|
|
218
|
+
<xsl:when test="substring(.,2,1) = 'g'"><xsl:value-of select="concat($genreForms,'gf2014026061')"/></xsl:when>
|
|
219
|
+
<xsl:when test="substring(.,2,1) = 'j'"><xsl:value-of select="concat($genreForms,'gf2011026387')"/></xsl:when>
|
|
220
|
+
<xsl:when test="substring(.,2,1) = 'k'"><xsl:value-of select="concat($genreForms,'gf2011026113')"/></xsl:when>
|
|
221
|
+
<xsl:when test="substring(.,2,1) = 'q'"><xsl:value-of select="concat($genreForms,'gf2017027245')"/></xsl:when>
|
|
222
|
+
<xsl:when test="substring(.,2,1) = 'r'"><xsl:value-of select="concat($genreForms,'gf2011026530')"/></xsl:when>
|
|
223
|
+
<xsl:when test="substring(.,2,1) = 's'"><xsl:value-of select="concat($genreForms,'gf2011026295')"/></xsl:when>
|
|
224
|
+
<xsl:when test="substring(.,2,1) = 'y'"><xsl:value-of select="concat($genreForms,'gf2018026045')"/></xsl:when>
|
|
225
|
+
</xsl:choose>
|
|
226
|
+
</xsl:variable>
|
|
227
|
+
<xsl:variable name="vCarrierUri">
|
|
228
|
+
<xsl:choose>
|
|
229
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($carriers,'nc')"/></xsl:when>
|
|
230
|
+
<xsl:when test="substring(.,2,1) = 'g'"><xsl:value-of select="concat($carriers,'nb')"/></xsl:when>
|
|
231
|
+
<xsl:when test="substring(.,2,1) = 'j'"><xsl:value-of select="concat($carriers,'nb')"/></xsl:when>
|
|
232
|
+
<xsl:when test="substring(.,2,1) = 'k'"><xsl:value-of select="concat($carriers,'nb')"/></xsl:when>
|
|
233
|
+
<xsl:when test="substring(.,2,1) = 'q'"><xsl:value-of select="concat($carriers,'nr')"/></xsl:when>
|
|
234
|
+
<xsl:when test="substring(.,2,1) = 'r'"><xsl:value-of select="concat($carriers,'nb')"/></xsl:when>
|
|
235
|
+
<xsl:when test="substring(.,2,1) = 's'"><xsl:value-of select="concat($carriers,'nb')"/></xsl:when>
|
|
236
|
+
<xsl:when test="substring(.,2,1) = 'y'"><xsl:value-of select="concat($carriers,'nb')"/></xsl:when>
|
|
237
|
+
</xsl:choose>
|
|
238
|
+
</xsl:variable>
|
|
239
|
+
<xsl:variable name="vCarrierLabel">
|
|
240
|
+
<xsl:choose>
|
|
241
|
+
<xsl:when test="substring(.,2,1) = 'd'">volume</xsl:when>
|
|
242
|
+
<xsl:when test="substring(.,2,1) = 'g'">sheet</xsl:when>
|
|
243
|
+
<xsl:when test="substring(.,2,1) = 'j'">sheet</xsl:when>
|
|
244
|
+
<xsl:when test="substring(.,2,1) = 'k'">sheet</xsl:when>
|
|
245
|
+
<xsl:when test="substring(.,2,1) = 'q'">object</xsl:when>
|
|
246
|
+
<xsl:when test="substring(.,2,1) = 'r'">sheet</xsl:when>
|
|
247
|
+
<xsl:when test="substring(.,2,1) = 's'">sheet</xsl:when>
|
|
248
|
+
<xsl:when test="substring(.,2,1) = 'y'">sheet</xsl:when>
|
|
249
|
+
</xsl:choose>
|
|
250
|
+
</xsl:variable>
|
|
251
|
+
<xsl:variable name="colorContent">
|
|
252
|
+
<xsl:choose>
|
|
253
|
+
<xsl:when test="substring(.,4,1) = 'a'">one color</xsl:when>
|
|
254
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
255
|
+
</xsl:choose>
|
|
256
|
+
</xsl:variable>
|
|
257
|
+
<xsl:variable name="colorContentUri">
|
|
258
|
+
<xsl:choose>
|
|
259
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mcolor,'one')"/></xsl:when>
|
|
260
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
261
|
+
</xsl:choose>
|
|
262
|
+
</xsl:variable>
|
|
263
|
+
<xsl:variable name="baseMaterial">
|
|
264
|
+
<xsl:choose>
|
|
265
|
+
<xsl:when test="substring(.,5,1) = 'a'">paper</xsl:when>
|
|
266
|
+
<xsl:when test="substring(.,5,1) = 'b'">wood</xsl:when>
|
|
267
|
+
<xsl:when test="substring(.,5,1) = 'c'">stone</xsl:when>
|
|
268
|
+
<xsl:when test="substring(.,5,1) = 'd'">metal</xsl:when>
|
|
269
|
+
<xsl:when test="substring(.,5,1) = 'e'">synthetic</xsl:when>
|
|
270
|
+
<xsl:when test="substring(.,5,1) = 'f'">skin</xsl:when>
|
|
271
|
+
<xsl:when test="substring(.,5,1) = 'g'">textile</xsl:when>
|
|
272
|
+
<xsl:when test="substring(.,5,1) = 'i'">plastic</xsl:when>
|
|
273
|
+
<xsl:when test="substring(.,5,1) = 'j'">glass</xsl:when>
|
|
274
|
+
<xsl:when test="substring(.,5,1) = 'l'">vinyl</xsl:when>
|
|
275
|
+
<xsl:when test="substring(.,5,1) = 'n'">vellum</xsl:when>
|
|
276
|
+
<xsl:when test="substring(.,5,1) = 'p'">plaster</xsl:when>
|
|
277
|
+
<xsl:when test="substring(.,5,1) = 'v'">leather</xsl:when>
|
|
278
|
+
<xsl:when test="substring(.,5,1) = 'w'">parchment</xsl:when>
|
|
279
|
+
</xsl:choose>
|
|
280
|
+
</xsl:variable>
|
|
281
|
+
<xsl:variable name="baseMaterialUri">
|
|
282
|
+
<xsl:choose>
|
|
283
|
+
<xsl:when test="substring(.,5,1) = 'a'"><xsl:value-of select="concat($mmaterial,'pap')"/></xsl:when>
|
|
284
|
+
<xsl:when test="substring(.,5,1) = 'b'"><xsl:value-of select="concat($mmaterial,'wod')"/></xsl:when>
|
|
285
|
+
<xsl:when test="substring(.,5,1) = 'c'"><xsl:value-of select="concat($mmaterial,'sto')"/></xsl:when>
|
|
286
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
287
|
+
<xsl:when test="substring(.,5,1) = 'e'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
288
|
+
<xsl:when test="substring(.,5,1) = 'f'"><xsl:value-of select="concat($mmaterial,'ski')"/></xsl:when>
|
|
289
|
+
<xsl:when test="substring(.,5,1) = 'g'"><xsl:value-of select="concat($mmaterial,'tex')"/></xsl:when>
|
|
290
|
+
<xsl:when test="substring(.,5,1) = 'i'"><xsl:value-of select="concat($mmaterial,'pla')"/></xsl:when>
|
|
291
|
+
<xsl:when test="substring(.,5,1) = 'j'"><xsl:value-of select="concat($mmaterial,'gls')"/></xsl:when>
|
|
292
|
+
<xsl:when test="substring(.,5,1) = 'l'"><xsl:value-of select="concat($mmaterial,'vny')"/></xsl:when>
|
|
293
|
+
<xsl:when test="substring(.,5,1) = 'n'"><xsl:value-of select="concat($mmaterial,'vel')"/></xsl:when>
|
|
294
|
+
<xsl:when test="substring(.,5,1) = 'p'"><xsl:value-of select="concat($mmaterial,'plt')"/></xsl:when>
|
|
295
|
+
<xsl:when test="substring(.,5,1) = 'v'"><xsl:value-of select="concat($mmaterial,'lea')"/></xsl:when>
|
|
296
|
+
<xsl:when test="substring(.,5,1) = 'w'"><xsl:value-of select="concat($mmaterial,'par')"/></xsl:when>
|
|
297
|
+
</xsl:choose>
|
|
298
|
+
</xsl:variable>
|
|
299
|
+
<xsl:variable name="generation">
|
|
300
|
+
<xsl:choose>
|
|
301
|
+
<xsl:when test="substring(.,6,1) = 'f'">facsimile</xsl:when>
|
|
302
|
+
<xsl:when test="substring(.,6,1) = 'z'">mixed generation</xsl:when>
|
|
303
|
+
</xsl:choose>
|
|
304
|
+
</xsl:variable>
|
|
305
|
+
<xsl:variable name="generationURI">
|
|
306
|
+
<xsl:choose>
|
|
307
|
+
<xsl:when test="substring(.,6,1) = 'f'"><xsl:value-of select="concat($mgeneration,'facsimile')"/></xsl:when>
|
|
308
|
+
<xsl:when test="substring(.,6,1) = 'z'"><xsl:value-of select="concat($mgeneration,'mixedgen')"/></xsl:when>
|
|
309
|
+
</xsl:choose>
|
|
310
|
+
</xsl:variable>
|
|
311
|
+
<xsl:variable name="productionMethod">
|
|
312
|
+
<xsl:choose>
|
|
313
|
+
<xsl:when test="substring(.,7,1) = 'a'">blueline process</xsl:when>
|
|
314
|
+
<xsl:when test="substring(.,7,1) = 'b'">photocopying</xsl:when>
|
|
315
|
+
</xsl:choose>
|
|
316
|
+
</xsl:variable>
|
|
317
|
+
<xsl:variable name="productionMethodURI">
|
|
318
|
+
<xsl:choose>
|
|
319
|
+
<xsl:when test="substring(.,7,1) = 'a'"><xsl:value-of select="concat($mproduction,'blueline')"/></xsl:when>
|
|
320
|
+
<xsl:when test="substring(.,7,1) = 'b'"><xsl:value-of select="concat($mproduction,'photocopy')"/></xsl:when>
|
|
321
|
+
</xsl:choose>
|
|
322
|
+
</xsl:variable>
|
|
323
|
+
<xsl:variable name="polarity">
|
|
324
|
+
<xsl:choose>
|
|
325
|
+
<xsl:when test="substring(.,8,1) = 'a'">positive</xsl:when>
|
|
326
|
+
<xsl:when test="substring(.,8,1) = 'b'">negative</xsl:when>
|
|
327
|
+
<xsl:when test="substring(.,8,1) = 'm'">mixed</xsl:when>
|
|
328
|
+
</xsl:choose>
|
|
329
|
+
</xsl:variable>
|
|
330
|
+
<xsl:variable name="polarityUri">
|
|
331
|
+
<xsl:choose>
|
|
332
|
+
<xsl:when test="substring(.,8,1) = 'a'"><xsl:value-of select="concat($mpolarity,'pos')"/></xsl:when>
|
|
333
|
+
<xsl:when test="substring(.,8,1) = 'b'"><xsl:value-of select="concat($mpolarity,'neg')"/></xsl:when>
|
|
334
|
+
<xsl:when test="substring(.,8,1) = 'm'"><xsl:value-of select="concat($mpolarity,'mix')"/></xsl:when>
|
|
335
|
+
</xsl:choose>
|
|
336
|
+
</xsl:variable>
|
|
337
|
+
<xsl:choose>
|
|
338
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
339
|
+
<xsl:if test="$genreForm != ''">
|
|
340
|
+
<bf:genreForm>
|
|
341
|
+
<bf:GenreForm>
|
|
342
|
+
<xsl:if test="$genreUri != ''">
|
|
343
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$genreUri"/></xsl:attribute>
|
|
344
|
+
</xsl:if>
|
|
345
|
+
<rdfs:label><xsl:value-of select="$genreForm"/></rdfs:label>
|
|
346
|
+
</bf:GenreForm>
|
|
347
|
+
</bf:genreForm>
|
|
348
|
+
</xsl:if>
|
|
349
|
+
<xsl:if test="$vCarrierUri != '' and not(contains($vCarrierURIs,$vCarrierUri))">
|
|
350
|
+
<bf:carrier>
|
|
351
|
+
<bf:Carrier>
|
|
352
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vCarrierUri"/></xsl:attribute>
|
|
353
|
+
<rdfs:label><xsl:value-of select="$vCarrierLabel"/></rdfs:label>
|
|
354
|
+
</bf:Carrier>
|
|
355
|
+
</bf:carrier>
|
|
356
|
+
</xsl:if>
|
|
357
|
+
<xsl:if test="$baseMaterial != ''">
|
|
358
|
+
<bf:baseMaterial>
|
|
359
|
+
<bf:BaseMaterial>
|
|
360
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
361
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
362
|
+
</xsl:if>
|
|
363
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
364
|
+
</bf:BaseMaterial>
|
|
365
|
+
</bf:baseMaterial>
|
|
366
|
+
</xsl:if>
|
|
367
|
+
<xsl:if test="$colorContent != ''">
|
|
368
|
+
<bf:colorContent>
|
|
369
|
+
<bf:ColorContent>
|
|
370
|
+
<xsl:if test="$colorContentUri != ''">
|
|
371
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
372
|
+
</xsl:if>
|
|
373
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
374
|
+
</bf:ColorContent>
|
|
375
|
+
</bf:colorContent>
|
|
376
|
+
</xsl:if>
|
|
377
|
+
<xsl:if test="$generation != ''">
|
|
378
|
+
<bf:generation>
|
|
379
|
+
<bf:Generation>
|
|
380
|
+
<xsl:if test="$generationURI != ''">
|
|
381
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$generationURI"/></xsl:attribute>
|
|
382
|
+
</xsl:if>
|
|
383
|
+
<rdfs:label><xsl:value-of select="$generation"/></rdfs:label>
|
|
384
|
+
</bf:Generation>
|
|
385
|
+
</bf:generation>
|
|
386
|
+
</xsl:if>
|
|
387
|
+
<xsl:if test="$productionMethod != ''">
|
|
388
|
+
<bf:productionMethod>
|
|
389
|
+
<bf:ProductionMethod>
|
|
390
|
+
<xsl:if test="$productionMethodURI != ''">
|
|
391
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$productionMethodURI"/></xsl:attribute>
|
|
392
|
+
</xsl:if>
|
|
393
|
+
<rdfs:label><xsl:value-of select="$productionMethod"/></rdfs:label>
|
|
394
|
+
</bf:ProductionMethod>
|
|
395
|
+
</bf:productionMethod>
|
|
396
|
+
</xsl:if>
|
|
397
|
+
<xsl:if test="$polarity != ''">
|
|
398
|
+
<bf:polarity>
|
|
399
|
+
<bf:Polarity>
|
|
400
|
+
<xsl:if test="$polarityUri != ''">
|
|
401
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$polarityUri"/></xsl:attribute>
|
|
402
|
+
</xsl:if>
|
|
403
|
+
<rdfs:label><xsl:value-of select="$polarity"/></rdfs:label>
|
|
404
|
+
</bf:Polarity>
|
|
405
|
+
</bf:polarity>
|
|
406
|
+
</xsl:if>
|
|
407
|
+
</xsl:when>
|
|
408
|
+
</xsl:choose>
|
|
409
|
+
</xsl:when>
|
|
410
|
+
<!-- electronic resource -->
|
|
411
|
+
<xsl:when test="substring(.,1,1) = 'c'">
|
|
412
|
+
<xsl:variable name="carrier">
|
|
413
|
+
<xsl:choose>
|
|
414
|
+
<xsl:when test="substring(.,2,1) = 'a'">computer tape cartridge</xsl:when>
|
|
415
|
+
<xsl:when test="substring(.,2,1) = 'b'">computer chip cartridge</xsl:when>
|
|
416
|
+
<xsl:when test="substring(.,2,1) = 'c'">computer disc cartridge</xsl:when>
|
|
417
|
+
<xsl:when test="substring(.,2,1) = 'd'">computer disc</xsl:when>
|
|
418
|
+
<xsl:when test="substring(.,2,1) = 'e'">computer disc cartridge</xsl:when>
|
|
419
|
+
<xsl:when test="substring(.,2,1) = 'f'">computer tape cassette</xsl:when>
|
|
420
|
+
<xsl:when test="substring(.,2,1) = 'h'">computer tape reel</xsl:when>
|
|
421
|
+
<xsl:when test="substring(.,2,1) = 'j'">computer disc cartridge</xsl:when>
|
|
422
|
+
<xsl:when test="substring(.,2,1) = 'k'">computer card</xsl:when>
|
|
423
|
+
<xsl:when test="substring(.,2,1) = 'm'">computer disc</xsl:when>
|
|
424
|
+
<xsl:when test="substring(.,2,1) = 'o'">computer disc</xsl:when>
|
|
425
|
+
<xsl:when test="substring(.,2,1) = 'r'">online resource</xsl:when>
|
|
426
|
+
<xsl:when test="substring(.,2,1) = 'z'">other computer carrier</xsl:when>
|
|
427
|
+
</xsl:choose>
|
|
428
|
+
</xsl:variable>
|
|
429
|
+
<xsl:variable name="carrierUri">
|
|
430
|
+
<xsl:choose>
|
|
431
|
+
<xsl:when test="substring(.,2,1) = 'a'"><xsl:value-of select="concat($carriers,'ca')"/></xsl:when>
|
|
432
|
+
<xsl:when test="substring(.,2,1) = 'b'"><xsl:value-of select="concat($carriers,'cb')"/></xsl:when>
|
|
433
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($carriers,'ce')"/></xsl:when>
|
|
434
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($carriers,'cd')"/></xsl:when>
|
|
435
|
+
<xsl:when test="substring(.,2,1) = 'e'"><xsl:value-of select="concat($carriers,'ce')"/></xsl:when>
|
|
436
|
+
<xsl:when test="substring(.,2,1) = 'f'"><xsl:value-of select="concat($carriers,'cf')"/></xsl:when>
|
|
437
|
+
<xsl:when test="substring(.,2,1) = 'h'"><xsl:value-of select="concat($carriers,'ch')"/></xsl:when>
|
|
438
|
+
<xsl:when test="substring(.,2,1) = 'j'"><xsl:value-of select="concat($carriers,'ce')"/></xsl:when>
|
|
439
|
+
<xsl:when test="substring(.,2,1) = 'k'"><xsl:value-of select="concat($carriers,'ck')"/></xsl:when>
|
|
440
|
+
<xsl:when test="substring(.,2,1) = 'm'"><xsl:value-of select="concat($carriers,'cd')"/></xsl:when>
|
|
441
|
+
<xsl:when test="substring(.,2,1) = 'o'"><xsl:value-of select="concat($carriers,'cd')"/></xsl:when>
|
|
442
|
+
<xsl:when test="substring(.,2,1) = 'r'"><xsl:value-of select="concat($carriers,'cr')"/></xsl:when>
|
|
443
|
+
<xsl:when test="substring(.,2,1) = 'z'"><xsl:value-of select="concat($carriers,'cz')"/></xsl:when>
|
|
444
|
+
</xsl:choose>
|
|
445
|
+
</xsl:variable> <xsl:variable name="colorContent">
|
|
446
|
+
<xsl:choose>
|
|
447
|
+
<xsl:when test="substring(.,4,1) = 'a'">one color</xsl:when>
|
|
448
|
+
<xsl:when test="substring(.,4,1) = 'b'">black and white</xsl:when>
|
|
449
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
450
|
+
<xsl:when test="substring(.,4,1) = 'g'">gray scale</xsl:when>
|
|
451
|
+
<xsl:when test="substring(.,4,1) = 'm'">mixed color</xsl:when>
|
|
452
|
+
</xsl:choose>
|
|
453
|
+
</xsl:variable>
|
|
454
|
+
<xsl:variable name="colorContentUri">
|
|
455
|
+
<xsl:choose>
|
|
456
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mcolor,'one')"/></xsl:when>
|
|
457
|
+
<xsl:when test="substring(.,4,1) = 'b'"><xsl:value-of select="concat($mcolor,'blw')"/></xsl:when>
|
|
458
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
459
|
+
<xsl:when test="substring(.,4,1) = 'g'"><xsl:value-of select="concat($mcolor,'gry')"/></xsl:when>
|
|
460
|
+
<xsl:when test="substring(.,4,1) = 'm'"><xsl:value-of select="concat($mcolor,'mix')"/></xsl:when>
|
|
461
|
+
</xsl:choose>
|
|
462
|
+
</xsl:variable>
|
|
463
|
+
<xsl:variable name="dimensions">
|
|
464
|
+
<xsl:choose>
|
|
465
|
+
<xsl:when test="substring(.,5,1) = 'a'">3 1/2 in.</xsl:when>
|
|
466
|
+
<xsl:when test="substring(.,5,1) = 'e'">12 in.</xsl:when>
|
|
467
|
+
<xsl:when test="substring(.,5,1) = 'g'">4 3/4 in.</xsl:when>
|
|
468
|
+
<xsl:when test="substring(.,5,1) = 'i'">1 1/8 x 2 3/8 in.</xsl:when>
|
|
469
|
+
<xsl:when test="substring(.,5,1) = 'j'">3 7/8 x 2 1/2 in.</xsl:when>
|
|
470
|
+
<xsl:when test="substring(.,5,1) = 'o'">5 1/4 in.</xsl:when>
|
|
471
|
+
<xsl:when test="substring(.,5,1) = 'u'">unknown</xsl:when>
|
|
472
|
+
<xsl:when test="substring(.,5,1) = 'v'">8 in.</xsl:when>
|
|
473
|
+
</xsl:choose>
|
|
474
|
+
</xsl:variable>
|
|
475
|
+
<xsl:variable name="soundContent">
|
|
476
|
+
<xsl:choose>
|
|
477
|
+
<xsl:when test="substring(.,6,1) = ' '">silent</xsl:when>
|
|
478
|
+
<xsl:when test="substring(.,6,1) = 'a'">sound</xsl:when>
|
|
479
|
+
</xsl:choose>
|
|
480
|
+
</xsl:variable>
|
|
481
|
+
<xsl:variable name="soundContentURI">
|
|
482
|
+
<xsl:choose>
|
|
483
|
+
<xsl:when test="substring(.,6,1) = ' '"><xsl:value-of select="concat($msoundcontent,'silent')"/></xsl:when>
|
|
484
|
+
<xsl:when test="substring(.,6,1) = 'a'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
485
|
+
</xsl:choose>
|
|
486
|
+
</xsl:variable>
|
|
487
|
+
<xsl:choose>
|
|
488
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
489
|
+
<xsl:if test="$carrierUri != '' and not(contains($vCarrierURIs,$carrierUri))">
|
|
490
|
+
<bf:carrier>
|
|
491
|
+
<bf:Carrier>
|
|
492
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$carrierUri"/></xsl:attribute>
|
|
493
|
+
<rdfs:label><xsl:value-of select="$carrier"/></rdfs:label>
|
|
494
|
+
</bf:Carrier>
|
|
495
|
+
</bf:carrier>
|
|
496
|
+
</xsl:if>
|
|
497
|
+
<xsl:if test="$dimensions != '' and not(../marc:datafield[@tag='300']/marc:subfield[@code='c'])">
|
|
498
|
+
<bf:dimensions><xsl:value-of select="$dimensions"/></bf:dimensions>
|
|
499
|
+
</xsl:if>
|
|
500
|
+
<xsl:if test="$colorContent != ''">
|
|
501
|
+
<bf:colorContent>
|
|
502
|
+
<bf:ColorContent>
|
|
503
|
+
<xsl:if test="$colorContentUri != ''">
|
|
504
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
505
|
+
</xsl:if>
|
|
506
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
507
|
+
</bf:ColorContent>
|
|
508
|
+
</bf:colorContent>
|
|
509
|
+
</xsl:if>
|
|
510
|
+
<xsl:if test="$soundContent != ''">
|
|
511
|
+
<bf:soundContent>
|
|
512
|
+
<bf:SoundContent>
|
|
513
|
+
<xsl:if test="$soundContentURI != ''">
|
|
514
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$soundContentURI"/></xsl:attribute>
|
|
515
|
+
</xsl:if>
|
|
516
|
+
<rdfs:label><xsl:value-of select="$soundContent"/></rdfs:label>
|
|
517
|
+
</bf:SoundContent>
|
|
518
|
+
</bf:soundContent>
|
|
519
|
+
</xsl:if>
|
|
520
|
+
</xsl:when>
|
|
521
|
+
</xsl:choose>
|
|
522
|
+
</xsl:when>
|
|
523
|
+
<!-- globe -->
|
|
524
|
+
<xsl:when test="substring(.,1,1) = 'd'">
|
|
525
|
+
<xsl:variable name="genreForm">
|
|
526
|
+
<xsl:choose>
|
|
527
|
+
<xsl:when test="substring(.,2,1) = 'a'">Celestial globes</xsl:when>
|
|
528
|
+
<xsl:when test="substring(.,2,1) = 'b'">Globes</xsl:when>
|
|
529
|
+
<xsl:when test="substring(.,2,1) = 'c'">Globes</xsl:when>
|
|
530
|
+
<xsl:when test="substring(.,2,1) = 'e'">Globes</xsl:when>
|
|
531
|
+
</xsl:choose>
|
|
532
|
+
</xsl:variable>
|
|
533
|
+
<xsl:variable name="genreFormURI">
|
|
534
|
+
<xsl:choose>
|
|
535
|
+
<xsl:when test="substring(.,2,1) = 'a'"><xsl:value-of select="concat($genreForms,'gf2011026117')"/></xsl:when>
|
|
536
|
+
<xsl:when test="substring(.,2,1) = 'b'"><xsl:value-of select="concat($genreForms,'gf2011026300')"/></xsl:when>
|
|
537
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($genreForms,'gf2011026300')"/></xsl:when>
|
|
538
|
+
<xsl:when test="substring(.,2,1) = 'e'"><xsl:value-of select="concat($genreForms,'gf2011026300')"/></xsl:when>
|
|
539
|
+
</xsl:choose>
|
|
540
|
+
</xsl:variable>
|
|
541
|
+
<xsl:variable name="colorContent">
|
|
542
|
+
<xsl:choose>
|
|
543
|
+
<xsl:when test="substring(.,4,1) = 'a'">one color</xsl:when>
|
|
544
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
545
|
+
</xsl:choose>
|
|
546
|
+
</xsl:variable>
|
|
547
|
+
<xsl:variable name="colorContentUri">
|
|
548
|
+
<xsl:choose>
|
|
549
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mcolor,'one')"/></xsl:when>
|
|
550
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
551
|
+
</xsl:choose>
|
|
552
|
+
</xsl:variable>
|
|
553
|
+
<xsl:variable name="baseMaterial">
|
|
554
|
+
<xsl:choose>
|
|
555
|
+
<xsl:when test="substring(.,5,1) = 'a'">paper</xsl:when>
|
|
556
|
+
<xsl:when test="substring(.,5,1) = 'b'">wood</xsl:when>
|
|
557
|
+
<xsl:when test="substring(.,5,1) = 'c'">stone</xsl:when>
|
|
558
|
+
<xsl:when test="substring(.,5,1) = 'd'">metal</xsl:when>
|
|
559
|
+
<xsl:when test="substring(.,5,1) = 'e'">synthetic</xsl:when>
|
|
560
|
+
<xsl:when test="substring(.,5,1) = 'f'">skin</xsl:when>
|
|
561
|
+
<xsl:when test="substring(.,5,1) = 'g'">textile</xsl:when>
|
|
562
|
+
<xsl:when test="substring(.,5,1) = 'i'">plastic</xsl:when>
|
|
563
|
+
<xsl:when test="substring(.,5,1) = 'j'">glass</xsl:when>
|
|
564
|
+
<xsl:when test="substring(.,5,1) = 'l'">vinyl</xsl:when>
|
|
565
|
+
<xsl:when test="substring(.,5,1) = 'n'">vellum</xsl:when>
|
|
566
|
+
<xsl:when test="substring(.,5,1) = 'p'">plaster</xsl:when>
|
|
567
|
+
<xsl:when test="substring(.,5,1) = 'v'">leather</xsl:when>
|
|
568
|
+
<xsl:when test="substring(.,5,1) = 'w'">parchment</xsl:when>
|
|
569
|
+
</xsl:choose>
|
|
570
|
+
</xsl:variable>
|
|
571
|
+
<xsl:variable name="baseMaterialUri">
|
|
572
|
+
<xsl:choose>
|
|
573
|
+
<xsl:when test="substring(.,5,1) = 'a'"><xsl:value-of select="concat($mmaterial,'pap')"/></xsl:when>
|
|
574
|
+
<xsl:when test="substring(.,5,1) = 'b'"><xsl:value-of select="concat($mmaterial,'wod')"/></xsl:when>
|
|
575
|
+
<xsl:when test="substring(.,5,1) = 'c'"><xsl:value-of select="concat($mmaterial,'sto')"/></xsl:when>
|
|
576
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
577
|
+
<xsl:when test="substring(.,5,1) = 'e'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
578
|
+
<xsl:when test="substring(.,5,1) = 'f'"><xsl:value-of select="concat($mmaterial,'ski')"/></xsl:when>
|
|
579
|
+
<xsl:when test="substring(.,5,1) = 'g'"><xsl:value-of select="concat($mmaterial,'tex')"/></xsl:when>
|
|
580
|
+
<xsl:when test="substring(.,5,1) = 'i'"><xsl:value-of select="concat($mmaterial,'pla')"/></xsl:when>
|
|
581
|
+
<xsl:when test="substring(.,5,1) = 'j'"><xsl:value-of select="concat($mmaterial,'gls')"/></xsl:when>
|
|
582
|
+
<xsl:when test="substring(.,5,1) = 'l'"><xsl:value-of select="concat($mmaterial,'vny')"/></xsl:when>
|
|
583
|
+
<xsl:when test="substring(.,5,1) = 'n'"><xsl:value-of select="concat($mmaterial,'vel')"/></xsl:when>
|
|
584
|
+
<xsl:when test="substring(.,5,1) = 'p'"><xsl:value-of select="concat($mmaterial,'plt')"/></xsl:when>
|
|
585
|
+
<xsl:when test="substring(.,5,1) = 'v'"><xsl:value-of select="concat($mmaterial,'lea')"/></xsl:when>
|
|
586
|
+
<xsl:when test="substring(.,5,1) = 'w'"><xsl:value-of select="concat($mmaterial,'par')"/></xsl:when>
|
|
587
|
+
</xsl:choose>
|
|
588
|
+
</xsl:variable>
|
|
589
|
+
<xsl:variable name="generation">
|
|
590
|
+
<xsl:choose>
|
|
591
|
+
<xsl:when test="substring(.,6,1) = 'f'">facsimile</xsl:when>
|
|
592
|
+
</xsl:choose>
|
|
593
|
+
</xsl:variable>
|
|
594
|
+
<xsl:variable name="generationUri">
|
|
595
|
+
<xsl:choose>
|
|
596
|
+
<xsl:when test="substring(.,6,1) = 'f'"><xsl:value-of select="concat($mgeneration,'facsimile')"/></xsl:when>
|
|
597
|
+
</xsl:choose>
|
|
598
|
+
</xsl:variable>
|
|
599
|
+
<xsl:choose>
|
|
600
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
601
|
+
<xsl:if test="$genreForm != ''">
|
|
602
|
+
<bf:genreForm>
|
|
603
|
+
<bf:GenreForm>
|
|
604
|
+
<xsl:if test="$genreFormURI != ''">
|
|
605
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$genreFormURI"/></xsl:attribute>
|
|
606
|
+
</xsl:if>
|
|
607
|
+
<rdfs:label><xsl:value-of select="$genreForm"/></rdfs:label>
|
|
608
|
+
</bf:GenreForm>
|
|
609
|
+
</bf:genreForm>
|
|
610
|
+
</xsl:if>
|
|
611
|
+
<xsl:if test="not(../marc:datafield[@tag='337'])">
|
|
612
|
+
<bf:media>
|
|
613
|
+
<bf:Media>
|
|
614
|
+
<xsl:attribute name="rdf:about">http://id.loc.gov/vocabulary/mediaTypes/n</xsl:attribute>
|
|
615
|
+
<rdfs:label>unmediated</rdfs:label>
|
|
616
|
+
</bf:Media>
|
|
617
|
+
</bf:media>
|
|
618
|
+
</xsl:if>
|
|
619
|
+
<xsl:if test="not(contains($vCarrierURIs,'http://id.loc.gov/vocabulary/carriers/nr'))">
|
|
620
|
+
<bf:carrier>
|
|
621
|
+
<bf:Carrier>
|
|
622
|
+
<xsl:attribute name="rdf:about">http://id.loc.gov/vocabulary/carriers/nr</xsl:attribute>
|
|
623
|
+
<rdfs:label>object</rdfs:label>
|
|
624
|
+
</bf:Carrier>
|
|
625
|
+
</bf:carrier>
|
|
626
|
+
</xsl:if>
|
|
627
|
+
<xsl:if test="$baseMaterial != ''">
|
|
628
|
+
<bf:baseMaterial>
|
|
629
|
+
<bf:BaseMaterial>
|
|
630
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
631
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
632
|
+
</xsl:if>
|
|
633
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
634
|
+
</bf:BaseMaterial>
|
|
635
|
+
</bf:baseMaterial>
|
|
636
|
+
</xsl:if>
|
|
637
|
+
<xsl:if test="$colorContent != ''">
|
|
638
|
+
<bf:colorContent>
|
|
639
|
+
<bf:ColorContent>
|
|
640
|
+
<xsl:if test="$colorContentUri != ''">
|
|
641
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
642
|
+
</xsl:if>
|
|
643
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
644
|
+
</bf:ColorContent>
|
|
645
|
+
</bf:colorContent>
|
|
646
|
+
</xsl:if>
|
|
647
|
+
<xsl:if test="$generation != ''">
|
|
648
|
+
<bf:generation>
|
|
649
|
+
<bf:Generation>
|
|
650
|
+
<xsl:if test="$generationUri != ''">
|
|
651
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$generationUri"/></xsl:attribute>
|
|
652
|
+
</xsl:if>
|
|
653
|
+
<rdfs:label><xsl:value-of select="$generation"/></rdfs:label>
|
|
654
|
+
</bf:Generation>
|
|
655
|
+
</bf:generation>
|
|
656
|
+
</xsl:if>
|
|
657
|
+
</xsl:when>
|
|
658
|
+
</xsl:choose>
|
|
659
|
+
</xsl:when>
|
|
660
|
+
<!-- projected graphic -->
|
|
661
|
+
<xsl:when test="substring(.,1,1) = 'g'">
|
|
662
|
+
<xsl:variable name="carrier">
|
|
663
|
+
<xsl:choose>
|
|
664
|
+
<xsl:when test="substring(.,2,1) = 'c'">filmstrip cartridge</xsl:when>
|
|
665
|
+
<xsl:when test="substring(.,2,1) = 'd'">filmslip</xsl:when>
|
|
666
|
+
<xsl:when test="substring(.,2,1) = 'f'">filmstrip</xsl:when>
|
|
667
|
+
<xsl:when test="substring(.,2,1) = 'o'">film roll</xsl:when>
|
|
668
|
+
<xsl:when test="substring(.,2,1) = 's'">slide</xsl:when>
|
|
669
|
+
<xsl:when test="substring(.,2,1) = 't'">overhead transparency</xsl:when>
|
|
670
|
+
</xsl:choose>
|
|
671
|
+
</xsl:variable>
|
|
672
|
+
<xsl:variable name="carrierUri">
|
|
673
|
+
<xsl:choose>
|
|
674
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($carriers,'gc')"/></xsl:when>
|
|
675
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($carriers,'gd')"/></xsl:when>
|
|
676
|
+
<xsl:when test="substring(.,2,1) = 'f'"><xsl:value-of select="concat($carriers,'gf')"/></xsl:when>
|
|
677
|
+
<xsl:when test="substring(.,2,1) = 'o'"><xsl:value-of select="concat($carriers,'mo')"/></xsl:when>
|
|
678
|
+
<xsl:when test="substring(.,2,1) = 's'"><xsl:value-of select="concat($carriers,'gs')"/></xsl:when>
|
|
679
|
+
<xsl:when test="substring(.,2,1) = 't'"><xsl:value-of select="concat($carriers,'gt')"/></xsl:when>
|
|
680
|
+
</xsl:choose>
|
|
681
|
+
</xsl:variable>
|
|
682
|
+
<xsl:variable name="colorContent">
|
|
683
|
+
<xsl:choose>
|
|
684
|
+
<xsl:when test="substring(.,4,1) = 'a'">one color</xsl:when>
|
|
685
|
+
<xsl:when test="substring(.,4,1) = 'b'">black and white</xsl:when>
|
|
686
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
687
|
+
<xsl:when test="substring(.,4,1) = 'h'">hand colored</xsl:when>
|
|
688
|
+
<xsl:when test="substring(.,4,1) = 'm'">mixed color</xsl:when>
|
|
689
|
+
</xsl:choose>
|
|
690
|
+
</xsl:variable>
|
|
691
|
+
<xsl:variable name="colorContentUri">
|
|
692
|
+
<xsl:choose>
|
|
693
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mcolor,'one')"/></xsl:when>
|
|
694
|
+
<xsl:when test="substring(.,4,1) = 'b'"><xsl:value-of select="concat($mcolor,'blw')"/></xsl:when>
|
|
695
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
696
|
+
<xsl:when test="substring(.,4,1) = 'g'"><xsl:value-of select="concat($mcolor,'hnd')"/></xsl:when>
|
|
697
|
+
<xsl:when test="substring(.,4,1) = 'm'"><xsl:value-of select="concat($mcolor,'mix')"/></xsl:when>
|
|
698
|
+
</xsl:choose>
|
|
699
|
+
</xsl:variable>
|
|
700
|
+
<xsl:variable name="baseMaterial">
|
|
701
|
+
<xsl:choose>
|
|
702
|
+
<xsl:when test="substring(.,5,1) = 'd'">glass</xsl:when>
|
|
703
|
+
<xsl:when test="substring(.,5,1) = 'e'">synthetic</xsl:when>
|
|
704
|
+
<xsl:when test="substring(.,5,1) = 'j'">safety base</xsl:when>
|
|
705
|
+
<xsl:when test="substring(.,5,1) = 'k'">non-safety base</xsl:when>
|
|
706
|
+
<xsl:when test="substring(.,5,1) = 'm'">mixed material</xsl:when>
|
|
707
|
+
<xsl:when test="substring(.,5,1) = 'o'">paper</xsl:when>
|
|
708
|
+
</xsl:choose>
|
|
709
|
+
</xsl:variable>
|
|
710
|
+
<xsl:variable name="baseMaterialUri">
|
|
711
|
+
<xsl:choose>
|
|
712
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mmaterial,'gls')"/></xsl:when>
|
|
713
|
+
<xsl:when test="substring(.,5,1) = 'e'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
714
|
+
<xsl:when test="substring(.,5,1) = 'j'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
715
|
+
<xsl:when test="substring(.,5,1) = 'k'"><xsl:value-of select="concat($mmaterial,'nsf')"/></xsl:when>
|
|
716
|
+
<xsl:when test="substring(.,5,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
717
|
+
<xsl:when test="substring(.,5,1) = 'o'"><xsl:value-of select="concat($mmaterial,'pap')"/></xsl:when>
|
|
718
|
+
</xsl:choose>
|
|
719
|
+
</xsl:variable>
|
|
720
|
+
<xsl:variable name="recordingMedium">
|
|
721
|
+
<xsl:choose>
|
|
722
|
+
<xsl:when test="substring(.,7,1) = 'a'">optical</xsl:when>
|
|
723
|
+
<xsl:when test="substring(.,7,1) = 'b'">magnetic</xsl:when>
|
|
724
|
+
<xsl:when test="substring(.,7,1) = 'c'">magnetic</xsl:when>
|
|
725
|
+
<xsl:when test="substring(.,7,1) = 'd'">magneto-optical</xsl:when>
|
|
726
|
+
<xsl:when test="substring(.,7,1) = 'e'">magnetic</xsl:when>
|
|
727
|
+
<xsl:when test="substring(.,7,1) = 'f'">magnetic</xsl:when>
|
|
728
|
+
<xsl:when test="substring(.,7,1) = 'g'">magneto-optical</xsl:when>
|
|
729
|
+
<xsl:when test="substring(.,7,1) = 'h'">magnetic</xsl:when>
|
|
730
|
+
<xsl:when test="substring(.,7,1) = 'i'">optical</xsl:when>
|
|
731
|
+
</xsl:choose>
|
|
732
|
+
</xsl:variable>
|
|
733
|
+
<xsl:variable name="soundContent">
|
|
734
|
+
<xsl:choose>
|
|
735
|
+
<xsl:when test="substring(.,6,1) = ' '">silent</xsl:when>
|
|
736
|
+
<xsl:when test="substring(.,6,1) = 'a'">sound</xsl:when>
|
|
737
|
+
<xsl:when test="substring(.,6,1) = 'b'">sound</xsl:when>
|
|
738
|
+
</xsl:choose>
|
|
739
|
+
</xsl:variable>
|
|
740
|
+
<xsl:variable name="soundContentURI">
|
|
741
|
+
<xsl:choose>
|
|
742
|
+
<xsl:when test="substring(.,6,1) = ' '"><xsl:value-of select="concat($msoundcontent,'silent')"/></xsl:when>
|
|
743
|
+
<xsl:when test="substring(.,6,1) = 'a'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
744
|
+
<xsl:when test="substring(.,6,1) = 'b'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
745
|
+
</xsl:choose>
|
|
746
|
+
</xsl:variable>
|
|
747
|
+
<xsl:variable name="recordingMediumURI">
|
|
748
|
+
<xsl:choose>
|
|
749
|
+
<xsl:when test="substring(.,7,1) = 'a'"><xsl:value-of select="concat($mrecmedium,'opt')"/></xsl:when>
|
|
750
|
+
<xsl:when test="substring(.,7,1) = 'b'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
751
|
+
<xsl:when test="substring(.,7,1) = 'c'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
752
|
+
<xsl:when test="substring(.,7,1) = 'd'"><xsl:value-of select="concat($mrecmedium,'magopt')"/></xsl:when>
|
|
753
|
+
<xsl:when test="substring(.,7,1) = 'e'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
754
|
+
<xsl:when test="substring(.,7,1) = 'f'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
755
|
+
<xsl:when test="substring(.,7,1) = 'g'"><xsl:value-of select="concat($mrecmedium,'magopt')"/></xsl:when>
|
|
756
|
+
<xsl:when test="substring(.,7,1) = 'h'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
757
|
+
<xsl:when test="substring(.,7,1) = 'i'"><xsl:value-of select="concat($mrecmedium,'opt')"/></xsl:when>
|
|
758
|
+
</xsl:choose>
|
|
759
|
+
</xsl:variable>
|
|
760
|
+
<xsl:variable name="dimensions">
|
|
761
|
+
<xsl:choose>
|
|
762
|
+
<xsl:when test="substring(.,8,1) = 'a'">standard 8 mm.</xsl:when>
|
|
763
|
+
<xsl:when test="substring(.,8,1) = 'b'">super 8 mm., single 8 mm.</xsl:when>
|
|
764
|
+
<xsl:when test="substring(.,8,1) = 'c'">9.5 mm.</xsl:when>
|
|
765
|
+
<xsl:when test="substring(.,8,1) = 'd'">16 mm.</xsl:when>
|
|
766
|
+
<xsl:when test="substring(.,8,1) = 'e'">28 mm.</xsl:when>
|
|
767
|
+
<xsl:when test="substring(.,8,1) = 'f'">35 mm.</xsl:when>
|
|
768
|
+
<xsl:when test="substring(.,8,1) = 'g'">70 mm.</xsl:when>
|
|
769
|
+
<xsl:when test="substring(.,8,1) = 'j'">2x2 in. or 5x5 cm.</xsl:when>
|
|
770
|
+
<xsl:when test="substring(.,8,1) = 'k'">2 1/4 in. x 2 1/4 in. or 6x6 cm.</xsl:when>
|
|
771
|
+
<xsl:when test="substring(.,8,1) = 's'">4x5 in. or 10x13 cm.</xsl:when>
|
|
772
|
+
<xsl:when test="substring(.,8,1) = 't'">15x7 in. or 13x18 cm.</xsl:when>
|
|
773
|
+
<xsl:when test="substring(.,8,1) = 'v'">18x10 in. or 21x26 cm.</xsl:when>
|
|
774
|
+
<xsl:when test="substring(.,8,1) = 'w'">9x9 in. or 23x23 cm.</xsl:when>
|
|
775
|
+
<xsl:when test="substring(.,8,1) = 'x'">10x10 in. or 26x26 cm.</xsl:when>
|
|
776
|
+
<xsl:when test="substring(.,8,1) = 'y'">17x7 in. or 18x18 cm.</xsl:when>
|
|
777
|
+
</xsl:choose>
|
|
778
|
+
</xsl:variable>
|
|
779
|
+
<xsl:variable name="mount">
|
|
780
|
+
<xsl:choose>
|
|
781
|
+
<xsl:when test="substring(.,9,1) = 'c'">cardboard</xsl:when>
|
|
782
|
+
<xsl:when test="substring(.,9,1) = 'd'">glass</xsl:when>
|
|
783
|
+
<xsl:when test="substring(.,9,1) = 'e'">synthetic</xsl:when>
|
|
784
|
+
<xsl:when test="substring(.,9,1) = 'h'">metal</xsl:when>
|
|
785
|
+
<xsl:when test="substring(.,9,1) = 'j'">metal</xsl:when>
|
|
786
|
+
<xsl:when test="substring(.,9,1) = 'k'">synthetic</xsl:when>
|
|
787
|
+
<xsl:when test="substring(.,9,1) = 'm'">mixed material</xsl:when>
|
|
788
|
+
</xsl:choose>
|
|
789
|
+
</xsl:variable>
|
|
790
|
+
<xsl:variable name="mount2">
|
|
791
|
+
<xsl:choose>
|
|
792
|
+
<xsl:when test="substring(.,9,1) = 'j'">glass</xsl:when>
|
|
793
|
+
<xsl:when test="substring(.,9,1) = 'k'">glass</xsl:when>
|
|
794
|
+
</xsl:choose>
|
|
795
|
+
</xsl:variable>
|
|
796
|
+
<xsl:variable name="mountUri">
|
|
797
|
+
<xsl:choose>
|
|
798
|
+
<xsl:when test="substring(.,9,1) = 'c'"><xsl:value-of select="concat($mmaterial,'crd')"/></xsl:when>
|
|
799
|
+
<xsl:when test="substring(.,9,1) = 'd'"><xsl:value-of select="concat($mmaterial,'gls')"/></xsl:when>
|
|
800
|
+
<xsl:when test="substring(.,9,1) = 'e'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
801
|
+
<xsl:when test="substring(.,9,1) = 'h'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
802
|
+
<xsl:when test="substring(.,9,1) = 'j'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
803
|
+
<xsl:when test="substring(.,9,1) = 'k'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
804
|
+
<xsl:when test="substring(.,9,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
805
|
+
</xsl:choose>
|
|
806
|
+
</xsl:variable>
|
|
807
|
+
<xsl:variable name="mountUri2">
|
|
808
|
+
<xsl:choose>
|
|
809
|
+
<xsl:when test="substring(.,9,1) = 'j'"><xsl:value-of select="concat($mmaterial,'gls')"/></xsl:when>
|
|
810
|
+
<xsl:when test="substring(.,9,1) = 'k'"><xsl:value-of select="concat($mmaterial,'gls')"/></xsl:when>
|
|
811
|
+
</xsl:choose>
|
|
812
|
+
</xsl:variable>
|
|
813
|
+
<xsl:choose>
|
|
814
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
815
|
+
<xsl:if test="$carrierUri != '' and not(contains($vCarrierURIs,$carrierUri))">
|
|
816
|
+
<bf:carrier>
|
|
817
|
+
<bf:Carrier>
|
|
818
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$carrierUri"/></xsl:attribute>
|
|
819
|
+
<rdfs:label><xsl:value-of select="$carrier"/></rdfs:label>
|
|
820
|
+
</bf:Carrier>
|
|
821
|
+
</bf:carrier>
|
|
822
|
+
</xsl:if>
|
|
823
|
+
<xsl:if test="$baseMaterial != ''">
|
|
824
|
+
<bf:baseMaterial>
|
|
825
|
+
<bf:BaseMaterial>
|
|
826
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
827
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
828
|
+
</xsl:if>
|
|
829
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
830
|
+
</bf:BaseMaterial>
|
|
831
|
+
</bf:baseMaterial>
|
|
832
|
+
</xsl:if>
|
|
833
|
+
<xsl:if test="$colorContent != ''">
|
|
834
|
+
<bf:colorContent>
|
|
835
|
+
<bf:ColorContent>
|
|
836
|
+
<xsl:if test="$colorContentUri != ''">
|
|
837
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
838
|
+
</xsl:if>
|
|
839
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
840
|
+
</bf:ColorContent>
|
|
841
|
+
</bf:colorContent>
|
|
842
|
+
</xsl:if>
|
|
843
|
+
<xsl:if test="$soundContent != ''">
|
|
844
|
+
<bf:soundContent>
|
|
845
|
+
<bf:SoundContent>
|
|
846
|
+
<xsl:if test="$soundContentURI != ''">
|
|
847
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$soundContentURI"/></xsl:attribute>
|
|
848
|
+
</xsl:if>
|
|
849
|
+
<rdfs:label><xsl:value-of select="$soundContent"/></rdfs:label>
|
|
850
|
+
</bf:SoundContent>
|
|
851
|
+
</bf:soundContent>
|
|
852
|
+
</xsl:if>
|
|
853
|
+
<xsl:if test="$recordingMedium != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $recordingMedium]) = 0">
|
|
854
|
+
<bf:soundCharacteristic>
|
|
855
|
+
<bf:RecordingMedium>
|
|
856
|
+
<xsl:if test="$recordingMediumURI != ''">
|
|
857
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$recordingMediumURI"/></xsl:attribute>
|
|
858
|
+
</xsl:if>
|
|
859
|
+
<rdfs:label><xsl:value-of select="$recordingMedium"/></rdfs:label>
|
|
860
|
+
</bf:RecordingMedium>
|
|
861
|
+
</bf:soundCharacteristic>
|
|
862
|
+
</xsl:if>
|
|
863
|
+
<xsl:if test="$dimensions != '' and not(../marc:datafield[@tag='300']/marc:subfield[@code='c'])">
|
|
864
|
+
<bf:dimensions><xsl:value-of select="$dimensions"/></bf:dimensions>
|
|
865
|
+
</xsl:if>
|
|
866
|
+
<xsl:if test="$mount != ''">
|
|
867
|
+
<bf:mount>
|
|
868
|
+
<bf:Mount>
|
|
869
|
+
<xsl:if test="$mountUri != ''">
|
|
870
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$mountUri"/></xsl:attribute>
|
|
871
|
+
</xsl:if>
|
|
872
|
+
<rdfs:label><xsl:value-of select="$mount"/></rdfs:label>
|
|
873
|
+
</bf:Mount>
|
|
874
|
+
</bf:mount>
|
|
875
|
+
</xsl:if>
|
|
876
|
+
<xsl:if test="$mount2 != ''">
|
|
877
|
+
<bf:mount>
|
|
878
|
+
<bf:Mount>
|
|
879
|
+
<xsl:if test="$mountUri2 != ''">
|
|
880
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$mountUri2"/></xsl:attribute>
|
|
881
|
+
</xsl:if>
|
|
882
|
+
<rdfs:label><xsl:value-of select="$mount2"/></rdfs:label>
|
|
883
|
+
</bf:Mount>
|
|
884
|
+
</bf:mount>
|
|
885
|
+
</xsl:if>
|
|
886
|
+
</xsl:when>
|
|
887
|
+
</xsl:choose>
|
|
888
|
+
</xsl:when>
|
|
889
|
+
<!-- microform -->
|
|
890
|
+
<xsl:when test="substring(.,1,1) = 'h'">
|
|
891
|
+
<xsl:variable name="vCarrier">
|
|
892
|
+
<xsl:choose>
|
|
893
|
+
<xsl:when test="substring(.,2,1) = 'a'">aperture card</xsl:when>
|
|
894
|
+
<xsl:when test="substring(.,2,1) = 'b'">microfilm cartridge</xsl:when>
|
|
895
|
+
<xsl:when test="substring(.,2,1) = 'c'">microfilm cassette</xsl:when>
|
|
896
|
+
<xsl:when test="substring(.,2,1) = 'd'">microfilm reel</xsl:when>
|
|
897
|
+
<xsl:when test="substring(.,2,1) = 'e'">microfiche</xsl:when>
|
|
898
|
+
<xsl:when test="substring(.,2,1) = 'f'">microfiche cassette</xsl:when>
|
|
899
|
+
<xsl:when test="substring(.,2,1) = 'g'">microopaque</xsl:when>
|
|
900
|
+
<xsl:when test="substring(.,2,1) = 'h'">microfilm slip</xsl:when>
|
|
901
|
+
<xsl:when test="substring(.,2,1) = 'j'">microfilm roll</xsl:when>
|
|
902
|
+
</xsl:choose>
|
|
903
|
+
</xsl:variable>
|
|
904
|
+
<xsl:variable name="carrierUri">
|
|
905
|
+
<xsl:choose>
|
|
906
|
+
<xsl:when test="substring(.,2,1) = 'a'"><xsl:value-of select="concat($carriers,'ha')"/></xsl:when>
|
|
907
|
+
<xsl:when test="substring(.,2,1) = 'b'"><xsl:value-of select="concat($carriers,'hb')"/></xsl:when>
|
|
908
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($carriers,'hc')"/></xsl:when>
|
|
909
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($carriers,'hd')"/></xsl:when>
|
|
910
|
+
<xsl:when test="substring(.,2,1) = 'e'"><xsl:value-of select="concat($carriers,'he')"/></xsl:when>
|
|
911
|
+
<xsl:when test="substring(.,2,1) = 'f'"><xsl:value-of select="concat($carriers,'hf')"/></xsl:when>
|
|
912
|
+
<xsl:when test="substring(.,2,1) = 'g'"><xsl:value-of select="concat($carriers,'hg')"/></xsl:when>
|
|
913
|
+
<xsl:when test="substring(.,2,1) = 'h'"><xsl:value-of select="concat($carriers,'hh')"/></xsl:when>
|
|
914
|
+
<xsl:when test="substring(.,2,1) = 'j'"><xsl:value-of select="concat($carriers,'hj')"/></xsl:when>
|
|
915
|
+
</xsl:choose>
|
|
916
|
+
</xsl:variable>
|
|
917
|
+
<xsl:variable name="polarity">
|
|
918
|
+
<xsl:choose>
|
|
919
|
+
<xsl:when test="substring(.,4,1) = 'a'">positive</xsl:when>
|
|
920
|
+
<xsl:when test="substring(.,4,1) = 'b'">negative</xsl:when>
|
|
921
|
+
<xsl:when test="substring(.,4,1) = 'm'">mixed polarity</xsl:when>
|
|
922
|
+
</xsl:choose>
|
|
923
|
+
</xsl:variable>
|
|
924
|
+
<xsl:variable name="polarityUri">
|
|
925
|
+
<xsl:choose>
|
|
926
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mpolarity,'pos')"/></xsl:when>
|
|
927
|
+
<xsl:when test="substring(.,4,1) = 'b'"><xsl:value-of select="concat($mpolarity,'neg')"/></xsl:when>
|
|
928
|
+
<xsl:when test="substring(.,4,1) = 'm'"><xsl:value-of select="concat($mpolarity,'mix')"/></xsl:when>
|
|
929
|
+
</xsl:choose>
|
|
930
|
+
</xsl:variable>
|
|
931
|
+
<xsl:variable name="dimensions">
|
|
932
|
+
<xsl:choose>
|
|
933
|
+
<xsl:when test="substring(.,5,1) = 'a'">8 mm.</xsl:when>
|
|
934
|
+
<xsl:when test="substring(.,5,1) = 'd'">16 mm.</xsl:when>
|
|
935
|
+
<xsl:when test="substring(.,5,1) = 'f'">35 mm.</xsl:when>
|
|
936
|
+
<xsl:when test="substring(.,5,1) = 'g'">70 mm.</xsl:when>
|
|
937
|
+
<xsl:when test="substring(.,5,1) = 'h'">105 mm.</xsl:when>
|
|
938
|
+
<xsl:when test="substring(.,5,1) = 'l'">13x5 in. or 8x13 cm.</xsl:when>
|
|
939
|
+
<xsl:when test="substring(.,5,1) = 'm'">4x6 in. or 11x15 cm.</xsl:when>
|
|
940
|
+
<xsl:when test="substring(.,5,1) = 'o'">6x9 in. or 16x23 cm.</xsl:when>
|
|
941
|
+
<xsl:when test="substring(.,5,1) = 'p'">3 1/4 x 7 3/8 in. or 9x19 cm.</xsl:when>
|
|
942
|
+
</xsl:choose>
|
|
943
|
+
</xsl:variable>
|
|
944
|
+
|
|
945
|
+
<xsl:variable name="reductionRatioRangeValue"><xsl:value-of select="substring(.,6,1)" /></xsl:variable>
|
|
946
|
+
<xsl:variable name="reductionRatioRange">
|
|
947
|
+
<xsl:value-of select="$codeMaps/maps/reductionRatioRange/*[name() = $reductionRatioRangeValue]" />
|
|
948
|
+
</xsl:variable>
|
|
949
|
+
<xsl:variable name="reductionRatioRangeUri">
|
|
950
|
+
<xsl:value-of select="$codeMaps/maps/reductionRatioRange/*[name() = $reductionRatioRangeValue]/@href" />
|
|
951
|
+
</xsl:variable>
|
|
952
|
+
<xsl:variable name="reductionRatio">
|
|
953
|
+
<xsl:choose>
|
|
954
|
+
<xsl:when test="substring(.,7,3) = '|||'"/>
|
|
955
|
+
<xsl:when test="substring(.,7,3) = '---'"/>
|
|
956
|
+
<xsl:otherwise><xsl:value-of select="substring(.,7,3)"/></xsl:otherwise>
|
|
957
|
+
</xsl:choose>
|
|
958
|
+
</xsl:variable>
|
|
959
|
+
|
|
960
|
+
<xsl:variable name="colorContent">
|
|
961
|
+
<xsl:choose>
|
|
962
|
+
<xsl:when test="substring(.,10,1) = 'b'">black and white</xsl:when>
|
|
963
|
+
<xsl:when test="substring(.,10,1) = 'c'">color</xsl:when>
|
|
964
|
+
<xsl:when test="substring(.,10,1) = 'm'">mixed color</xsl:when>
|
|
965
|
+
</xsl:choose>
|
|
966
|
+
</xsl:variable>
|
|
967
|
+
<xsl:variable name="colorContentUri">
|
|
968
|
+
<xsl:choose>
|
|
969
|
+
<xsl:when test="substring(.,10,1) = 'b'"><xsl:value-of select="concat($mcolor,'blw')"/></xsl:when>
|
|
970
|
+
<xsl:when test="substring(.,10,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
971
|
+
<xsl:when test="substring(.,10,1) = 'm'"><xsl:value-of select="concat($mcolor,'mix')"/></xsl:when>
|
|
972
|
+
</xsl:choose>
|
|
973
|
+
</xsl:variable>
|
|
974
|
+
|
|
975
|
+
<xsl:variable name="emulsion">
|
|
976
|
+
<xsl:choose>
|
|
977
|
+
<xsl:when test="substring(.,11,1) = 'a'">silver halide emulsion</xsl:when>
|
|
978
|
+
<xsl:when test="substring(.,11,1) = 'b'">diazo emulsion</xsl:when>
|
|
979
|
+
<xsl:when test="substring(.,11,1) = 'c'">vesicular emulsion</xsl:when>
|
|
980
|
+
<xsl:when test="substring(.,11,1) = 'm'">mixed material</xsl:when>
|
|
981
|
+
</xsl:choose>
|
|
982
|
+
</xsl:variable>
|
|
983
|
+
<xsl:variable name="emulsionUri">
|
|
984
|
+
<xsl:choose>
|
|
985
|
+
<xsl:when test="substring(.,11,1) = 'a'"><xsl:value-of select="concat($mmaterial,'slh')"/></xsl:when>
|
|
986
|
+
<xsl:when test="substring(.,11,1) = 'b'"><xsl:value-of select="concat($mmaterial,'dia')"/></xsl:when>
|
|
987
|
+
<xsl:when test="substring(.,11,1) = 'c'"><xsl:value-of select="concat($mmaterial,'ves')"/></xsl:when>
|
|
988
|
+
<xsl:when test="substring(.,11,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
989
|
+
</xsl:choose>
|
|
990
|
+
</xsl:variable>
|
|
991
|
+
<xsl:variable name="generation">
|
|
992
|
+
<xsl:choose>
|
|
993
|
+
<xsl:when test="substring(.,12,1) = 'a'">first generation</xsl:when>
|
|
994
|
+
<xsl:when test="substring(.,12,1) = 'b'">printing master</xsl:when>
|
|
995
|
+
<xsl:when test="substring(.,12,1) = 'c'">service copy</xsl:when>
|
|
996
|
+
<xsl:when test="substring(.,12,1) = 'm'">mixed generation</xsl:when>
|
|
997
|
+
</xsl:choose>
|
|
998
|
+
</xsl:variable>
|
|
999
|
+
<xsl:variable name="generationURI">
|
|
1000
|
+
<xsl:choose>
|
|
1001
|
+
<xsl:when test="substring(.,12,1) = 'a'"><xsl:value-of select="concat($mgeneration,'firstgen')"/></xsl:when>
|
|
1002
|
+
<xsl:when test="substring(.,12,1) = 'b'"><xsl:value-of select="concat($mgeneration,'printmaster')"/></xsl:when>
|
|
1003
|
+
<xsl:when test="substring(.,12,1) = 'c'"><xsl:value-of select="concat($mgeneration,'servcopy')"/></xsl:when>
|
|
1004
|
+
<xsl:when test="substring(.,12,1) = 'm'"><xsl:value-of select="concat($mgeneration,'mixedgen')"/></xsl:when>
|
|
1005
|
+
</xsl:choose>
|
|
1006
|
+
</xsl:variable>
|
|
1007
|
+
<xsl:variable name="baseMaterial">
|
|
1008
|
+
<xsl:choose>
|
|
1009
|
+
<xsl:when test="substring(.,13,1) = 'a'">safety base</xsl:when>
|
|
1010
|
+
<xsl:when test="substring(.,13,1) = 'c'">acetate</xsl:when>
|
|
1011
|
+
<xsl:when test="substring(.,13,1) = 'd'">safety base</xsl:when>
|
|
1012
|
+
<xsl:when test="substring(.,13,1) = 'p'">polyester</xsl:when>
|
|
1013
|
+
<xsl:when test="substring(.,13,1) = 'r'">safety base, mixed</xsl:when>
|
|
1014
|
+
<xsl:when test="substring(.,13,1) = 't'">triacetate</xsl:when>
|
|
1015
|
+
<xsl:when test="substring(.,13,1) = 'i'">nitrate</xsl:when>
|
|
1016
|
+
<xsl:when test="substring(.,13,1) = 'm'">mixed material</xsl:when>
|
|
1017
|
+
</xsl:choose>
|
|
1018
|
+
</xsl:variable>
|
|
1019
|
+
<xsl:variable name="baseMaterialUri">
|
|
1020
|
+
<xsl:choose>
|
|
1021
|
+
<xsl:when test="substring(.,13,1) = 'a'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
1022
|
+
<xsl:when test="substring(.,13,1) = 'c'"><xsl:value-of select="concat($mmaterial,'ace')"/></xsl:when>
|
|
1023
|
+
<xsl:when test="substring(.,13,1) = 'd'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
1024
|
+
<xsl:when test="substring(.,13,1) = 'p'"><xsl:value-of select="concat($mmaterial,'pol')"/></xsl:when>
|
|
1025
|
+
<xsl:when test="substring(.,13,1) = 'r'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
1026
|
+
<xsl:when test="substring(.,13,1) = 't'"><xsl:value-of select="concat($mmaterial,'tri')"/></xsl:when>
|
|
1027
|
+
<xsl:when test="substring(.,13,1) = 'i'"><xsl:value-of select="concat($mmaterial,'nit')"/></xsl:when>
|
|
1028
|
+
<xsl:when test="substring(.,13,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
1029
|
+
</xsl:choose>
|
|
1030
|
+
</xsl:variable>
|
|
1031
|
+
<xsl:choose>
|
|
1032
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
1033
|
+
<xsl:if test="$carrierUri != '' and not(contains($vCarrierURIs,$carrierUri))">
|
|
1034
|
+
<bf:carrier>
|
|
1035
|
+
<bf:Carrier>
|
|
1036
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$carrierUri"/></xsl:attribute>
|
|
1037
|
+
<rdfs:label><xsl:value-of select="$vCarrier"/></rdfs:label>
|
|
1038
|
+
</bf:Carrier>
|
|
1039
|
+
</bf:carrier>
|
|
1040
|
+
</xsl:if>
|
|
1041
|
+
<xsl:if test="$polarity != ''">
|
|
1042
|
+
<bf:polarity>
|
|
1043
|
+
<bf:Polarity>
|
|
1044
|
+
<xsl:if test="$polarityUri != ''">
|
|
1045
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$polarityUri"/></xsl:attribute>
|
|
1046
|
+
</xsl:if>
|
|
1047
|
+
<rdfs:label><xsl:value-of select="$polarity"/></rdfs:label>
|
|
1048
|
+
</bf:Polarity>
|
|
1049
|
+
</bf:polarity>
|
|
1050
|
+
</xsl:if>
|
|
1051
|
+
<xsl:if test="count(../marc:datafield[@tag='300']/marc:subfield[@code='c']) = 0 and $dimensions != ''">
|
|
1052
|
+
<bf:dimensions><xsl:value-of select="$dimensions"/></bf:dimensions>
|
|
1053
|
+
</xsl:if>
|
|
1054
|
+
<xsl:if test="$reductionRatioRange != ''">
|
|
1055
|
+
<bf:reductionRatio>
|
|
1056
|
+
<bf:ReductionRatio>
|
|
1057
|
+
<xsl:if test="$reductionRatioRangeUri != ''">
|
|
1058
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$reductionRatioRangeUri"/></xsl:attribute>
|
|
1059
|
+
</xsl:if>
|
|
1060
|
+
<rdfs:label><xsl:value-of select="$reductionRatioRange"/></rdfs:label>
|
|
1061
|
+
</bf:ReductionRatio>
|
|
1062
|
+
</bf:reductionRatio>
|
|
1063
|
+
</xsl:if>
|
|
1064
|
+
<xsl:if test="$reductionRatio != ''">
|
|
1065
|
+
<bf:reductionRatio>
|
|
1066
|
+
<bf:ReductionRatio>
|
|
1067
|
+
<rdfs:label><xsl:value-of select="$reductionRatio"/></rdfs:label>
|
|
1068
|
+
</bf:ReductionRatio>
|
|
1069
|
+
</bf:reductionRatio>
|
|
1070
|
+
</xsl:if>
|
|
1071
|
+
<xsl:if test="$colorContent != ''">
|
|
1072
|
+
<bf:colorContent>
|
|
1073
|
+
<bf:ColorContent>
|
|
1074
|
+
<xsl:if test="$colorContentUri != ''">
|
|
1075
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
1076
|
+
</xsl:if>
|
|
1077
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
1078
|
+
</bf:ColorContent>
|
|
1079
|
+
</bf:colorContent>
|
|
1080
|
+
</xsl:if>
|
|
1081
|
+
<xsl:if test="$emulsion != ''">
|
|
1082
|
+
<bf:emulsion>
|
|
1083
|
+
<bf:Emulsion>
|
|
1084
|
+
<xsl:if test="$emulsionUri != ''">
|
|
1085
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$emulsionUri"/></xsl:attribute>
|
|
1086
|
+
</xsl:if>
|
|
1087
|
+
<rdfs:label><xsl:value-of select="$emulsion"/></rdfs:label>
|
|
1088
|
+
</bf:Emulsion>
|
|
1089
|
+
</bf:emulsion>
|
|
1090
|
+
</xsl:if>
|
|
1091
|
+
<xsl:if test="$generation != ''">
|
|
1092
|
+
<bf:generation>
|
|
1093
|
+
<bf:Generation>
|
|
1094
|
+
<xsl:if test="$generationURI != ''">
|
|
1095
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$generationURI"/></xsl:attribute>
|
|
1096
|
+
</xsl:if>
|
|
1097
|
+
<rdfs:label><xsl:value-of select="$generation"/></rdfs:label>
|
|
1098
|
+
</bf:Generation>
|
|
1099
|
+
</bf:generation>
|
|
1100
|
+
</xsl:if>
|
|
1101
|
+
<xsl:if test="$baseMaterial != ''">
|
|
1102
|
+
<bf:baseMaterial>
|
|
1103
|
+
<bf:BaseMaterial>
|
|
1104
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
1105
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
1106
|
+
</xsl:if>
|
|
1107
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
1108
|
+
</bf:BaseMaterial>
|
|
1109
|
+
</bf:baseMaterial>
|
|
1110
|
+
</xsl:if>
|
|
1111
|
+
</xsl:when>
|
|
1112
|
+
</xsl:choose>
|
|
1113
|
+
</xsl:when>
|
|
1114
|
+
<!-- nonprojected graphic -->
|
|
1115
|
+
<xsl:when test="substring(.,1,1) = 'k'">
|
|
1116
|
+
<xsl:variable name="genreForm">
|
|
1117
|
+
<xsl:choose>
|
|
1118
|
+
<xsl:when test="substring(.,2,1) = 'c'">Collages</xsl:when>
|
|
1119
|
+
<xsl:when test="substring(.,2,1) = 'd'">Drawings</xsl:when>
|
|
1120
|
+
<xsl:when test="substring(.,2,1) = 'e'">Paintings</xsl:when>
|
|
1121
|
+
<xsl:when test="substring(.,2,1) = 'f'">Photomechanical print</xsl:when>
|
|
1122
|
+
<xsl:when test="substring(.,2,1) = 'g'">Negatives (Photographs)</xsl:when>
|
|
1123
|
+
<xsl:when test="substring(.,2,1) = 'h'">Photographic prints</xsl:when>
|
|
1124
|
+
<xsl:when test="substring(.,2,1) = 'i'">Picture</xsl:when>
|
|
1125
|
+
<xsl:when test="substring(.,2,1) = 'j'">Prints</xsl:when>
|
|
1126
|
+
<xsl:when test="substring(.,2,1) = 'k'">Posters</xsl:when>
|
|
1127
|
+
<xsl:when test="substring(.,2,1) = 'l'">Scientific illustrations</xsl:when>
|
|
1128
|
+
<xsl:when test="substring(.,2,1) = 'n'">Wall charts</xsl:when>
|
|
1129
|
+
<xsl:when test="substring(.,2,1) = 'p'">Postcards</xsl:when>
|
|
1130
|
+
<xsl:when test="substring(.,2,1) = 'v'">Photographs</xsl:when>
|
|
1131
|
+
</xsl:choose>
|
|
1132
|
+
</xsl:variable>
|
|
1133
|
+
<xsl:variable name="genreFormUri">
|
|
1134
|
+
<xsl:choose>
|
|
1135
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($genreForms,'gf2017027227')"/></xsl:when>
|
|
1136
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($genreForms,'gf2017027231')"/></xsl:when>
|
|
1137
|
+
<xsl:when test="substring(.,2,1) = 'e'"><xsl:value-of select="concat($genreForms,'gf2017027246')"/></xsl:when>
|
|
1138
|
+
<xsl:when test="substring(.,2,1) = 'f'"><xsl:value-of select="concat($graphicMaterials,'tgm007730')"/></xsl:when>
|
|
1139
|
+
<xsl:when test="substring(.,2,1) = 'g'"><xsl:value-of select="concat($genreForms,'gf2019026026')"/></xsl:when>
|
|
1140
|
+
<xsl:when test="substring(.,2,1) = 'h'"><xsl:value-of select="concat($graphicMaterials,'tgm007718')"/></xsl:when>
|
|
1141
|
+
<xsl:when test="substring(.,2,1) = 'i'"><xsl:value-of select="concat($genreForms,'gf2017027251')"/></xsl:when>
|
|
1142
|
+
<xsl:when test="substring(.,2,1) = 'j'"><xsl:value-of select="concat($genreForms,'gf2017027255')"/></xsl:when>
|
|
1143
|
+
<xsl:when test="substring(.,2,1) = 'k'"><xsl:value-of select="concat($genreForms,'gf2014026152')"/></xsl:when>
|
|
1144
|
+
<xsl:when test="substring(.,2,1) = 'l'"><xsl:value-of select="concat($graphicMaterials,'tgm009250')"/></xsl:when>
|
|
1145
|
+
<xsl:when test="substring(.,2,1) = 'n'"><xsl:value-of select="concat($genreForms,'gf2016026011')"/></xsl:when>
|
|
1146
|
+
<xsl:when test="substring(.,2,1) = 'p'"><xsl:value-of select="concat($genreForms,'gf2014026151')"/></xsl:when>
|
|
1147
|
+
<xsl:when test="substring(.,2,1) = 'v'"><xsl:value-of select="concat($genreForms,'gf2017027249')"/></xsl:when>
|
|
1148
|
+
</xsl:choose>
|
|
1149
|
+
</xsl:variable>
|
|
1150
|
+
<xsl:variable name="vCarrier">
|
|
1151
|
+
<xsl:choose>
|
|
1152
|
+
<xsl:when test="contains('acdfghijklcopv',substring(.,1,1))">sheet</xsl:when>
|
|
1153
|
+
<xsl:when test="substring(.,1,1) = 'e'">object</xsl:when>
|
|
1154
|
+
</xsl:choose>
|
|
1155
|
+
</xsl:variable>
|
|
1156
|
+
<xsl:variable name="vCarrierUri">
|
|
1157
|
+
<xsl:choose>
|
|
1158
|
+
<xsl:when test="contains('acdfghijklcopv',substring(.,1,1))">http://id.loc.gov/vocabulary/carriers/nb</xsl:when>
|
|
1159
|
+
<xsl:when test="substring(.,1,1) = 'e'">http://id.loc.gov/vocabulary/carriers/nr</xsl:when>
|
|
1160
|
+
</xsl:choose>
|
|
1161
|
+
</xsl:variable>
|
|
1162
|
+
<xsl:variable name="colorContent">
|
|
1163
|
+
<xsl:choose>
|
|
1164
|
+
<xsl:when test="substring(.,4,1) = 'a'">one color</xsl:when>
|
|
1165
|
+
<xsl:when test="substring(.,4,1) = 'b'">black and white</xsl:when>
|
|
1166
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
1167
|
+
<xsl:when test="substring(.,4,1) = 'h'">hand colored</xsl:when>
|
|
1168
|
+
<xsl:when test="substring(.,4,1) = 'm'">mixed color</xsl:when>
|
|
1169
|
+
</xsl:choose>
|
|
1170
|
+
</xsl:variable>
|
|
1171
|
+
<xsl:variable name="colorContentUri">
|
|
1172
|
+
<xsl:choose>
|
|
1173
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mcolor,'one')"/></xsl:when>
|
|
1174
|
+
<xsl:when test="substring(.,4,1) = 'b'"><xsl:value-of select="concat($mcolor,'blw')"/></xsl:when>
|
|
1175
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
1176
|
+
<xsl:when test="substring(.,4,1) = 'h'"><xsl:value-of select="concat($mcolor,'hnd')"/></xsl:when>
|
|
1177
|
+
<xsl:when test="substring(.,4,1) = 'm'"><xsl:value-of select="concat($mcolor,'mix')"/></xsl:when>
|
|
1178
|
+
</xsl:choose>
|
|
1179
|
+
</xsl:variable>
|
|
1180
|
+
<xsl:variable name="baseMaterial">
|
|
1181
|
+
<xsl:choose>
|
|
1182
|
+
<xsl:when test="substring(.,5,1) = 'a'">canvas</xsl:when>
|
|
1183
|
+
<xsl:when test="substring(.,5,1) = 'b'">bristol board</xsl:when>
|
|
1184
|
+
<xsl:when test="substring(.,5,1) = 'c'">cardboard</xsl:when>
|
|
1185
|
+
<xsl:when test="substring(.,5,1) = 'd'">glass</xsl:when>
|
|
1186
|
+
<xsl:when test="substring(.,5,1) = 'e'">synthetic</xsl:when>
|
|
1187
|
+
<xsl:when test="substring(.,5,1) = 'f'">skin</xsl:when>
|
|
1188
|
+
<xsl:when test="substring(.,5,1) = 'g'">textile</xsl:when>
|
|
1189
|
+
<xsl:when test="substring(.,5,1) = 'h'">metal</xsl:when>
|
|
1190
|
+
<xsl:when test="substring(.,5,1) = 'i'">plastic</xsl:when>
|
|
1191
|
+
<xsl:when test="substring(.,5,1) = 'l'">vinyl</xsl:when>
|
|
1192
|
+
<xsl:when test="substring(.,5,1) = 'm'">mixed material</xsl:when>
|
|
1193
|
+
<xsl:when test="substring(.,5,1) = 'n'">vellum</xsl:when>
|
|
1194
|
+
<xsl:when test="substring(.,5,1) = 'o'">paper</xsl:when>
|
|
1195
|
+
<xsl:when test="substring(.,5,1) = 'p'">plaster</xsl:when>
|
|
1196
|
+
<xsl:when test="substring(.,5,1) = 'q'">hardboard</xsl:when>
|
|
1197
|
+
<xsl:when test="substring(.,5,1) = 'r'">porcelain</xsl:when>
|
|
1198
|
+
<xsl:when test="substring(.,5,1) = 's'">stone</xsl:when>
|
|
1199
|
+
<xsl:when test="substring(.,5,1) = 't'">wood</xsl:when>
|
|
1200
|
+
<xsl:when test="substring(.,5,1) = 'v'">leather</xsl:when>
|
|
1201
|
+
<xsl:when test="substring(.,5,1) = 'w'">parchment</xsl:when>
|
|
1202
|
+
</xsl:choose>
|
|
1203
|
+
</xsl:variable>
|
|
1204
|
+
<xsl:variable name="baseMaterialUri">
|
|
1205
|
+
<xsl:choose>
|
|
1206
|
+
<xsl:when test="substring(.,5,1) = 'a'"><xsl:value-of select="concat($mmaterial,'can')"/></xsl:when>
|
|
1207
|
+
<xsl:when test="substring(.,5,1) = 'b'"><xsl:value-of select="concat($mmaterial,'brb')"/></xsl:when>
|
|
1208
|
+
<xsl:when test="substring(.,5,1) = 'c'"><xsl:value-of select="concat($mmaterial,'crd')"/></xsl:when>
|
|
1209
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mmaterial,'gla')"/></xsl:when>
|
|
1210
|
+
<xsl:when test="substring(.,5,1) = 'e'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
1211
|
+
<xsl:when test="substring(.,5,1) = 'f'"><xsl:value-of select="concat($mmaterial,'ski')"/></xsl:when>
|
|
1212
|
+
<xsl:when test="substring(.,5,1) = 'g'"><xsl:value-of select="concat($mmaterial,'tex')"/></xsl:when>
|
|
1213
|
+
<xsl:when test="substring(.,5,1) = 'h'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
1214
|
+
<xsl:when test="substring(.,5,1) = 'i'"><xsl:value-of select="concat($mmaterial,'pla')"/></xsl:when>
|
|
1215
|
+
<xsl:when test="substring(.,5,1) = 'l'"><xsl:value-of select="concat($mmaterial,'vny')"/></xsl:when>
|
|
1216
|
+
<xsl:when test="substring(.,5,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
1217
|
+
<xsl:when test="substring(.,5,1) = 'n'"><xsl:value-of select="concat($mmaterial,'vel')"/></xsl:when>
|
|
1218
|
+
<xsl:when test="substring(.,5,1) = 'o'"><xsl:value-of select="concat($mmaterial,'pap')"/></xsl:when>
|
|
1219
|
+
<xsl:when test="substring(.,5,1) = 'p'"><xsl:value-of select="concat($mmaterial,'plt')"/></xsl:when>
|
|
1220
|
+
<xsl:when test="substring(.,5,1) = 'q'"><xsl:value-of select="concat($mmaterial,'hdb')"/></xsl:when>
|
|
1221
|
+
<xsl:when test="substring(.,5,1) = 'r'"><xsl:value-of select="concat($mmaterial,'por')"/></xsl:when>
|
|
1222
|
+
<xsl:when test="substring(.,5,1) = 's'"><xsl:value-of select="concat($mmaterial,'sto')"/></xsl:when>
|
|
1223
|
+
<xsl:when test="substring(.,5,1) = 't'"><xsl:value-of select="concat($mmaterial,'wod')"/></xsl:when>
|
|
1224
|
+
<xsl:when test="substring(.,5,1) = 'v'"><xsl:value-of select="concat($mmaterial,'lea')"/></xsl:when>
|
|
1225
|
+
<xsl:when test="substring(.,5,1) = 'w'"><xsl:value-of select="concat($mmaterial,'par')"/></xsl:when>
|
|
1226
|
+
</xsl:choose>
|
|
1227
|
+
</xsl:variable>
|
|
1228
|
+
<xsl:variable name="mount">
|
|
1229
|
+
<xsl:choose>
|
|
1230
|
+
<xsl:when test="substring(.,6,1) = 'a'">canvas</xsl:when>
|
|
1231
|
+
<xsl:when test="substring(.,6,1) = 'b'">bristol board</xsl:when>
|
|
1232
|
+
<xsl:when test="substring(.,6,1) = 'c'">cardboard</xsl:when>
|
|
1233
|
+
<xsl:when test="substring(.,6,1) = 'd'">glass</xsl:when>
|
|
1234
|
+
<xsl:when test="substring(.,6,1) = 'e'">synthetic</xsl:when>
|
|
1235
|
+
<xsl:when test="substring(.,6,1) = 'f'">skin</xsl:when>
|
|
1236
|
+
<xsl:when test="substring(.,6,1) = 'g'">textile</xsl:when>
|
|
1237
|
+
<xsl:when test="substring(.,6,1) = 'h'">metal</xsl:when>
|
|
1238
|
+
<xsl:when test="substring(.,6,1) = 'i'">plastic</xsl:when>
|
|
1239
|
+
<xsl:when test="substring(.,6,1) = 'l'">vinyl</xsl:when>
|
|
1240
|
+
<xsl:when test="substring(.,6,1) = 'm'">mixed collection</xsl:when>
|
|
1241
|
+
<xsl:when test="substring(.,6,1) = 'n'">vellum</xsl:when>
|
|
1242
|
+
<xsl:when test="substring(.,6,1) = 'o'">paper</xsl:when>
|
|
1243
|
+
<xsl:when test="substring(.,6,1) = 'p'">plaster</xsl:when>
|
|
1244
|
+
<xsl:when test="substring(.,6,1) = 'q'">hardboard</xsl:when>
|
|
1245
|
+
<xsl:when test="substring(.,6,1) = 'r'">porcelain</xsl:when>
|
|
1246
|
+
<xsl:when test="substring(.,6,1) = 's'">stone</xsl:when>
|
|
1247
|
+
<xsl:when test="substring(.,6,1) = 't'">wood</xsl:when>
|
|
1248
|
+
<xsl:when test="substring(.,6,1) = 'v'">leather</xsl:when>
|
|
1249
|
+
<xsl:when test="substring(.,6,1) = 'w'">parchment</xsl:when>
|
|
1250
|
+
</xsl:choose>
|
|
1251
|
+
</xsl:variable>
|
|
1252
|
+
<xsl:variable name="mountUri">
|
|
1253
|
+
<xsl:choose>
|
|
1254
|
+
<xsl:when test="substring(.,6,1) = 'a'"><xsl:value-of select="concat($mmaterial,'can')"/></xsl:when>
|
|
1255
|
+
<xsl:when test="substring(.,6,1) = 'b'"><xsl:value-of select="concat($mmaterial,'brb')"/></xsl:when>
|
|
1256
|
+
<xsl:when test="substring(.,6,1) = 'c'"><xsl:value-of select="concat($mmaterial,'crd')"/></xsl:when>
|
|
1257
|
+
<xsl:when test="substring(.,6,1) = 'd'"><xsl:value-of select="concat($mmaterial,'gla')"/></xsl:when>
|
|
1258
|
+
<xsl:when test="substring(.,6,1) = 'e'"><xsl:value-of select="concat($mmaterial,'syn')"/></xsl:when>
|
|
1259
|
+
<xsl:when test="substring(.,6,1) = 'f'"><xsl:value-of select="concat($mmaterial,'ski')"/></xsl:when>
|
|
1260
|
+
<xsl:when test="substring(.,6,1) = 'g'"><xsl:value-of select="concat($mmaterial,'tex')"/></xsl:when>
|
|
1261
|
+
<xsl:when test="substring(.,6,1) = 'h'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
1262
|
+
<xsl:when test="substring(.,6,1) = 'i'"><xsl:value-of select="concat($mmaterial,'pla')"/></xsl:when>
|
|
1263
|
+
<xsl:when test="substring(.,6,1) = 'l'"><xsl:value-of select="concat($mmaterial,'vny')"/></xsl:when>
|
|
1264
|
+
<xsl:when test="substring(.,6,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
1265
|
+
<xsl:when test="substring(.,6,1) = 'n'"><xsl:value-of select="concat($mmaterial,'vel')"/></xsl:when>
|
|
1266
|
+
<xsl:when test="substring(.,6,1) = 'o'"><xsl:value-of select="concat($mmaterial,'pap')"/></xsl:when>
|
|
1267
|
+
<xsl:when test="substring(.,6,1) = 'p'"><xsl:value-of select="concat($mmaterial,'plt')"/></xsl:when>
|
|
1268
|
+
<xsl:when test="substring(.,6,1) = 'q'"><xsl:value-of select="concat($mmaterial,'hdb')"/></xsl:when>
|
|
1269
|
+
<xsl:when test="substring(.,6,1) = 'r'"><xsl:value-of select="concat($mmaterial,'por')"/></xsl:when>
|
|
1270
|
+
<xsl:when test="substring(.,6,1) = 's'"><xsl:value-of select="concat($mmaterial,'sto')"/></xsl:when>
|
|
1271
|
+
<xsl:when test="substring(.,6,1) = 't'"><xsl:value-of select="concat($mmaterial,'wod')"/></xsl:when>
|
|
1272
|
+
<xsl:when test="substring(.,6,1) = 'v'"><xsl:value-of select="concat($mmaterial,'lea')"/></xsl:when>
|
|
1273
|
+
<xsl:when test="substring(.,6,1) = 'w'"><xsl:value-of select="concat($mmaterial,'par')"/></xsl:when>
|
|
1274
|
+
</xsl:choose>
|
|
1275
|
+
</xsl:variable>
|
|
1276
|
+
<xsl:choose>
|
|
1277
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
1278
|
+
<xsl:if test="$genreForm != ''">
|
|
1279
|
+
<bf:genreForm>
|
|
1280
|
+
<bf:GenreForm>
|
|
1281
|
+
<xsl:if test="$genreFormUri != ''">
|
|
1282
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$genreFormUri"/></xsl:attribute>
|
|
1283
|
+
</xsl:if>
|
|
1284
|
+
<rdfs:label><xsl:value-of select="$genreForm"/></rdfs:label>
|
|
1285
|
+
</bf:GenreForm>
|
|
1286
|
+
</bf:genreForm>
|
|
1287
|
+
</xsl:if>
|
|
1288
|
+
<xsl:if test="$vCarrierUri != '' and not(contains($vCarrierURIs,$vCarrierUri))">
|
|
1289
|
+
<bf:carrier>
|
|
1290
|
+
<bf:Carrier>
|
|
1291
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vCarrierUri"/></xsl:attribute>
|
|
1292
|
+
<rdfs:label><xsl:value-of select="$vCarrier"/></rdfs:label>
|
|
1293
|
+
</bf:Carrier>
|
|
1294
|
+
</bf:carrier>
|
|
1295
|
+
</xsl:if>
|
|
1296
|
+
<xsl:if test="$colorContent != ''">
|
|
1297
|
+
<bf:colorContent>
|
|
1298
|
+
<bf:ColorContent>
|
|
1299
|
+
<xsl:if test="$colorContentUri != ''">
|
|
1300
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
1301
|
+
</xsl:if>
|
|
1302
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
1303
|
+
</bf:ColorContent>
|
|
1304
|
+
</bf:colorContent>
|
|
1305
|
+
</xsl:if>
|
|
1306
|
+
<xsl:if test="$baseMaterial != ''">
|
|
1307
|
+
<bf:baseMaterial>
|
|
1308
|
+
<bf:BaseMaterial>
|
|
1309
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
1310
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
1311
|
+
</xsl:if>
|
|
1312
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
1313
|
+
</bf:BaseMaterial>
|
|
1314
|
+
</bf:baseMaterial>
|
|
1315
|
+
</xsl:if>
|
|
1316
|
+
<xsl:if test="$mount != ''">
|
|
1317
|
+
<bf:mount>
|
|
1318
|
+
<bf:Mount>
|
|
1319
|
+
<xsl:if test="$mountUri != ''">
|
|
1320
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$mountUri"/></xsl:attribute>
|
|
1321
|
+
</xsl:if>
|
|
1322
|
+
<rdfs:label><xsl:value-of select="$mount"/></rdfs:label>
|
|
1323
|
+
</bf:Mount>
|
|
1324
|
+
</bf:mount>
|
|
1325
|
+
</xsl:if>
|
|
1326
|
+
</xsl:when>
|
|
1327
|
+
</xsl:choose>
|
|
1328
|
+
</xsl:when>
|
|
1329
|
+
<!-- motion picture -->
|
|
1330
|
+
<xsl:when test="substring(.,1,1) = 'm'">
|
|
1331
|
+
<xsl:variable name="vAspectRatioURI">
|
|
1332
|
+
<xsl:choose>
|
|
1333
|
+
<xsl:when test="substring(.,5,1) = 'b'"><xsl:value-of select="concat($mmaspect,'nonana')"/></xsl:when>
|
|
1334
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mmaspect,'ana')"/></xsl:when>
|
|
1335
|
+
<xsl:when test="substring(.,5,1) = 'e'"><xsl:value-of select="concat($mmaspect,'wide')"/></xsl:when>
|
|
1336
|
+
</xsl:choose>
|
|
1337
|
+
</xsl:variable>
|
|
1338
|
+
<xsl:variable name="vAspectRatioLabel">
|
|
1339
|
+
<xsl:choose>
|
|
1340
|
+
<xsl:when test="substring(.,5,1) = 'b'">non-anamorphic</xsl:when>
|
|
1341
|
+
<xsl:when test="substring(.,5,1) = 'd'">anamorphic</xsl:when>
|
|
1342
|
+
<xsl:when test="substring(.,5,1) = 'e'">wide-screen</xsl:when>
|
|
1343
|
+
</xsl:choose>
|
|
1344
|
+
</xsl:variable>
|
|
1345
|
+
<xsl:variable name="vAspectRatioURI2">
|
|
1346
|
+
<xsl:choose>
|
|
1347
|
+
<xsl:when test="substring(.,5,1) = 'b'"><xsl:value-of select="concat($mmaspect,'wide')"/></xsl:when>
|
|
1348
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mmaspect,'wide')"/></xsl:when>
|
|
1349
|
+
</xsl:choose>
|
|
1350
|
+
</xsl:variable>
|
|
1351
|
+
<xsl:variable name="vAspectRatioLabel2">
|
|
1352
|
+
<xsl:choose>
|
|
1353
|
+
<xsl:when test="substring(.,5,1) = 'b'">wide-screen</xsl:when>
|
|
1354
|
+
<xsl:when test="substring(.,5,1) = 'd'">wide-screen</xsl:when>
|
|
1355
|
+
</xsl:choose>
|
|
1356
|
+
</xsl:variable>
|
|
1357
|
+
<xsl:variable name="vAspectRatioNote">
|
|
1358
|
+
<xsl:choose>
|
|
1359
|
+
<xsl:when test="substring(.,5,1) = 'b'">non-anamorphic (wide-screen)</xsl:when>
|
|
1360
|
+
<xsl:when test="substring(.,5,1) = 'd'">anamorphic (wide-screen)</xsl:when>
|
|
1361
|
+
</xsl:choose>
|
|
1362
|
+
</xsl:variable>
|
|
1363
|
+
<xsl:variable name="genreForm2">
|
|
1364
|
+
<xsl:choose>
|
|
1365
|
+
<xsl:when test="substring(.,10,1) = 'c'">Outtakes</xsl:when>
|
|
1366
|
+
<xsl:when test="substring(.,10,1) = 'd'">Rushes</xsl:when>
|
|
1367
|
+
</xsl:choose>
|
|
1368
|
+
</xsl:variable>
|
|
1369
|
+
<xsl:variable name="genreForm2Uri">
|
|
1370
|
+
<xsl:choose>
|
|
1371
|
+
<xsl:when test="substring(.,10,1) = 'c'"><xsl:value-of select="concat($genreForms,'gf2011026435')"/></xsl:when>
|
|
1372
|
+
<xsl:when test="substring(.,10,1) = 'd'"><xsl:value-of select="concat($genreForms,'gf2011026551')"/></xsl:when>
|
|
1373
|
+
</xsl:choose>
|
|
1374
|
+
</xsl:variable>
|
|
1375
|
+
<xsl:variable name="carrier">
|
|
1376
|
+
<xsl:choose>
|
|
1377
|
+
<xsl:when test="substring(.,2,1) = 'c'">film cartridge</xsl:when>
|
|
1378
|
+
<xsl:when test="substring(.,2,1) = 'f'">film cassette</xsl:when>
|
|
1379
|
+
<xsl:when test="substring(.,2,1) = 'o'">film roll</xsl:when>
|
|
1380
|
+
<xsl:when test="substring(.,2,1) = 'r'">film reel</xsl:when>
|
|
1381
|
+
</xsl:choose>
|
|
1382
|
+
</xsl:variable>
|
|
1383
|
+
<xsl:variable name="carrierUri">
|
|
1384
|
+
<xsl:choose>
|
|
1385
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($carriers,'mc')"/></xsl:when>
|
|
1386
|
+
<xsl:when test="substring(.,2,1) = 'f'"><xsl:value-of select="concat($carriers,'mf')"/></xsl:when>
|
|
1387
|
+
<xsl:when test="substring(.,2,1) = 'o'"><xsl:value-of select="concat($carriers,'mz')"/></xsl:when>
|
|
1388
|
+
<xsl:when test="substring(.,2,1) = 'r'"><xsl:value-of select="concat($carriers,'mr')"/></xsl:when>
|
|
1389
|
+
</xsl:choose>
|
|
1390
|
+
</xsl:variable>
|
|
1391
|
+
<xsl:variable name="colorContent">
|
|
1392
|
+
<xsl:choose>
|
|
1393
|
+
<xsl:when test="substring(.,4,1) = 'b'">black and white</xsl:when>
|
|
1394
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
1395
|
+
<xsl:when test="substring(.,4,1) = 'h'">hand colored</xsl:when>
|
|
1396
|
+
<xsl:when test="substring(.,4,1) = 'm'">mixed color</xsl:when>
|
|
1397
|
+
</xsl:choose>
|
|
1398
|
+
</xsl:variable>
|
|
1399
|
+
<xsl:variable name="colorContentUri">
|
|
1400
|
+
<xsl:choose>
|
|
1401
|
+
<xsl:when test="substring(.,4,1) = 'b'"><xsl:value-of select="concat($mcolor,'blw')"/></xsl:when>
|
|
1402
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
1403
|
+
<xsl:when test="substring(.,4,1) = 'h'"><xsl:value-of select="concat($mcolor,'hnd')"/></xsl:when>
|
|
1404
|
+
<xsl:when test="substring(.,4,1) = 'm'"><xsl:value-of select="concat($mcolor,'mix')"/></xsl:when>
|
|
1405
|
+
</xsl:choose>
|
|
1406
|
+
</xsl:variable>
|
|
1407
|
+
<xsl:variable name="vPresentationFormat">
|
|
1408
|
+
<xsl:choose>
|
|
1409
|
+
<xsl:when test="substring(.,5,1) = 'a'">standard sound aperture</xsl:when>
|
|
1410
|
+
<xsl:when test="substring(.,5,1) = 'c'">3D</xsl:when>
|
|
1411
|
+
<xsl:when test="substring(.,5,1) = 'f'">standard silent aperture</xsl:when>
|
|
1412
|
+
</xsl:choose>
|
|
1413
|
+
</xsl:variable>
|
|
1414
|
+
<xsl:variable name="vPresentationFormatURI">
|
|
1415
|
+
<xsl:choose>
|
|
1416
|
+
<xsl:when test="substring(.,5,1) = 'a'"><xsl:value-of select="concat($mpresformat,'sound')"/></xsl:when>
|
|
1417
|
+
<xsl:when test="substring(.,5,1) = 'c'"><xsl:value-of select="concat($mpresformat,'3d')"/></xsl:when>
|
|
1418
|
+
<xsl:when test="substring(.,5,1) = 'f'"><xsl:value-of select="concat($mpresformat,'silent')"/></xsl:when>
|
|
1419
|
+
</xsl:choose>
|
|
1420
|
+
</xsl:variable>
|
|
1421
|
+
<xsl:variable name="soundContent">
|
|
1422
|
+
<xsl:choose>
|
|
1423
|
+
<xsl:when test="substring(.,6,1) = ' '">silent</xsl:when>
|
|
1424
|
+
<xsl:when test="substring(.,6,1) = 'a'">sound</xsl:when>
|
|
1425
|
+
<xsl:when test="substring(.,6,1) = 'b'">sound</xsl:when>
|
|
1426
|
+
</xsl:choose>
|
|
1427
|
+
</xsl:variable>
|
|
1428
|
+
<xsl:variable name="soundContentURI">
|
|
1429
|
+
<xsl:choose>
|
|
1430
|
+
<xsl:when test="substring(.,6,1) = ' '"><xsl:value-of select="concat($msoundcontent,'silent')"/></xsl:when>
|
|
1431
|
+
<xsl:when test="substring(.,6,1) = 'a'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
1432
|
+
<xsl:when test="substring(.,6,1) = 'b'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
1433
|
+
</xsl:choose>
|
|
1434
|
+
</xsl:variable>
|
|
1435
|
+
<xsl:variable name="recordingMedium">
|
|
1436
|
+
<xsl:choose>
|
|
1437
|
+
<xsl:when test="substring(.,7,1) = 'a'">optical</xsl:when>
|
|
1438
|
+
<xsl:when test="substring(.,7,1) = 'b'">magnetic</xsl:when>
|
|
1439
|
+
<xsl:when test="substring(.,7,1) = 'c'">magnetic</xsl:when>
|
|
1440
|
+
<xsl:when test="substring(.,7,1) = 'd'">magneto-optical</xsl:when>
|
|
1441
|
+
<xsl:when test="substring(.,7,1) = 'e'">magnetic</xsl:when>
|
|
1442
|
+
<xsl:when test="substring(.,7,1) = 'f'">magnetic</xsl:when>
|
|
1443
|
+
<xsl:when test="substring(.,7,1) = 'g'">magneto-optical</xsl:when>
|
|
1444
|
+
<xsl:when test="substring(.,7,1) = 'h'">magnetic</xsl:when>
|
|
1445
|
+
<xsl:when test="substring(.,7,1) = 'i'">optical</xsl:when>
|
|
1446
|
+
</xsl:choose>
|
|
1447
|
+
</xsl:variable>
|
|
1448
|
+
<xsl:variable name="recordingMediumURI">
|
|
1449
|
+
<xsl:choose>
|
|
1450
|
+
<xsl:when test="substring(.,7,1) = 'a'"><xsl:value-of select="concat($mrecmedium,'opt')"/></xsl:when>
|
|
1451
|
+
<xsl:when test="substring(.,7,1) = 'b'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
1452
|
+
<xsl:when test="substring(.,7,1) = 'c'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
1453
|
+
<xsl:when test="substring(.,7,1) = 'd'"><xsl:value-of select="concat($mrecmedium,'magopt')"/></xsl:when>
|
|
1454
|
+
<xsl:when test="substring(.,7,1) = 'e'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
1455
|
+
<xsl:when test="substring(.,7,1) = 'f'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
1456
|
+
<xsl:when test="substring(.,7,1) = 'g'"><xsl:value-of select="concat($mrecmedium,'magopt')"/></xsl:when>
|
|
1457
|
+
<xsl:when test="substring(.,7,1) = 'h'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
1458
|
+
<xsl:when test="substring(.,7,1) = 'i'"><xsl:value-of select="concat($mrecmedium,'opt')"/></xsl:when>
|
|
1459
|
+
</xsl:choose>
|
|
1460
|
+
</xsl:variable>
|
|
1461
|
+
<xsl:variable name="dimensions">
|
|
1462
|
+
<xsl:choose>
|
|
1463
|
+
<xsl:when test="substring(.,8,1) = 'a'">8 mm.</xsl:when>
|
|
1464
|
+
<xsl:when test="substring(.,8,1) = 'b'">super 8 mm., single 8 mm.</xsl:when>
|
|
1465
|
+
<xsl:when test="substring(.,8,1) = 'c'">9.5 mm.</xsl:when>
|
|
1466
|
+
<xsl:when test="substring(.,8,1) = 'd'">16 mm.</xsl:when>
|
|
1467
|
+
<xsl:when test="substring(.,8,1) = 'e'">28 mm.</xsl:when>
|
|
1468
|
+
<xsl:when test="substring(.,8,1) = 'f'">35 mm.</xsl:when>
|
|
1469
|
+
<xsl:when test="substring(.,8,1) = 'g'">70 mm.</xsl:when>
|
|
1470
|
+
</xsl:choose>
|
|
1471
|
+
</xsl:variable>
|
|
1472
|
+
<xsl:variable name="playbackChannels">
|
|
1473
|
+
<xsl:choose>
|
|
1474
|
+
<xsl:when test="substring(.,9,1) = 'k'">mixed</xsl:when>
|
|
1475
|
+
<xsl:when test="substring(.,9,1) = 'm'">mono</xsl:when>
|
|
1476
|
+
<xsl:when test="substring(.,9,1) = 'q'">surround</xsl:when>
|
|
1477
|
+
<xsl:when test="substring(.,9,1) = 's'">stereo</xsl:when>
|
|
1478
|
+
</xsl:choose>
|
|
1479
|
+
</xsl:variable>
|
|
1480
|
+
<xsl:variable name="playbackUri">
|
|
1481
|
+
<xsl:choose>
|
|
1482
|
+
<xsl:when test="substring(.,9,1) = 'k'"><xsl:value-of select="concat($mplayback,'mix')"/></xsl:when>
|
|
1483
|
+
<xsl:when test="substring(.,9,1) = 'm'"><xsl:value-of select="concat($mplayback,'mon')"/></xsl:when>
|
|
1484
|
+
<xsl:when test="substring(.,9,1) = 'q'"><xsl:value-of select="concat($mplayback,'mul')"/></xsl:when>
|
|
1485
|
+
<xsl:when test="substring(.,9,1) = 's'"><xsl:value-of select="concat($mplayback,'ste')"/></xsl:when>
|
|
1486
|
+
</xsl:choose>
|
|
1487
|
+
</xsl:variable>
|
|
1488
|
+
<xsl:variable name="polarity">
|
|
1489
|
+
<xsl:choose>
|
|
1490
|
+
<xsl:when test="substring(.,11,1) = 'a'">positive</xsl:when>
|
|
1491
|
+
<xsl:when test="substring(.,11,1) = 'b'">negative</xsl:when>
|
|
1492
|
+
</xsl:choose>
|
|
1493
|
+
</xsl:variable>
|
|
1494
|
+
<xsl:variable name="polarityUri">
|
|
1495
|
+
<xsl:choose>
|
|
1496
|
+
<xsl:when test="substring(.,11,1) = 'a'"><xsl:value-of select="concat($mpolarity,'pos')"/></xsl:when>
|
|
1497
|
+
<xsl:when test="substring(.,11,1) = 'b'"><xsl:value-of select="concat($mpolarity,'neg')"/></xsl:when>
|
|
1498
|
+
</xsl:choose>
|
|
1499
|
+
</xsl:variable>
|
|
1500
|
+
<xsl:variable name="generation">
|
|
1501
|
+
<xsl:choose>
|
|
1502
|
+
<xsl:when test="substring(.,12,1) = 'd'">duplicate</xsl:when>
|
|
1503
|
+
<xsl:when test="substring(.,12,1) = 'e'">master</xsl:when>
|
|
1504
|
+
<xsl:when test="substring(.,12,1) = 'o'">original</xsl:when>
|
|
1505
|
+
<xsl:when test="substring(.,12,1) = 'r'">viewing copy</xsl:when>
|
|
1506
|
+
</xsl:choose>
|
|
1507
|
+
</xsl:variable>
|
|
1508
|
+
<xsl:variable name="generationURI">
|
|
1509
|
+
<xsl:choose>
|
|
1510
|
+
<xsl:when test="substring(.,12,1) = 'd'"><xsl:value-of select="concat($mgeneration,'dupe')"/></xsl:when>
|
|
1511
|
+
<xsl:when test="substring(.,12,1) = 'e'"><xsl:value-of select="concat($mgeneration,'master')"/></xsl:when>
|
|
1512
|
+
<xsl:when test="substring(.,12,1) = 'o'"><xsl:value-of select="concat($mgeneration,'original')"/></xsl:when>
|
|
1513
|
+
<xsl:when test="substring(.,12,1) = 'r'"><xsl:value-of select="concat($mgeneration,'viewcopy')"/></xsl:when>
|
|
1514
|
+
</xsl:choose>
|
|
1515
|
+
</xsl:variable>
|
|
1516
|
+
<xsl:variable name="baseMaterial">
|
|
1517
|
+
<xsl:choose>
|
|
1518
|
+
<xsl:when test="substring(.,13,1) = 'a'">safety base</xsl:when>
|
|
1519
|
+
<xsl:when test="substring(.,13,1) = 'c'">acetate</xsl:when>
|
|
1520
|
+
<xsl:when test="substring(.,13,1) = 'd'">safety base</xsl:when>
|
|
1521
|
+
<xsl:when test="substring(.,13,1) = 'p'">polyester</xsl:when>
|
|
1522
|
+
<xsl:when test="substring(.,13,1) = 'r'">safety base</xsl:when>
|
|
1523
|
+
<xsl:when test="substring(.,13,1) = 't'">triacetate</xsl:when>
|
|
1524
|
+
<xsl:when test="substring(.,13,1) = 'i'">nitrate base</xsl:when>
|
|
1525
|
+
<xsl:when test="substring(.,13,1) = 'm'">mixed material</xsl:when>
|
|
1526
|
+
</xsl:choose>
|
|
1527
|
+
</xsl:variable>
|
|
1528
|
+
<xsl:variable name="baseMaterialUri">
|
|
1529
|
+
<xsl:choose>
|
|
1530
|
+
<xsl:when test="substring(.,13,1) = 'a'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
1531
|
+
<xsl:when test="substring(.,13,1) = 'c'"><xsl:value-of select="concat($mmaterial,'ace')"/></xsl:when>
|
|
1532
|
+
<xsl:when test="substring(.,13,1) = 'd'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
1533
|
+
<xsl:when test="substring(.,13,1) = 'p'"><xsl:value-of select="concat($mmaterial,'pol')"/></xsl:when>
|
|
1534
|
+
<xsl:when test="substring(.,13,1) = 'r'"><xsl:value-of select="concat($mmaterial,'saf')"/></xsl:when>
|
|
1535
|
+
<xsl:when test="substring(.,13,1) = 't'"><xsl:value-of select="concat($mmaterial,'tri')"/></xsl:when>
|
|
1536
|
+
<xsl:when test="substring(.,13,1) = 'i'"><xsl:value-of select="concat($mmaterial,'nit')"/></xsl:when>
|
|
1537
|
+
<xsl:when test="substring(.,13,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mix')"/></xsl:when>
|
|
1538
|
+
</xsl:choose>
|
|
1539
|
+
</xsl:variable>
|
|
1540
|
+
<xsl:choose>
|
|
1541
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
1542
|
+
<xsl:if test="$vAspectRatioURI != ''">
|
|
1543
|
+
<bf:aspectRatio>
|
|
1544
|
+
<bf:AspectRatio>
|
|
1545
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vAspectRatioURI"/></xsl:attribute>
|
|
1546
|
+
<xsl:if test="$vAspectRatioLabel != ''">
|
|
1547
|
+
<rdfs:label><xsl:value-of select="$vAspectRatioLabel"/></rdfs:label>
|
|
1548
|
+
</xsl:if>
|
|
1549
|
+
</bf:AspectRatio>
|
|
1550
|
+
</bf:aspectRatio>
|
|
1551
|
+
</xsl:if>
|
|
1552
|
+
<xsl:if test="$vAspectRatioURI2 != ''">
|
|
1553
|
+
<bf:aspectRatio>
|
|
1554
|
+
<bf:AspectRatio>
|
|
1555
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vAspectRatioURI2"/></xsl:attribute>
|
|
1556
|
+
<xsl:if test="$vAspectRatioLabel2 != ''">
|
|
1557
|
+
<rdfs:label><xsl:value-of select="$vAspectRatioLabel2"/></rdfs:label>
|
|
1558
|
+
</xsl:if>
|
|
1559
|
+
</bf:AspectRatio>
|
|
1560
|
+
</bf:aspectRatio>
|
|
1561
|
+
</xsl:if>
|
|
1562
|
+
<xsl:if test="$vAspectRatioNote != ''">
|
|
1563
|
+
<bf:aspectRatio>
|
|
1564
|
+
<bf:AspectRatio>
|
|
1565
|
+
<bf:note>
|
|
1566
|
+
<bf:Note>
|
|
1567
|
+
<rdfs:label><xsl:value-of select="$vAspectRatioNote"/></rdfs:label>
|
|
1568
|
+
</bf:Note>
|
|
1569
|
+
</bf:note>
|
|
1570
|
+
</bf:AspectRatio>
|
|
1571
|
+
</bf:aspectRatio>
|
|
1572
|
+
</xsl:if>
|
|
1573
|
+
<xsl:if test="$genreForm2 != ''">
|
|
1574
|
+
<bf:genreForm>
|
|
1575
|
+
<bf:GenreForm>
|
|
1576
|
+
<xsl:if test="$genreForm2Uri != ''">
|
|
1577
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$genreForm2Uri"/></xsl:attribute>
|
|
1578
|
+
</xsl:if>
|
|
1579
|
+
<rdfs:label><xsl:value-of select="$genreForm2"/></rdfs:label>
|
|
1580
|
+
</bf:GenreForm>
|
|
1581
|
+
</bf:genreForm>
|
|
1582
|
+
</xsl:if>
|
|
1583
|
+
<xsl:if test="$carrierUri != '' and not(contains($vCarrierURIs,$carrierUri))">
|
|
1584
|
+
<bf:carrier>
|
|
1585
|
+
<bf:Carrier>
|
|
1586
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$carrierUri"/></xsl:attribute>
|
|
1587
|
+
<rdfs:label><xsl:value-of select="$carrier"/></rdfs:label>
|
|
1588
|
+
</bf:Carrier>
|
|
1589
|
+
</bf:carrier>
|
|
1590
|
+
</xsl:if>
|
|
1591
|
+
<xsl:if test="$colorContent != ''">
|
|
1592
|
+
<bf:colorContent>
|
|
1593
|
+
<bf:ColorContent>
|
|
1594
|
+
<xsl:if test="$colorContentUri != ''">
|
|
1595
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
1596
|
+
</xsl:if>
|
|
1597
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
1598
|
+
</bf:ColorContent>
|
|
1599
|
+
</bf:colorContent>
|
|
1600
|
+
</xsl:if>
|
|
1601
|
+
<xsl:if test="$soundContent != ''">
|
|
1602
|
+
<bf:soundContent>
|
|
1603
|
+
<bf:SoundContent>
|
|
1604
|
+
<xsl:if test="$soundContentURI != ''">
|
|
1605
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$soundContentURI"/></xsl:attribute>
|
|
1606
|
+
</xsl:if>
|
|
1607
|
+
<rdfs:label><xsl:value-of select="$soundContent"/></rdfs:label>
|
|
1608
|
+
</bf:SoundContent>
|
|
1609
|
+
</bf:soundContent>
|
|
1610
|
+
</xsl:if>
|
|
1611
|
+
<xsl:if test="$vPresentationFormat != '' and count(../marc:datafield[@tag='345']/marc:subfield[. = $vPresentationFormat]) = 0">
|
|
1612
|
+
<bf:projectionCharacteristic>
|
|
1613
|
+
<bf:PresentationFormat>
|
|
1614
|
+
<xsl:if test="$vPresentationFormatURI != ''">
|
|
1615
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vPresentationFormatURI"/></xsl:attribute>
|
|
1616
|
+
</xsl:if>
|
|
1617
|
+
<rdfs:label><xsl:value-of select="$vPresentationFormat"/></rdfs:label>
|
|
1618
|
+
</bf:PresentationFormat>
|
|
1619
|
+
</bf:projectionCharacteristic>
|
|
1620
|
+
</xsl:if>
|
|
1621
|
+
<xsl:if test="$recordingMedium != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $recordingMedium]) = 0">
|
|
1622
|
+
<bf:soundCharacteristic>
|
|
1623
|
+
<bf:RecordingMedium>
|
|
1624
|
+
<xsl:if test="$recordingMediumURI != ''">
|
|
1625
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$recordingMediumURI"/></xsl:attribute>
|
|
1626
|
+
</xsl:if>
|
|
1627
|
+
<rdfs:label><xsl:value-of select="$recordingMedium"/></rdfs:label>
|
|
1628
|
+
</bf:RecordingMedium>
|
|
1629
|
+
</bf:soundCharacteristic>
|
|
1630
|
+
</xsl:if>
|
|
1631
|
+
<xsl:if test="count(../marc:datafield[@tag='300']/marc:subfield[@code='c']) = 0 and $dimensions != ''">
|
|
1632
|
+
<bf:dimensions><xsl:value-of select="$dimensions"/></bf:dimensions>
|
|
1633
|
+
</xsl:if>
|
|
1634
|
+
<xsl:if test="$playbackChannels != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $playbackChannels]) = 0">
|
|
1635
|
+
<bf:soundCharacteristic>
|
|
1636
|
+
<bf:PlaybackChannels>
|
|
1637
|
+
<xsl:if test="$playbackUri != ''">
|
|
1638
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$playbackUri"/></xsl:attribute>
|
|
1639
|
+
</xsl:if>
|
|
1640
|
+
<rdfs:label><xsl:value-of select="$playbackChannels"/></rdfs:label>
|
|
1641
|
+
</bf:PlaybackChannels>
|
|
1642
|
+
</bf:soundCharacteristic>
|
|
1643
|
+
</xsl:if>
|
|
1644
|
+
<xsl:if test="$polarity != ''">
|
|
1645
|
+
<bf:polarity>
|
|
1646
|
+
<bf:Polarity>
|
|
1647
|
+
<xsl:if test="$polarityUri != ''">
|
|
1648
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$polarityUri"/></xsl:attribute>
|
|
1649
|
+
</xsl:if>
|
|
1650
|
+
<rdfs:label><xsl:value-of select="$polarity"/></rdfs:label>
|
|
1651
|
+
</bf:Polarity>
|
|
1652
|
+
</bf:polarity>
|
|
1653
|
+
</xsl:if>
|
|
1654
|
+
<xsl:if test="$generation != ''">
|
|
1655
|
+
<bf:generation>
|
|
1656
|
+
<bf:Generation>
|
|
1657
|
+
<xsl:if test="$generationURI != ''">
|
|
1658
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$generationURI"/></xsl:attribute>
|
|
1659
|
+
</xsl:if>
|
|
1660
|
+
<rdfs:label><xsl:value-of select="$generation"/></rdfs:label>
|
|
1661
|
+
</bf:Generation>
|
|
1662
|
+
</bf:generation>
|
|
1663
|
+
</xsl:if>
|
|
1664
|
+
<xsl:if test="$baseMaterial != ''">
|
|
1665
|
+
<bf:baseMaterial>
|
|
1666
|
+
<bf:BaseMaterial>
|
|
1667
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
1668
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
1669
|
+
</xsl:if>
|
|
1670
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
1671
|
+
</bf:BaseMaterial>
|
|
1672
|
+
</bf:baseMaterial>
|
|
1673
|
+
</xsl:if>
|
|
1674
|
+
</xsl:when>
|
|
1675
|
+
</xsl:choose>
|
|
1676
|
+
</xsl:when>
|
|
1677
|
+
<!-- sound recording -->
|
|
1678
|
+
<xsl:when test="substring(.,1,1) = 's'">
|
|
1679
|
+
<xsl:variable name="carrier">
|
|
1680
|
+
<xsl:choose>
|
|
1681
|
+
<xsl:when test="substring(.,2,1) = 'd'">audio disc</xsl:when>
|
|
1682
|
+
<xsl:when test="substring(.,2,1) = 'e'">audio cylinder</xsl:when>
|
|
1683
|
+
<xsl:when test="substring(.,2,1) = 'g'">audio cartridge</xsl:when>
|
|
1684
|
+
<xsl:when test="substring(.,2,1) = 'i'">sound track film</xsl:when>
|
|
1685
|
+
<xsl:when test="substring(.,2,1) = 'q'">audio roll</xsl:when>
|
|
1686
|
+
<xsl:when test="substring(.,2,1) = 'r'">online resource</xsl:when>
|
|
1687
|
+
<xsl:when test="substring(.,2,1) = 's'">audiocassette</xsl:when>
|
|
1688
|
+
<xsl:when test="substring(.,2,1) = 't'">audiotape reel</xsl:when>
|
|
1689
|
+
<xsl:when test="substring(.,2,1) = 'w'">audio wire reel</xsl:when>
|
|
1690
|
+
</xsl:choose>
|
|
1691
|
+
</xsl:variable>
|
|
1692
|
+
<xsl:variable name="carrierUri">
|
|
1693
|
+
<xsl:choose>
|
|
1694
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($carriers,'sd')"/></xsl:when>
|
|
1695
|
+
<xsl:when test="substring(.,2,1) = 'e'"><xsl:value-of select="concat($carriers,'se')"/></xsl:when>
|
|
1696
|
+
<xsl:when test="substring(.,2,1) = 'g'"><xsl:value-of select="concat($carriers,'sg')"/></xsl:when>
|
|
1697
|
+
<xsl:when test="substring(.,2,1) = 'i'"><xsl:value-of select="concat($carriers,'si')"/></xsl:when>
|
|
1698
|
+
<xsl:when test="substring(.,2,1) = 'q'"><xsl:value-of select="concat($carriers,'sq')"/></xsl:when>
|
|
1699
|
+
<xsl:when test="substring(.,2,1) = 'r'"><xsl:value-of select="concat($carriers,'cr')"/></xsl:when>
|
|
1700
|
+
<xsl:when test="substring(.,2,1) = 's'"><xsl:value-of select="concat($carriers,'ss')"/></xsl:when>
|
|
1701
|
+
<xsl:when test="substring(.,2,1) = 't'"><xsl:value-of select="concat($carriers,'st')"/></xsl:when>
|
|
1702
|
+
<xsl:when test="substring(.,2,1) = 'w'"><xsl:value-of select="concat($carriers,'sw')"/></xsl:when>
|
|
1703
|
+
</xsl:choose>
|
|
1704
|
+
</xsl:variable>
|
|
1705
|
+
|
|
1706
|
+
<xsl:variable name="playingSpeedValue"><xsl:value-of select="substring(.,4,1)" /></xsl:variable>
|
|
1707
|
+
<xsl:variable name="playingSpeed">
|
|
1708
|
+
<xsl:value-of select="$codeMaps/maps/playbackSpeed/*[name() = $playingSpeedValue]" />
|
|
1709
|
+
</xsl:variable>
|
|
1710
|
+
<xsl:variable name="playingSpeedUri">
|
|
1711
|
+
<xsl:value-of select="$codeMaps/maps/playbackSpeed/*[name() = $playingSpeedValue]/@href" />
|
|
1712
|
+
</xsl:variable>
|
|
1713
|
+
|
|
1714
|
+
<xsl:variable name="playbackChannels">
|
|
1715
|
+
<xsl:choose>
|
|
1716
|
+
<xsl:when test="substring(.,5,1) = 'm'">mono</xsl:when>
|
|
1717
|
+
<xsl:when test="substring(.,5,1) = 'q'">surround</xsl:when>
|
|
1718
|
+
<xsl:when test="substring(.,5,1) = 's'">stereo</xsl:when>
|
|
1719
|
+
</xsl:choose>
|
|
1720
|
+
</xsl:variable>
|
|
1721
|
+
<xsl:variable name="playbackUri">
|
|
1722
|
+
<xsl:choose>
|
|
1723
|
+
<xsl:when test="substring(.,5,1) = 'm'"><xsl:value-of select="concat($mplayback,'mon')"/></xsl:when>
|
|
1724
|
+
<xsl:when test="substring(.,5,1) = 'q'"><xsl:value-of select="concat($mplayback,'mul')"/></xsl:when>
|
|
1725
|
+
<xsl:when test="substring(.,5,1) = 's'"><xsl:value-of select="concat($mplayback,'ste')"/></xsl:when>
|
|
1726
|
+
</xsl:choose>
|
|
1727
|
+
</xsl:variable>
|
|
1728
|
+
<xsl:variable name="grooveCharacteristic">
|
|
1729
|
+
<xsl:choose>
|
|
1730
|
+
<xsl:when test="substring(.,6,1) = 'm'">
|
|
1731
|
+
<xsl:choose>
|
|
1732
|
+
<xsl:when test="contains('abce', substring(.,4,1))">microgroove</xsl:when>
|
|
1733
|
+
<xsl:when test="substring(.,4,1) = 'i'">fine pitch</xsl:when>
|
|
1734
|
+
<xsl:otherwise>microgroove</xsl:otherwise>
|
|
1735
|
+
</xsl:choose>
|
|
1736
|
+
</xsl:when>
|
|
1737
|
+
<xsl:when test="substring(.,6,1) = 's'">
|
|
1738
|
+
<xsl:choose>
|
|
1739
|
+
<xsl:when test="substring(.,4,1) = 'd'">coarse groove</xsl:when>
|
|
1740
|
+
<xsl:when test="substring(.,4,1) = 'h'">standard pitch</xsl:when>
|
|
1741
|
+
<xsl:otherwise>coarse groove</xsl:otherwise>
|
|
1742
|
+
</xsl:choose>
|
|
1743
|
+
</xsl:when>
|
|
1744
|
+
</xsl:choose>
|
|
1745
|
+
</xsl:variable>
|
|
1746
|
+
<xsl:variable name="grooveCharacteristicURI">
|
|
1747
|
+
<xsl:choose>
|
|
1748
|
+
<xsl:when test="substring(.,6,1) = 'm'">
|
|
1749
|
+
<xsl:choose>
|
|
1750
|
+
<xsl:when test="contains('abce', substring(.,4,1))"><xsl:value-of select="concat($mgroove,'micro')"/></xsl:when>
|
|
1751
|
+
<xsl:when test="substring(.,4,1) = 'i'"><xsl:value-of select="concat($mgroove,'finepitch')"/></xsl:when>
|
|
1752
|
+
<xsl:otherwise><xsl:value-of select="concat($mgroove,'micro')"/></xsl:otherwise>
|
|
1753
|
+
</xsl:choose>
|
|
1754
|
+
</xsl:when>
|
|
1755
|
+
<xsl:when test="substring(.,6,1) = 's'">
|
|
1756
|
+
<xsl:choose>
|
|
1757
|
+
<xsl:when test="substring(.,4,1) = 'd'"><xsl:value-of select="concat($mgroove,'coarse')"/></xsl:when>
|
|
1758
|
+
<xsl:when test="substring(.,4,1) = 'h'"><xsl:value-of select="concat($mgroove,'stanpitch')"/></xsl:when>
|
|
1759
|
+
<xsl:otherwise><xsl:value-of select="concat($mgroove,'coarse')"/></xsl:otherwise>
|
|
1760
|
+
</xsl:choose>
|
|
1761
|
+
</xsl:when>
|
|
1762
|
+
</xsl:choose>
|
|
1763
|
+
</xsl:variable>
|
|
1764
|
+
<xsl:variable name="dimensions">
|
|
1765
|
+
<xsl:choose>
|
|
1766
|
+
<xsl:when test="substring(.,7,1) = 'a'">3 in.</xsl:when>
|
|
1767
|
+
<xsl:when test="substring(.,7,1) = 'b'">5 in.</xsl:when>
|
|
1768
|
+
<xsl:when test="substring(.,7,1) = 'c'">7 in.</xsl:when>
|
|
1769
|
+
<xsl:when test="substring(.,7,1) = 'd'">10 in.</xsl:when>
|
|
1770
|
+
<xsl:when test="substring(.,7,1) = 'e'">12 in.</xsl:when>
|
|
1771
|
+
<xsl:when test="substring(.,7,1) = 'f'">16 in.</xsl:when>
|
|
1772
|
+
<xsl:when test="substring(.,7,1) = 'g'">4 3/4 in.</xsl:when>
|
|
1773
|
+
<xsl:when test="substring(.,7,1) = 'j'">3 7/8 x 2 1/2 in.</xsl:when>
|
|
1774
|
+
<xsl:when test="substring(.,7,1) = 'o'">5 1/4 x 3 7/8 in.</xsl:when>
|
|
1775
|
+
<xsl:when test="substring(.,7,1) = 's'">2 3/4 x 4 in.</xsl:when>
|
|
1776
|
+
</xsl:choose>
|
|
1777
|
+
</xsl:variable>
|
|
1778
|
+
<xsl:variable name="tapeWidth">
|
|
1779
|
+
<xsl:choose>
|
|
1780
|
+
<xsl:when test="substring(.,8,1) = 'l'">1/8 in. tape width</xsl:when>
|
|
1781
|
+
<xsl:when test="substring(.,8,1) = 'm'">1/4 in. tape width</xsl:when>
|
|
1782
|
+
<xsl:when test="substring(.,8,1) = 'o'">1/2 in. tape width</xsl:when>
|
|
1783
|
+
<xsl:when test="substring(.,8,1) = 'p'">1 in. tape width</xsl:when>
|
|
1784
|
+
</xsl:choose>
|
|
1785
|
+
</xsl:variable>
|
|
1786
|
+
|
|
1787
|
+
<xsl:variable name="tapeConfigValue"><xsl:value-of select="substring(.,9,1)" /></xsl:variable>
|
|
1788
|
+
<xsl:variable name="tapeConfig">
|
|
1789
|
+
<xsl:value-of select="$codeMaps/maps/tapeConfig/*[name() = $tapeConfigValue]" />
|
|
1790
|
+
</xsl:variable>
|
|
1791
|
+
<xsl:variable name="tapeConfigUri">
|
|
1792
|
+
<xsl:value-of select="$codeMaps/maps/tapeConfig/*[name() = $tapeConfigValue]/@href" />
|
|
1793
|
+
</xsl:variable>
|
|
1794
|
+
|
|
1795
|
+
<xsl:variable name="generation">
|
|
1796
|
+
<xsl:choose>
|
|
1797
|
+
<xsl:when test="substring(.,10,1) = 'a'">master tape</xsl:when>
|
|
1798
|
+
<xsl:when test="substring(.,10,1) = 'b'">tape duplication master</xsl:when>
|
|
1799
|
+
<xsl:when test="substring(.,10,1) = 'd'">disc master</xsl:when>
|
|
1800
|
+
<xsl:when test="substring(.,10,1) = 'r'">mother</xsl:when>
|
|
1801
|
+
<xsl:when test="substring(.,10,1) = 's'">stamper</xsl:when>
|
|
1802
|
+
<xsl:when test="substring(.,10,1) = 't'">test pressing</xsl:when>
|
|
1803
|
+
</xsl:choose>
|
|
1804
|
+
</xsl:variable>
|
|
1805
|
+
<xsl:variable name="generationURI">
|
|
1806
|
+
<xsl:choose>
|
|
1807
|
+
<xsl:when test="substring(.,10,1) = 'a'"><xsl:value-of select="concat($mgeneration,'master')"/></xsl:when>
|
|
1808
|
+
<xsl:when test="substring(.,10,1) = 'b'"><xsl:value-of select="concat($mgeneration,'tapedupe')"/></xsl:when>
|
|
1809
|
+
<xsl:when test="substring(.,10,1) = 'd'"><xsl:value-of select="concat($mgeneration,'discmaster')"/></xsl:when>
|
|
1810
|
+
<xsl:when test="substring(.,10,1) = 'r'"><xsl:value-of select="concat($mgeneration,'mother')"/></xsl:when>
|
|
1811
|
+
<xsl:when test="substring(.,10,1) = 's'"><xsl:value-of select="concat($mgeneration,'stamper')"/></xsl:when>
|
|
1812
|
+
<xsl:when test="substring(.,10,1) = 't'"><xsl:value-of select="concat($mgeneration,'testpress')"/></xsl:when>
|
|
1813
|
+
</xsl:choose>
|
|
1814
|
+
</xsl:variable>
|
|
1815
|
+
<xsl:variable name="baseMaterial">
|
|
1816
|
+
<xsl:choose>
|
|
1817
|
+
<xsl:when test="substring(.,11,1) = 'a'">lacquer</xsl:when>
|
|
1818
|
+
<xsl:when test="substring(.,11,1) = 'b'">nitrate</xsl:when>
|
|
1819
|
+
<xsl:when test="substring(.,11,1) = 'c'">acetate</xsl:when>
|
|
1820
|
+
<xsl:when test="substring(.,11,1) = 'g'">glass</xsl:when>
|
|
1821
|
+
<xsl:when test="substring(.,11,1) = 'i'">aluminum</xsl:when>
|
|
1822
|
+
<xsl:when test="substring(.,11,1) = 'r'">paper</xsl:when>
|
|
1823
|
+
<xsl:when test="substring(.,11,1) = 'l'">metal</xsl:when>
|
|
1824
|
+
<xsl:when test="substring(.,11,1) = 'm'">plastic</xsl:when>
|
|
1825
|
+
<xsl:when test="substring(.,11,1) = 'p'">plastic</xsl:when>
|
|
1826
|
+
<xsl:when test="substring(.,11,1) = 's'">shellac</xsl:when>
|
|
1827
|
+
<xsl:when test="substring(.,11,1) = 'w'">wax</xsl:when>
|
|
1828
|
+
</xsl:choose>
|
|
1829
|
+
</xsl:variable>
|
|
1830
|
+
<xsl:variable name="baseMaterialUri">
|
|
1831
|
+
<xsl:choose>
|
|
1832
|
+
<xsl:when test="substring(.,11,1) = 'a'"><xsl:value-of select="concat($mmaterial,'lac')"/></xsl:when>
|
|
1833
|
+
<xsl:when test="substring(.,11,1) = 'b'"><xsl:value-of select="concat($mmaterial,'nit')"/></xsl:when>
|
|
1834
|
+
<xsl:when test="substring(.,11,1) = 'c'"><xsl:value-of select="concat($mmaterial,'ace')"/></xsl:when>
|
|
1835
|
+
<xsl:when test="substring(.,11,1) = 'g'"><xsl:value-of select="concat($mmaterial,'gla')"/></xsl:when>
|
|
1836
|
+
<xsl:when test="substring(.,11,1) = 'i'"><xsl:value-of select="concat($mmaterial,'alu')"/></xsl:when>
|
|
1837
|
+
<xsl:when test="substring(.,11,1) = 'r'"><xsl:value-of select="concat($mmaterial,'pap')"/></xsl:when>
|
|
1838
|
+
<xsl:when test="substring(.,11,1) = 'l'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
1839
|
+
<xsl:when test="substring(.,11,1) = 'm'"><xsl:value-of select="concat($mmaterial,'pla')"/></xsl:when>
|
|
1840
|
+
<xsl:when test="substring(.,11,1) = 'p'"><xsl:value-of select="concat($mmaterial,'pla')"/></xsl:when>
|
|
1841
|
+
<xsl:when test="substring(.,11,1) = 's'"><xsl:value-of select="concat($mmaterial,'she')"/></xsl:when>
|
|
1842
|
+
<xsl:when test="substring(.,11,1) = 'w'"><xsl:value-of select="concat($mmaterial,'wax')"/></xsl:when>
|
|
1843
|
+
</xsl:choose>
|
|
1844
|
+
</xsl:variable>
|
|
1845
|
+
<xsl:variable name="vBaseMaterial2">
|
|
1846
|
+
<xsl:choose>
|
|
1847
|
+
<xsl:when test="substring(.,11,1) = 'c'">magnetic particles</xsl:when>
|
|
1848
|
+
<xsl:when test="substring(.,11,1) = 'g'">lacquer</xsl:when>
|
|
1849
|
+
<xsl:when test="substring(.,11,1) = 'i'">lacquer</xsl:when>
|
|
1850
|
+
<xsl:when test="substring(.,11,1) = 'm'">metal</xsl:when>
|
|
1851
|
+
</xsl:choose>
|
|
1852
|
+
</xsl:variable>
|
|
1853
|
+
<xsl:variable name="vBaseMaterialUri2">
|
|
1854
|
+
<xsl:choose>
|
|
1855
|
+
<xsl:when test="substring(.,11,1) = 'c'"><xsl:value-of select="concat($mmaterial,'fer')"/></xsl:when>
|
|
1856
|
+
<xsl:when test="substring(.,11,1) = 'g'"><xsl:value-of select="concat($mmaterial,'lac')"/></xsl:when>
|
|
1857
|
+
<xsl:when test="substring(.,11,1) = 'i'"><xsl:value-of select="concat($mmaterial,'lac')"/></xsl:when>
|
|
1858
|
+
<xsl:when test="substring(.,11,1) = 'm'"><xsl:value-of select="concat($mmaterial,'mtl')"/></xsl:when>
|
|
1859
|
+
</xsl:choose>
|
|
1860
|
+
</xsl:variable>
|
|
1861
|
+
<xsl:variable name="cutting">
|
|
1862
|
+
<xsl:choose>
|
|
1863
|
+
<xsl:when test="substring(.,12,1) = 'h'">vertical cutting</xsl:when>
|
|
1864
|
+
<xsl:when test="substring(.,12,1) = 'l'">lateral or combined cutting</xsl:when>
|
|
1865
|
+
</xsl:choose>
|
|
1866
|
+
</xsl:variable>
|
|
1867
|
+
<xsl:variable name="cuttingURI">
|
|
1868
|
+
<xsl:choose>
|
|
1869
|
+
<xsl:when test="substring(.,12,1) = 'h'"><xsl:value-of select="concat($mgroove,'vertical')"/></xsl:when>
|
|
1870
|
+
<xsl:when test="substring(.,12,1) = 'l'"><xsl:value-of select="concat($mgroove,'lateral')"/></xsl:when>
|
|
1871
|
+
</xsl:choose>
|
|
1872
|
+
</xsl:variable>
|
|
1873
|
+
<xsl:variable name="playbackCharacteristic">
|
|
1874
|
+
<xsl:choose>
|
|
1875
|
+
<xsl:when test="substring(.,13,1) = 'a'">NAB standard</xsl:when>
|
|
1876
|
+
<xsl:when test="substring(.,13,1) = 'b'">CCIR encoded</xsl:when>
|
|
1877
|
+
<xsl:when test="substring(.,13,1) = 'c'">Dolby-B encoded</xsl:when>
|
|
1878
|
+
<xsl:when test="substring(.,13,1) = 'd'">dbx encoded</xsl:when>
|
|
1879
|
+
<xsl:when test="substring(.,13,1) = 'f'">Dolby-A encoded</xsl:when>
|
|
1880
|
+
<xsl:when test="substring(.,13,1) = 'g'">Dolby-C encoded</xsl:when>
|
|
1881
|
+
<xsl:when test="substring(.,13,1) = 'h'">CX encoded</xsl:when>
|
|
1882
|
+
</xsl:choose>
|
|
1883
|
+
</xsl:variable>
|
|
1884
|
+
<xsl:variable name="playbackCharacteristicURI">
|
|
1885
|
+
<xsl:choose>
|
|
1886
|
+
<xsl:when test="substring(.,13,1) = 'a'"><xsl:value-of select="concat($mspecplayback,'nab')"/></xsl:when>
|
|
1887
|
+
<xsl:when test="substring(.,13,1) = 'b'"><xsl:value-of select="concat($mspecplayback,'ccir')"/></xsl:when>
|
|
1888
|
+
<xsl:when test="substring(.,13,1) = 'c'"><xsl:value-of select="concat($mspecplayback,'dolbyb')"/></xsl:when>
|
|
1889
|
+
<xsl:when test="substring(.,13,1) = 'd'"><xsl:value-of select="concat($mspecplayback,'dbx')"/></xsl:when>
|
|
1890
|
+
<xsl:when test="substring(.,13,1) = 'f'"><xsl:value-of select="concat($mspecplayback,'dolbya')"/></xsl:when>
|
|
1891
|
+
<xsl:when test="substring(.,13,1) = 'g'"><xsl:value-of select="concat($mspecplayback,'dolbyc')"/></xsl:when>
|
|
1892
|
+
<xsl:when test="substring(.,13,1) = 'h'"><xsl:value-of select="concat($mspecplayback,'cx')"/></xsl:when>
|
|
1893
|
+
</xsl:choose>
|
|
1894
|
+
</xsl:variable>
|
|
1895
|
+
<xsl:variable name="recordingMethod">
|
|
1896
|
+
<xsl:choose>
|
|
1897
|
+
<xsl:when test="substring(.,13,1) = 'e'">digital</xsl:when>
|
|
1898
|
+
</xsl:choose>
|
|
1899
|
+
</xsl:variable>
|
|
1900
|
+
<xsl:variable name="recordingMethodURI">
|
|
1901
|
+
<xsl:choose>
|
|
1902
|
+
<xsl:when test="substring(.,13,1) = 'e'"><xsl:value-of select="concat($mrectype,'digital')"/></xsl:when>
|
|
1903
|
+
</xsl:choose>
|
|
1904
|
+
</xsl:variable>
|
|
1905
|
+
|
|
1906
|
+
<xsl:variable name="captureStorageValue"><xsl:value-of select="substring(.,14,1)" /></xsl:variable>
|
|
1907
|
+
<xsl:variable name="captureStorage">
|
|
1908
|
+
<xsl:value-of select="$codeMaps/maps/captureStorage/*[name() = $captureStorageValue]" />
|
|
1909
|
+
</xsl:variable>
|
|
1910
|
+
<xsl:variable name="captureStorageUri">
|
|
1911
|
+
<xsl:value-of select="$codeMaps/maps/captureStorage/*[name() = $captureStorageValue]/@href" />
|
|
1912
|
+
</xsl:variable>
|
|
1913
|
+
|
|
1914
|
+
<xsl:choose>
|
|
1915
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
1916
|
+
<xsl:if test="$carrierUri != '' and not(contains($vCarrierURIs,$carrierUri))">
|
|
1917
|
+
<bf:carrier>
|
|
1918
|
+
<bf:Carrier>
|
|
1919
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$carrierUri"/></xsl:attribute>
|
|
1920
|
+
<rdfs:label><xsl:value-of select="$carrier"/></rdfs:label>
|
|
1921
|
+
</bf:Carrier>
|
|
1922
|
+
</bf:carrier>
|
|
1923
|
+
</xsl:if>
|
|
1924
|
+
<xsl:if test="$playingSpeed != ''">
|
|
1925
|
+
<bf:soundCharacteristic>
|
|
1926
|
+
<bf:PlayingSpeed>
|
|
1927
|
+
<xsl:if test="$playingSpeedUri != ''">
|
|
1928
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$playingSpeedUri"/></xsl:attribute>
|
|
1929
|
+
</xsl:if>
|
|
1930
|
+
<rdfs:label><xsl:value-of select="$playingSpeed"/></rdfs:label>
|
|
1931
|
+
</bf:PlayingSpeed>
|
|
1932
|
+
</bf:soundCharacteristic>
|
|
1933
|
+
</xsl:if>
|
|
1934
|
+
<xsl:if test="$playbackChannels != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $playbackChannels]) = 0">
|
|
1935
|
+
<bf:soundCharacteristic>
|
|
1936
|
+
<bf:PlaybackChannels>
|
|
1937
|
+
<xsl:if test="$playbackUri != ''">
|
|
1938
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$playbackUri"/></xsl:attribute>
|
|
1939
|
+
</xsl:if>
|
|
1940
|
+
<rdfs:label><xsl:value-of select="$playbackChannels"/></rdfs:label>
|
|
1941
|
+
</bf:PlaybackChannels>
|
|
1942
|
+
</bf:soundCharacteristic>
|
|
1943
|
+
</xsl:if>
|
|
1944
|
+
<xsl:if test="$grooveCharacteristic != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $grooveCharacteristic]) =0">
|
|
1945
|
+
<bf:soundCharacteristic>
|
|
1946
|
+
<bf:GrooveCharacteristic>
|
|
1947
|
+
<xsl:if test="$grooveCharacteristicURI != ''">
|
|
1948
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$grooveCharacteristicURI"/></xsl:attribute>
|
|
1949
|
+
</xsl:if>
|
|
1950
|
+
<rdfs:label><xsl:value-of select="$grooveCharacteristic"/></rdfs:label>
|
|
1951
|
+
</bf:GrooveCharacteristic>
|
|
1952
|
+
</bf:soundCharacteristic>
|
|
1953
|
+
</xsl:if>
|
|
1954
|
+
<xsl:if test="count(../marc:datafield[@tag='300']/marc:subfield[@code='c']) = 0 and $dimensions != ''">
|
|
1955
|
+
<xsl:if test="$dimensions != ''">
|
|
1956
|
+
<bf:dimensions><xsl:value-of select="$dimensions"/></bf:dimensions>
|
|
1957
|
+
</xsl:if>
|
|
1958
|
+
<xsl:if test="$tapeWidth != ''">
|
|
1959
|
+
<bf:dimensions><xsl:value-of select="$tapeWidth"/></bf:dimensions>
|
|
1960
|
+
</xsl:if>
|
|
1961
|
+
</xsl:if>
|
|
1962
|
+
<xsl:if test="$tapeConfig != ''">
|
|
1963
|
+
<bf:soundCharacteristic>
|
|
1964
|
+
<bf:TapeConfig>
|
|
1965
|
+
<xsl:if test="$tapeConfigUri != ''">
|
|
1966
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$tapeConfigUri"/></xsl:attribute>
|
|
1967
|
+
</xsl:if>
|
|
1968
|
+
<rdfs:label><xsl:value-of select="$tapeConfig"/></rdfs:label>
|
|
1969
|
+
</bf:TapeConfig>
|
|
1970
|
+
</bf:soundCharacteristic>
|
|
1971
|
+
</xsl:if>
|
|
1972
|
+
<xsl:if test="$generation != ''">
|
|
1973
|
+
<bf:generation>
|
|
1974
|
+
<bf:Generation>
|
|
1975
|
+
<xsl:if test="$generationURI != ''">
|
|
1976
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$generationURI"/></xsl:attribute>
|
|
1977
|
+
</xsl:if>
|
|
1978
|
+
<rdfs:label><xsl:value-of select="$generation"/></rdfs:label>
|
|
1979
|
+
</bf:Generation>
|
|
1980
|
+
</bf:generation>
|
|
1981
|
+
</xsl:if>
|
|
1982
|
+
<xsl:if test="$baseMaterial != ''">
|
|
1983
|
+
<bf:baseMaterial>
|
|
1984
|
+
<bf:BaseMaterial>
|
|
1985
|
+
<xsl:if test="$baseMaterialUri != ''">
|
|
1986
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$baseMaterialUri"/></xsl:attribute>
|
|
1987
|
+
</xsl:if>
|
|
1988
|
+
<rdfs:label><xsl:value-of select="$baseMaterial"/></rdfs:label>
|
|
1989
|
+
</bf:BaseMaterial>
|
|
1990
|
+
</bf:baseMaterial>
|
|
1991
|
+
</xsl:if>
|
|
1992
|
+
<xsl:if test="$vBaseMaterial2 != ''">
|
|
1993
|
+
<bf:baseMaterial>
|
|
1994
|
+
<bf:BaseMaterial>
|
|
1995
|
+
<xsl:if test="$vBaseMaterialUri2 != ''">
|
|
1996
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vBaseMaterialUri2"/></xsl:attribute>
|
|
1997
|
+
</xsl:if>
|
|
1998
|
+
<rdfs:label><xsl:value-of select="$vBaseMaterial2"/></rdfs:label>
|
|
1999
|
+
</bf:BaseMaterial>
|
|
2000
|
+
</bf:baseMaterial>
|
|
2001
|
+
</xsl:if>
|
|
2002
|
+
<xsl:if test="$cutting != ''">
|
|
2003
|
+
<bf:soundCharacteristic>
|
|
2004
|
+
<bf:GrooveCharacteristic>
|
|
2005
|
+
<xsl:if test="$cuttingURI != ''">
|
|
2006
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$cuttingURI"/></xsl:attribute>
|
|
2007
|
+
</xsl:if>
|
|
2008
|
+
<rdfs:label><xsl:value-of select="$cutting"/></rdfs:label>
|
|
2009
|
+
</bf:GrooveCharacteristic>
|
|
2010
|
+
</bf:soundCharacteristic>
|
|
2011
|
+
</xsl:if>
|
|
2012
|
+
<xsl:if test="$playbackCharacteristic != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $playbackCharacteristic]) = 0">
|
|
2013
|
+
<bf:soundCharacteristic>
|
|
2014
|
+
<bf:PlaybackCharacteristic>
|
|
2015
|
+
<xsl:if test="$playbackCharacteristicURI != ''">
|
|
2016
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$playbackCharacteristicURI"/></xsl:attribute>
|
|
2017
|
+
</xsl:if>
|
|
2018
|
+
<rdfs:label><xsl:value-of select="$playbackCharacteristic"/></rdfs:label>
|
|
2019
|
+
</bf:PlaybackCharacteristic>
|
|
2020
|
+
</bf:soundCharacteristic>
|
|
2021
|
+
</xsl:if>
|
|
2022
|
+
<xsl:if test="$recordingMethod != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $recordingMethod]) = 0">
|
|
2023
|
+
<bf:soundCharacteristic>
|
|
2024
|
+
<bf:RecordingMethod>
|
|
2025
|
+
<xsl:if test="$recordingMethodURI != ''">
|
|
2026
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$recordingMethodURI"/></xsl:attribute>
|
|
2027
|
+
</xsl:if>
|
|
2028
|
+
<rdfs:label><xsl:value-of select="$recordingMethod"/></rdfs:label>
|
|
2029
|
+
</bf:RecordingMethod>
|
|
2030
|
+
</bf:soundCharacteristic>
|
|
2031
|
+
</xsl:if>
|
|
2032
|
+
<xsl:if test="$captureStorage != ''">
|
|
2033
|
+
<bf:soundCharacteristic>
|
|
2034
|
+
<bf:CaptureStorage>
|
|
2035
|
+
<xsl:if test="$captureStorageUri != ''">
|
|
2036
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$captureStorageUri"/></xsl:attribute>
|
|
2037
|
+
</xsl:if>
|
|
2038
|
+
<rdfs:label><xsl:value-of select="$captureStorage"/></rdfs:label>
|
|
2039
|
+
</bf:CaptureStorage>
|
|
2040
|
+
</bf:soundCharacteristic>
|
|
2041
|
+
</xsl:if>
|
|
2042
|
+
</xsl:when>
|
|
2043
|
+
</xsl:choose>
|
|
2044
|
+
</xsl:when>
|
|
2045
|
+
<!-- videorecording -->
|
|
2046
|
+
<xsl:when test="substring(.,1,1) = 'v'">
|
|
2047
|
+
<xsl:variable name="carrier">
|
|
2048
|
+
<xsl:choose>
|
|
2049
|
+
<xsl:when test="substring(.,2,1) = 'c'">video cartridge</xsl:when>
|
|
2050
|
+
<xsl:when test="substring(.,2,1) = 'd'">videodisc</xsl:when>
|
|
2051
|
+
<xsl:when test="substring(.,2,1) = 'f'">videocassette</xsl:when>
|
|
2052
|
+
<xsl:when test="substring(.,2,1) = 'r'">videotape reel</xsl:when>
|
|
2053
|
+
</xsl:choose>
|
|
2054
|
+
</xsl:variable>
|
|
2055
|
+
<xsl:variable name="carrierUri">
|
|
2056
|
+
<xsl:choose>
|
|
2057
|
+
<xsl:when test="substring(.,2,1) = 'c'"><xsl:value-of select="concat($carriers,'vc')"/></xsl:when>
|
|
2058
|
+
<xsl:when test="substring(.,2,1) = 'd'"><xsl:value-of select="concat($carriers,'vd')"/></xsl:when>
|
|
2059
|
+
<xsl:when test="substring(.,2,1) = 'f'"><xsl:value-of select="concat($carriers,'vf')"/></xsl:when>
|
|
2060
|
+
<xsl:when test="substring(.,2,1) = 'r'"><xsl:value-of select="concat($carriers,'vr')"/></xsl:when>
|
|
2061
|
+
</xsl:choose>
|
|
2062
|
+
</xsl:variable>
|
|
2063
|
+
<xsl:variable name="colorContent">
|
|
2064
|
+
<xsl:choose>
|
|
2065
|
+
<xsl:when test="substring(.,4,1) = 'a'">one color</xsl:when>
|
|
2066
|
+
<xsl:when test="substring(.,4,1) = 'b'">black and white</xsl:when>
|
|
2067
|
+
<xsl:when test="substring(.,4,1) = 'c'">color</xsl:when>
|
|
2068
|
+
<xsl:when test="substring(.,4,1) = 'm'">mixed color</xsl:when>
|
|
2069
|
+
</xsl:choose>
|
|
2070
|
+
</xsl:variable>
|
|
2071
|
+
<xsl:variable name="colorContentUri">
|
|
2072
|
+
<xsl:choose>
|
|
2073
|
+
<xsl:when test="substring(.,4,1) = 'a'"><xsl:value-of select="concat($mcolor,'one')"/></xsl:when>
|
|
2074
|
+
<xsl:when test="substring(.,4,1) = 'b'"><xsl:value-of select="concat($mcolor,'blw')"/></xsl:when>
|
|
2075
|
+
<xsl:when test="substring(.,4,1) = 'c'"><xsl:value-of select="concat($mcolor,'mul')"/></xsl:when>
|
|
2076
|
+
<xsl:when test="substring(.,4,1) = 'm'"><xsl:value-of select="concat($mcolor,'mix')"/></xsl:when>
|
|
2077
|
+
</xsl:choose>
|
|
2078
|
+
</xsl:variable>
|
|
2079
|
+
<xsl:variable name="videoFormat">
|
|
2080
|
+
<xsl:choose>
|
|
2081
|
+
<xsl:when test="substring(.,5,1) = 'a'">Betamax</xsl:when>
|
|
2082
|
+
<xsl:when test="substring(.,5,1) = 'b'">VHS</xsl:when>
|
|
2083
|
+
<xsl:when test="substring(.,5,1) = 'c'">U-matic)</xsl:when>
|
|
2084
|
+
<xsl:when test="substring(.,5,1) = 'd'">EIAJ</xsl:when>
|
|
2085
|
+
<xsl:when test="substring(.,5,1) = 'e'">Type C</xsl:when>
|
|
2086
|
+
<xsl:when test="substring(.,5,1) = 'f'">Quadruplex</xsl:when>
|
|
2087
|
+
<xsl:when test="substring(.,5,1) = 'g'">laser optical</xsl:when>
|
|
2088
|
+
<xsl:when test="substring(.,5,1) = 'h'">CED</xsl:when>
|
|
2089
|
+
<xsl:when test="substring(.,5,1) = 'i'">Betacam</xsl:when>
|
|
2090
|
+
<xsl:when test="substring(.,5,1) = 'j'">Betacam SP</xsl:when>
|
|
2091
|
+
<xsl:when test="substring(.,5,1) = 'k'">Super-VHS</xsl:when>
|
|
2092
|
+
<xsl:when test="substring(.,5,1) = 'm'">M-II</xsl:when>
|
|
2093
|
+
<xsl:when test="substring(.,5,1) = 'o'">D-2</xsl:when>
|
|
2094
|
+
<xsl:when test="substring(.,5,1) = 'p'">8mm</xsl:when>
|
|
2095
|
+
<xsl:when test="substring(.,5,1) = 'q'">Hi-8mm</xsl:when>
|
|
2096
|
+
</xsl:choose>
|
|
2097
|
+
</xsl:variable>
|
|
2098
|
+
<xsl:variable name="videoFormatURI">
|
|
2099
|
+
<xsl:choose>
|
|
2100
|
+
<xsl:when test="substring(.,5,1) = 'a'"><xsl:value-of select="concat($mvidformat,'betamax')"/></xsl:when>
|
|
2101
|
+
<xsl:when test="substring(.,5,1) = 'b'"><xsl:value-of select="concat($mvidformat,'vhs')"/></xsl:when>
|
|
2102
|
+
<xsl:when test="substring(.,5,1) = 'c'"><xsl:value-of select="concat($mvidformat,'umatic')"/></xsl:when>
|
|
2103
|
+
<xsl:when test="substring(.,5,1) = 'd'"><xsl:value-of select="concat($mvidformat,'eiaj')"/></xsl:when>
|
|
2104
|
+
<xsl:when test="substring(.,5,1) = 'e'"><xsl:value-of select="concat($mvidformat,'typec')"/></xsl:when>
|
|
2105
|
+
<xsl:when test="substring(.,5,1) = 'f'"><xsl:value-of select="concat($mvidformat,'quad')"/></xsl:when>
|
|
2106
|
+
<xsl:when test="substring(.,5,1) = 'g'"><xsl:value-of select="concat($mvidformat,'laser')"/></xsl:when>
|
|
2107
|
+
<xsl:when test="substring(.,5,1) = 'h'"><xsl:value-of select="concat($mvidformat,'ced')"/></xsl:when>
|
|
2108
|
+
<xsl:when test="substring(.,5,1) = 'i'"><xsl:value-of select="concat($mvidformat,'betacam')"/></xsl:when>
|
|
2109
|
+
<xsl:when test="substring(.,5,1) = 'j'"><xsl:value-of select="concat($mvidformat,'betasp')"/></xsl:when>
|
|
2110
|
+
<xsl:when test="substring(.,5,1) = 'k'"><xsl:value-of select="concat($mvidformat,'svhs')"/></xsl:when>
|
|
2111
|
+
<xsl:when test="substring(.,5,1) = 'm'"><xsl:value-of select="concat($mvidformat,'mii')"/></xsl:when>
|
|
2112
|
+
<xsl:when test="substring(.,5,1) = 'o'"><xsl:value-of select="concat($mvidformat,'d2')"/></xsl:when>
|
|
2113
|
+
<xsl:when test="substring(.,5,1) = 'p'"><xsl:value-of select="concat($mvidformat,'8mm')"/></xsl:when>
|
|
2114
|
+
<xsl:when test="substring(.,5,1) = 'q'"><xsl:value-of select="concat($mvidformat,'hi8mm')"/></xsl:when>
|
|
2115
|
+
</xsl:choose>
|
|
2116
|
+
</xsl:variable>
|
|
2117
|
+
<xsl:variable name="vEncodingFormat">
|
|
2118
|
+
<xsl:choose>
|
|
2119
|
+
<xsl:when test="substring(.,5,1) = 's'">Blu-ray video</xsl:when>
|
|
2120
|
+
<xsl:when test="substring(.,5,1) = 'v'">DVD video</xsl:when>
|
|
2121
|
+
</xsl:choose>
|
|
2122
|
+
</xsl:variable>
|
|
2123
|
+
<xsl:variable name="vEncodingFormatUri">
|
|
2124
|
+
<xsl:choose>
|
|
2125
|
+
<xsl:when test="substring(.,5,1) = 's'"><xsl:value-of select="concat($mencformat,'bluray')"/></xsl:when>
|
|
2126
|
+
<xsl:when test="substring(.,5,1) = 'v'"><xsl:value-of select="concat($mencformat,'dvdv')"/></xsl:when>
|
|
2127
|
+
</xsl:choose>
|
|
2128
|
+
</xsl:variable>
|
|
2129
|
+
<xsl:variable name="soundContent">
|
|
2130
|
+
<xsl:choose>
|
|
2131
|
+
<xsl:when test="substring(.,6,1) = ' '">silent</xsl:when>
|
|
2132
|
+
<xsl:when test="substring(.,6,1) = 'a'">sound</xsl:when>
|
|
2133
|
+
<xsl:when test="substring(.,6,1) = 'b'">sound</xsl:when>
|
|
2134
|
+
</xsl:choose>
|
|
2135
|
+
</xsl:variable>
|
|
2136
|
+
<xsl:variable name="soundContentURI">
|
|
2137
|
+
<xsl:choose>
|
|
2138
|
+
<xsl:when test="substring(.,6,1) = ' '"><xsl:value-of select="concat($msoundcontent,'silent')"/></xsl:when>
|
|
2139
|
+
<xsl:when test="substring(.,6,1) = 'a'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
2140
|
+
<xsl:when test="substring(.,6,1) = 'b'"><xsl:value-of select="concat($msoundcontent,'sound')"/></xsl:when>
|
|
2141
|
+
</xsl:choose>
|
|
2142
|
+
</xsl:variable>
|
|
2143
|
+
<xsl:variable name="recordingMedium">
|
|
2144
|
+
<xsl:choose>
|
|
2145
|
+
<xsl:when test="substring(.,7,1) = 'a'">optical</xsl:when>
|
|
2146
|
+
<xsl:when test="substring(.,7,1) = 'b'">magnetic</xsl:when>
|
|
2147
|
+
<xsl:when test="substring(.,7,1) = 'c'">magnetic</xsl:when>
|
|
2148
|
+
<xsl:when test="substring(.,7,1) = 'd'">magneto-optical</xsl:when>
|
|
2149
|
+
<xsl:when test="substring(.,7,1) = 'e'">magnetic</xsl:when>
|
|
2150
|
+
<xsl:when test="substring(.,7,1) = 'f'">magnetic</xsl:when>
|
|
2151
|
+
<xsl:when test="substring(.,7,1) = 'g'">magneto-optical</xsl:when>
|
|
2152
|
+
<xsl:when test="substring(.,7,1) = 'h'">magnetic</xsl:when>
|
|
2153
|
+
<xsl:when test="substring(.,7,1) = 'i'">optical</xsl:when>
|
|
2154
|
+
</xsl:choose>
|
|
2155
|
+
</xsl:variable>
|
|
2156
|
+
<xsl:variable name="recordingMediumURI">
|
|
2157
|
+
<xsl:choose>
|
|
2158
|
+
<xsl:when test="substring(.,7,1) = 'a'"><xsl:value-of select="concat($mrecmedium,'opt')"/></xsl:when>
|
|
2159
|
+
<xsl:when test="substring(.,7,1) = 'b'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
2160
|
+
<xsl:when test="substring(.,7,1) = 'c'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
2161
|
+
<xsl:when test="substring(.,7,1) = 'd'"><xsl:value-of select="concat($mrecmedium,'magopt')"/></xsl:when>
|
|
2162
|
+
<xsl:when test="substring(.,7,1) = 'e'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
2163
|
+
<xsl:when test="substring(.,7,1) = 'f'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
2164
|
+
<xsl:when test="substring(.,7,1) = 'g'"><xsl:value-of select="concat($mrecmedium,'magopt')"/></xsl:when>
|
|
2165
|
+
<xsl:when test="substring(.,7,1) = 'h'"><xsl:value-of select="concat($mrecmedium,'mag')"/></xsl:when>
|
|
2166
|
+
<xsl:when test="substring(.,7,1) = 'i'"><xsl:value-of select="concat($mrecmedium,'opt')"/></xsl:when>
|
|
2167
|
+
</xsl:choose>
|
|
2168
|
+
</xsl:variable>
|
|
2169
|
+
<xsl:variable name="dimensions">
|
|
2170
|
+
<xsl:choose>
|
|
2171
|
+
<xsl:when test="substring(.,8,1) = 'a'">8 mm.</xsl:when>
|
|
2172
|
+
<xsl:when test="substring(.,8,1) = 'm'">1/4 in.</xsl:when>
|
|
2173
|
+
<xsl:when test="substring(.,8,1) = 'o'">1/2 in.</xsl:when>
|
|
2174
|
+
<xsl:when test="substring(.,8,1) = 'p'">1 in.</xsl:when>
|
|
2175
|
+
<xsl:when test="substring(.,8,1) = 'q'">2 in.</xsl:when>
|
|
2176
|
+
<xsl:when test="substring(.,8,1) = 'r'">3/4 in.</xsl:when>
|
|
2177
|
+
</xsl:choose>
|
|
2178
|
+
</xsl:variable>
|
|
2179
|
+
<xsl:variable name="playbackChannels">
|
|
2180
|
+
<xsl:choose>
|
|
2181
|
+
<xsl:when test="substring(.,9,1) = 'k'">mixed</xsl:when>
|
|
2182
|
+
<xsl:when test="substring(.,9,1) = 'm'">mono</xsl:when>
|
|
2183
|
+
<xsl:when test="substring(.,9,1) = 'q'">surround</xsl:when>
|
|
2184
|
+
<xsl:when test="substring(.,9,1) = 's'">stereo</xsl:when>
|
|
2185
|
+
</xsl:choose>
|
|
2186
|
+
</xsl:variable>
|
|
2187
|
+
<xsl:variable name="playbackUri">
|
|
2188
|
+
<xsl:choose>
|
|
2189
|
+
<xsl:when test="substring(.,9,1) = 'k'"><xsl:value-of select="concat($mplayback,'mix')"/></xsl:when>
|
|
2190
|
+
<xsl:when test="substring(.,9,1) = 'm'"><xsl:value-of select="concat($mplayback,'mon')"/></xsl:when>
|
|
2191
|
+
<xsl:when test="substring(.,9,1) = 'q'"><xsl:value-of select="concat($mplayback,'mul')"/></xsl:when>
|
|
2192
|
+
<xsl:when test="substring(.,9,1) = 's'"><xsl:value-of select="concat($mplayback,'ste')"/></xsl:when>
|
|
2193
|
+
</xsl:choose>
|
|
2194
|
+
</xsl:variable>
|
|
2195
|
+
<xsl:choose>
|
|
2196
|
+
<xsl:when test="$serialization = 'rdfxml'">
|
|
2197
|
+
<xsl:if test="$carrierUri != '' and not(contains($vCarrierURIs,$carrierUri))">
|
|
2198
|
+
<bf:carrier>
|
|
2199
|
+
<bf:Carrier>
|
|
2200
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$carrierUri"/></xsl:attribute>
|
|
2201
|
+
<rdfs:label><xsl:value-of select="$carrier"/></rdfs:label>
|
|
2202
|
+
</bf:Carrier>
|
|
2203
|
+
</bf:carrier>
|
|
2204
|
+
</xsl:if>
|
|
2205
|
+
<xsl:if test="$colorContent != ''">
|
|
2206
|
+
<bf:colorContent>
|
|
2207
|
+
<bf:ColorContent>
|
|
2208
|
+
<xsl:if test="$colorContentUri != ''">
|
|
2209
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$colorContentUri"/></xsl:attribute>
|
|
2210
|
+
</xsl:if>
|
|
2211
|
+
<rdfs:label><xsl:value-of select="$colorContent"/></rdfs:label>
|
|
2212
|
+
</bf:ColorContent>
|
|
2213
|
+
</bf:colorContent>
|
|
2214
|
+
</xsl:if>
|
|
2215
|
+
<xsl:if test="$videoFormat != '' and count(../marc:datafield[@tag='346']/marc:subfield[. = $videoFormat]) = 0">
|
|
2216
|
+
<bf:videoCharacteristic>
|
|
2217
|
+
<bf:VideoFormat>
|
|
2218
|
+
<xsl:if test="$videoFormatURI != ''">
|
|
2219
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$videoFormatURI"/></xsl:attribute>
|
|
2220
|
+
</xsl:if>
|
|
2221
|
+
<rdfs:label><xsl:value-of select="$videoFormat"/></rdfs:label>
|
|
2222
|
+
</bf:VideoFormat>
|
|
2223
|
+
</bf:videoCharacteristic>
|
|
2224
|
+
</xsl:if>
|
|
2225
|
+
<xsl:if test="$vEncodingFormat != '' and count(../marc:datafield[@tag='347']/marc:subfield[. = $vEncodingFormat]) = 0">
|
|
2226
|
+
<bf:digitalCharacteristic>
|
|
2227
|
+
<bf:EncodingFormat>
|
|
2228
|
+
<xsl:if test="$vEncodingFormatUri != ''">
|
|
2229
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$vEncodingFormatUri"/></xsl:attribute>
|
|
2230
|
+
</xsl:if>
|
|
2231
|
+
<rdfs:label><xsl:value-of select="$vEncodingFormat"/></rdfs:label>
|
|
2232
|
+
</bf:EncodingFormat>
|
|
2233
|
+
</bf:digitalCharacteristic>
|
|
2234
|
+
</xsl:if>
|
|
2235
|
+
<xsl:if test="$soundContent != ''">
|
|
2236
|
+
<bf:soundContent>
|
|
2237
|
+
<bf:SoundContent>
|
|
2238
|
+
<xsl:if test="$soundContentURI != ''">
|
|
2239
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$soundContentURI"/></xsl:attribute>
|
|
2240
|
+
</xsl:if>
|
|
2241
|
+
<rdfs:label><xsl:value-of select="$soundContent"/></rdfs:label>
|
|
2242
|
+
</bf:SoundContent>
|
|
2243
|
+
</bf:soundContent>
|
|
2244
|
+
</xsl:if>
|
|
2245
|
+
<xsl:if test="$recordingMedium != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $recordingMedium]) = 0">
|
|
2246
|
+
<bf:soundCharacteristic>
|
|
2247
|
+
<bf:RecordingMedium>
|
|
2248
|
+
<xsl:if test="$recordingMediumURI != ''">
|
|
2249
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$recordingMediumURI"/></xsl:attribute>
|
|
2250
|
+
</xsl:if>
|
|
2251
|
+
<rdfs:label><xsl:value-of select="$recordingMedium"/></rdfs:label>
|
|
2252
|
+
</bf:RecordingMedium>
|
|
2253
|
+
</bf:soundCharacteristic>
|
|
2254
|
+
</xsl:if>
|
|
2255
|
+
<xsl:if test="count(../marc:datafield[@tag='300']/marc:subfield[@code='c']) = 0">
|
|
2256
|
+
<xsl:if test="$dimensions != ''">
|
|
2257
|
+
<bf:dimensions><xsl:value-of select="$dimensions"/></bf:dimensions>
|
|
2258
|
+
</xsl:if>
|
|
2259
|
+
</xsl:if>
|
|
2260
|
+
<xsl:if test="$playbackChannels != '' and count(../marc:datafield[@tag='344']/marc:subfield[. = $playbackChannels]) = 0">
|
|
2261
|
+
<bf:soundCharacteristic>
|
|
2262
|
+
<bf:PlaybackChannels>
|
|
2263
|
+
<xsl:if test="$playbackUri != ''">
|
|
2264
|
+
<xsl:attribute name="rdf:about"><xsl:value-of select="$playbackUri"/></xsl:attribute>
|
|
2265
|
+
</xsl:if>
|
|
2266
|
+
<rdfs:label><xsl:value-of select="$playbackChannels"/></rdfs:label>
|
|
2267
|
+
</bf:PlaybackChannels>
|
|
2268
|
+
</bf:soundCharacteristic>
|
|
2269
|
+
</xsl:if>
|
|
2270
|
+
</xsl:when>
|
|
2271
|
+
</xsl:choose>
|
|
2272
|
+
</xsl:when>
|
|
2273
|
+
</xsl:choose>
|
|
2274
|
+
</xsl:template>
|
|
2275
|
+
|
|
2276
|
+
</xsl:stylesheet>
|