Line 0
Link Here
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
Copyright 2011 BibLibre. |
4 |
This file is part of Koha. |
5 |
Koha is free software; you can redistribute it and/or modify it under the |
6 |
terms of the GNU General Public License as published by the Free Software |
7 |
Foundation; either version 2 of the License, or (at your option) any later |
8 |
version. |
9 |
Koha is distributed in the hope that it will be useful, but WITHOUT ANY |
10 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
11 |
A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
12 |
You should have received a copy of the GNU General Public License along |
13 |
with Koha; if not, write to the Free Software Foundation, Inc., |
14 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
15 |
--> |
16 |
<xsl:stylesheet xmlns:marc="http://www.loc.gov/MARC21/slim" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
17 |
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> |
18 |
<xsl:template match="/"> |
19 |
<collection> |
20 |
<xsl:for-each select="marc:record"> |
21 |
<record |
22 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
23 |
xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd" |
24 |
xmlns="http://www.loc.gov/MARC21/slim"> |
25 |
<xsl:variable name="leader" select="leader" /> |
26 |
<leader> |
27 |
<!-- A calculer, mais comment ? --> |
28 |
<xsl:variable name="len">00000</xsl:variable> |
29 |
<xsl:variable name="stat"> |
30 |
<xsl:choose> |
31 |
<xsl:when test="substring(leader,6,1) = 'a'">p</xsl:when> |
32 |
<xsl:otherwise><xsl:value-of select="substring(leader,6,1)" /></xsl:otherwise> |
33 |
</xsl:choose> |
34 |
</xsl:variable> |
35 |
<xsl:variable name="type"> |
36 |
<xsl:choose> |
37 |
<xsl:when test="substring(leader,7,1) = 'o'">m</xsl:when> |
38 |
<xsl:when test="substring(leader,7,1) = 'r'">n</xsl:when> |
39 |
<xsl:otherwise><xsl:value-of select="substring(leader,7,1)" /></xsl:otherwise> |
40 |
</xsl:choose> |
41 |
</xsl:variable> |
42 |
<xsl:variable name="biblvl"> |
43 |
<xsl:choose> |
44 |
<xsl:when test="substring(leader,8,1) = 'b'">m</xsl:when> |
45 |
<xsl:when test="substring(leader,8,1) = 'd'">m</xsl:when> |
46 |
<xsl:otherwise><xsl:value-of select="substring(leader,8,1)" /></xsl:otherwise> |
47 |
</xsl:choose> |
48 |
</xsl:variable> |
49 |
<!-- A calculer, mais comment ? --> |
50 |
<xsl:variable name="baod">00000</xsl:variable> |
51 |
<xsl:variable name="enclvl"> |
52 |
<xsl:choose> |
53 |
<xsl:when test="substring(leader,18,1) = '8'">2</xsl:when> |
54 |
<xsl:when test="substring(leader,17,1) = '5'">3</xsl:when> |
55 |
<xsl:when test="substring(leader,18,1) = '7'">3</xsl:when> |
56 |
<xsl:otherwise><xsl:value-of select="substring(leader,18,1)" /></xsl:otherwise> |
57 |
</xsl:choose> |
58 |
</xsl:variable> |
59 |
<xsl:variable name="dcf"> |
60 |
<xsl:choose> |
61 |
<xsl:when test="substring(leader,19,1) = ' '">n</xsl:when> |
62 |
<xsl:otherwise><xsl:value-of select="' '" /></xsl:otherwise> |
63 |
</xsl:choose> |
64 |
</xsl:variable> |
65 |
<xsl:value-of select="concat($len,$stat,$type,$biblvl,' 22',$baod,$enclvl,$dcf,' 45 ')" /> |
66 |
</leader> |
67 |
<xsl:for-each select="marc:controlfield[@tag='001']"> |
68 |
<controlfield tag="001"><xsl:value-of select="text()" /></controlfield> |
69 |
</xsl:for-each> |
70 |
<xsl:for-each select="marc:controlfield[@tag='005']"> |
71 |
<controlfield tag="005"><xsl:value-of select="text()" /></controlfield> |
72 |
</xsl:for-each> |
73 |
<xsl:for-each select="marc:controlfield[@tag='008']"> |
74 |
<!-- FIXME: Dummy indicators --> |
75 |
<datafield tag="100"> |
76 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
77 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
78 |
<subfield code="a"> |
79 |
<xsl:variable name="deof"> |
80 |
<xsl:choose> |
81 |
<xsl:when test="substring(text(),1,2) < 70"> |
82 |
<xsl:value-of select="concat('20',substring(text(),1,6))" /> |
83 |
</xsl:when> |
84 |
<xsl:otherwise> |
85 |
<xsl:value-of select="concat('19',substring(text(),1,6))" /> |
86 |
</xsl:otherwise> |
87 |
</xsl:choose> |
88 |
</xsl:variable> |
89 |
<xsl:variable name="topd" select="substring(text(),7,1)" /> |
90 |
<xsl:variable name="d1" select="substring(text(),8,4)" /> |
91 |
<xsl:variable name="d2" select="substring(text(),12,4)" /> |
92 |
<xsl:variable name="il"> |
93 |
<xsl:choose> |
94 |
<xsl:when test="substring(text(),23,1) = 'a'">b||</xsl:when> |
95 |
<xsl:when test="substring(text(),23,1) = 'b'">c||</xsl:when> |
96 |
<xsl:when test="substring(text(),23,1) = 'j'">a||</xsl:when> |
97 |
<xsl:when test="substring(text(),23,1) = 'c'">d||</xsl:when> |
98 |
<xsl:when test="substring(text(),23,1) = 'd'">e||</xsl:when> |
99 |
<xsl:when test="substring(text(),23,1) = 'e'">k||</xsl:when> |
100 |
<xsl:when test="substring(text(),23,1) = 'g'">m||</xsl:when> |
101 |
<xsl:when test="substring(text(),23,1) = '|'">|||</xsl:when> |
102 |
<xsl:when test="substring(text(),23,1) = ' '">u||</xsl:when> |
103 |
<xsl:otherwise>u||</xsl:otherwise> |
104 |
</xsl:choose> |
105 |
</xsl:variable> |
106 |
<xsl:variable name="gpc"> |
107 |
<xsl:choose> |
108 |
<xsl:when test="substring(text(),29,1) = 'f'">a</xsl:when> |
109 |
<xsl:when test="substring(text(),29,1) = 's'">b</xsl:when> |
110 |
<xsl:when test="substring(text(),29,1) = 'l'">d</xsl:when> |
111 |
<xsl:when test="substring(text(),29,1) = 'c'">e</xsl:when> |
112 |
<xsl:when test="substring(text(),29,1) = 'i'">f</xsl:when> |
113 |
<xsl:when test="substring(text(),29,1) = 'z'">g</xsl:when> |
114 |
<xsl:when test="substring(text(),29,1) = 'o'">h</xsl:when> |
115 |
<xsl:when test="substring(text(),29,1) = 'u'">u</xsl:when> |
116 |
<xsl:when test="substring(text(),29,1) = ' '">y</xsl:when> |
117 |
<xsl:when test="substring(text(),29,1) = 'z'">z</xsl:when> |
118 |
<xsl:when test="substring(text(),29,1) = '|'">|</xsl:when> |
119 |
<xsl:otherwise>y</xsl:otherwise> |
120 |
</xsl:choose> |
121 |
</xsl:variable> |
122 |
<xsl:variable name="mrc"> |
123 |
<xsl:choose> |
124 |
<xsl:when test="substring(text(),39,1) = ' '">0</xsl:when> |
125 |
<xsl:otherwise>1</xsl:otherwise> |
126 |
</xsl:choose> |
127 |
</xsl:variable> |
128 |
<xsl:variable name="loc"> |
129 |
<xsl:choose> |
130 |
<xsl:when test="datafield[@tag='040']/subfield[@code='b']"><xsl:value-of select="marc:datafield[@tag='040']/subfield[@code='b']" /></xsl:when> |
131 |
<xsl:otherwise><xsl:value-of select="' '" /></xsl:otherwise> |
132 |
</xsl:choose> |
133 |
</xsl:variable> |
134 |
<xsl:variable name="tc"> |
135 |
<xsl:choose> |
136 |
<xsl:when test="substring(text(),39,1) = 'o'">b</xsl:when> |
137 |
<xsl:otherwise>y</xsl:otherwise> |
138 |
</xsl:choose> |
139 |
</xsl:variable> |
140 |
<!-- Demander à nicomo pour les 2 variables suivantes --> |
141 |
<xsl:variable name="cs"><xsl:value-of select="' '" /></xsl:variable> |
142 |
<xsl:variable name="acs"><xsl:value-of select="' '" /></xsl:variable> |
143 |
<xsl:variable name="aot" select="substring(text(),34,1)" /> |
144 |
<xsl:value-of select="concat($deof,$topd,$d1,$d2,$il,$gpc,$mrc,$loc,$tc,$cs,$acs,$aot)" /> |
145 |
</subfield> |
146 |
</datafield> |
147 |
<datafield tag="105"> |
148 |
<!-- Difficile de faire un bel algo pour les deux variables suivantes --> |
149 |
<subfield code="a"> |
150 |
<xsl:variable name="ic"><xsl:value-of select="' '" /></xsl:variable> |
151 |
<xsl:variable name="focc"><xsl:value-of select="' '" /></xsl:variable> |
152 |
<xsl:variable name="cc"><xsl:value-of select="substring(text(),30,1)" /></xsl:variable> |
153 |
<xsl:variable name="fi"><xsl:value-of select="substring(text(),31,1)" /></xsl:variable> |
154 |
<xsl:variable name="ii"><xsl:value-of select="substring(text(),32,1)" /></xsl:variable> |
155 |
<xsl:variable name="lc"> |
156 |
<xsl:choose> |
157 |
<xsl:when test="substring(text(),34,1) = '1'">a</xsl:when> |
158 |
<xsl:otherwise>|</xsl:otherwise> |
159 |
</xsl:choose> |
160 |
</xsl:variable> |
161 |
<xsl:variable name="bc"> |
162 |
<xsl:choose> |
163 |
<xsl:when test="substring(text(),35,1) = ' '">y</xsl:when> |
164 |
<xsl:otherwise><xsl:value-of select="substring(text(),35,1)" /></xsl:otherwise> |
165 |
</xsl:choose> |
166 |
</xsl:variable> |
167 |
<xsl:value-of select="concat($ic,$focc,$cc,$fi,$ii,$lc,$bc)" /> |
168 |
</subfield> |
169 |
</datafield> |
170 |
<datafield tag="106"> |
171 |
<subfield code="a"> |
172 |
<xsl:choose> |
173 |
<xsl:when test="substring(text(),24,1) = ' '">y</xsl:when> |
174 |
<xsl:otherwise><xsl:value-of select="substring(text(),24,1)" /></xsl:otherwise> |
175 |
</xsl:choose> |
176 |
</subfield> |
177 |
</datafield> |
178 |
<datafield tag="110"> |
179 |
<subfield code="a"> |
180 |
<xsl:variable name="tos"> |
181 |
<xsl:choose> |
182 |
<xsl:when test="substring(text(),22,1) = 'p'">a</xsl:when> |
183 |
<xsl:when test="substring(text(),22,1) = 'm'">b</xsl:when> |
184 |
<xsl:when test="substring(text(),22,1) = 'n'">c</xsl:when> |
185 |
<xsl:when test="substring(text(),22,1) = ' '">z</xsl:when> |
186 |
<xsl:when test="substring(text(),22,1) = '|'">|</xsl:when> |
187 |
<xsl:otherwise>z</xsl:otherwise> |
188 |
</xsl:choose> |
189 |
</xsl:variable> |
190 |
<xsl:variable name="foi"> |
191 |
<xsl:choose> |
192 |
<xsl:when test="substring(text(),19,1) = 'd'">a</xsl:when> |
193 |
<xsl:when test="substring(text(),19,1) = 'c'">b</xsl:when> |
194 |
<xsl:when test="substring(text(),19,1) = 'w'">c</xsl:when> |
195 |
<xsl:when test="substring(text(),19,1) = 'e'">d</xsl:when> |
196 |
<xsl:when test="substring(text(),19,1) = 's'">e</xsl:when> |
197 |
<xsl:when test="substring(text(),19,1) = 'm'">f</xsl:when> |
198 |
<xsl:when test="substring(text(),19,1) = 'b'">g</xsl:when> |
199 |
<xsl:when test="substring(text(),19,1) = 'q'">h</xsl:when> |
200 |
<xsl:when test="substring(text(),19,1) = 't'">i</xsl:when> |
201 |
<xsl:when test="substring(text(),19,1) = 'f'">j</xsl:when> |
202 |
<xsl:when test="substring(text(),19,1) = 'a'">k</xsl:when> |
203 |
<xsl:when test="substring(text(),19,1) = 'g'">l</xsl:when> |
204 |
<xsl:when test="substring(text(),19,1) = 'h'">m</xsl:when> |
205 |
<xsl:when test="substring(text(),19,1) = 'i'">n</xsl:when> |
206 |
<xsl:when test="substring(text(),19,1) = 'j'">o</xsl:when> |
207 |
<xsl:when test="substring(text(),19,1) = 'u'">u</xsl:when> |
208 |
<xsl:when test="substring(text(),19,1) = ' '">y</xsl:when> |
209 |
<xsl:when test="substring(text(),19,1) = 'z'">z</xsl:when> |
210 |
<xsl:when test="substring(text(),19,1) = '|'">|</xsl:when> |
211 |
<xsl:when test="substring(text(),19,1) = 'n'">|</xsl:when> |
212 |
<xsl:otherwise>y</xsl:otherwise> |
213 |
</xsl:choose> |
214 |
</xsl:variable> |
215 |
<xsl:variable name="r"> |
216 |
<xsl:choose> |
217 |
<xsl:when test="substring(text(),20,1) = 'r'">a</xsl:when> |
218 |
<xsl:when test="substring(text(),20,1) = 'n'">b</xsl:when> |
219 |
<xsl:when test="substring(text(),20,1) = 'u'">u</xsl:when> |
220 |
<xsl:when test="substring(text(),20,1) = 'x'">y</xsl:when> |
221 |
<xsl:when test="substring(text(),20,1) = '|'">|</xsl:when> |
222 |
<xsl:when test="substring(text(),20,1) = ' '">|</xsl:when> |
223 |
<xsl:otherwise>u</xsl:otherwise> |
224 |
</xsl:choose> |
225 |
</xsl:variable> |
226 |
<xsl:variable name="tomc"> |
227 |
<xsl:choose> |
228 |
<xsl:when test="substring(text(),25,1) = 'b'">a</xsl:when> |
229 |
<xsl:when test="substring(text(),25,1) = 'c'">b</xsl:when> |
230 |
<xsl:when test="substring(text(),25,1) = 'i'">c</xsl:when> |
231 |
<xsl:when test="substring(text(),25,1) = 'a'">d</xsl:when> |
232 |
<xsl:when test="substring(text(),25,1) = 'd'">e</xsl:when> |
233 |
<xsl:when test="substring(text(),25,1) = 'e'">f</xsl:when> |
234 |
<xsl:when test="substring(text(),25,1) = 'r'">g</xsl:when> |
235 |
<xsl:when test="substring(text(),25,1) = 'y'">h</xsl:when> |
236 |
<xsl:when test="substring(text(),25,1) = 's'">i</xsl:when> |
237 |
<xsl:when test="substring(text(),25,1) = 'p'">j</xsl:when> |
238 |
<xsl:when test="substring(text(),25,1) = 'o'">k</xsl:when> |
239 |
<xsl:when test="substring(text(),25,1) = 'l'">l</xsl:when> |
240 |
<xsl:when test="substring(text(),25,1) = 'w'">m</xsl:when> |
241 |
<xsl:when test="substring(text(),25,1) = 'g'">n</xsl:when> |
242 |
<xsl:when test="substring(text(),25,1) = 'v'">o</xsl:when> |
243 |
<xsl:when test="substring(text(),25,1) = 'h'">p</xsl:when> |
244 |
<xsl:when test="substring(text(),25,1) = 'n'">r</xsl:when> |
245 |
<xsl:when test="substring(text(),25,1) = ' '">z</xsl:when> |
246 |
<xsl:when test="substring(text(),25,1) = '|'">|</xsl:when> |
247 |
<xsl:otherwise>z</xsl:otherwise> |
248 |
</xsl:choose> |
249 |
</xsl:variable> |
250 |
<xsl:variable name="nocc"><xsl:value-of select="substring(text(),26,3)" /></xsl:variable> |
251 |
<xsl:variable name="ci"><xsl:value-of select="substring(text(),30,1)" /></xsl:variable> |
252 |
<xsl:variable name="tpa">|</xsl:variable> |
253 |
<xsl:variable name="iac">|</xsl:variable> |
254 |
<xsl:variable name="cia">|</xsl:variable> |
255 |
<xsl:value-of select="concat($tos,$foi,$r,$tomc,$nocc,$ci,$tpa,$iac,$cia)" /> |
256 |
</subfield> |
257 |
</datafield> |
258 |
</xsl:for-each> |
259 |
<xsl:for-each select="marc:datafield[@tag='020']"> |
260 |
<datafield tag="010"> |
261 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
262 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
263 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
264 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
265 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
266 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
267 |
</datafield> |
268 |
</xsl:for-each> |
269 |
<xsl:for-each select="marc:datafield[@tag='022']"> |
270 |
<datafield tag="011"> |
271 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
272 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
273 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
274 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
275 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
276 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
277 |
<!--<xsl:for-each select="marc:subfield[@code='z']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
278 |
</datafield> |
279 |
</xsl:for-each> |
280 |
<!--<xsl:for-each select="marc:datafield[@tag='024']"> |
281 |
<datafield tag="012"> |
282 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
283 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
284 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
285 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
286 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
287 |
</datafield> |
288 |
</xsl:for-each>--> |
289 |
<xsl:for-each select="marc:datafield[@tag='015']"> |
290 |
<datafield tag="020"> |
291 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
292 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
293 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
294 |
<xsl:for-each select="marc:subfield[@code='a']"> |
295 |
<subfield code="b"><xsl:value-of select="text()" /></subfield> |
296 |
<subfield code="z"><xsl:value-of select="text()" /></subfield> |
297 |
</xsl:for-each> |
298 |
</datafield> |
299 |
</xsl:for-each> |
300 |
<xsl:for-each select="marc:datafield[@tag='017']"> |
301 |
<datafield tag="021"> |
302 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
303 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
304 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
305 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
306 |
</datafield> |
307 |
</xsl:for-each> |
308 |
<xsl:for-each select="marc:datafield[@tag='086']"> |
309 |
<datafield tag="22"> |
310 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
311 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
312 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
313 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
314 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
315 |
</datafield> |
316 |
</xsl:for-each> |
317 |
<xsl:for-each select="marc:datafield[@tag='030']"> |
318 |
<datafield tag="040"> |
319 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
320 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
321 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
322 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
323 |
</datafield> |
324 |
</xsl:for-each> |
325 |
<xsl:for-each select="marc:datafield[@tag='028']"> |
326 |
<datafield tag="071"> |
327 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
328 |
<xsl:attribute name="ind2"> |
329 |
<xsl:choose> |
330 |
<xsl:when test="@ind2 = 0">0</xsl:when> |
331 |
<xsl:otherwise>1</xsl:otherwise> |
332 |
</xsl:choose> |
333 |
</xsl:attribute> |
334 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
335 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
336 |
</datafield> |
337 |
</xsl:for-each> |
338 |
<xsl:for-each select="marc:datafield[@tag='041']"> |
339 |
<datafield tag="101"> |
340 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
341 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
342 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
343 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
344 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
345 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
346 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
347 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
348 |
<xsl:for-each select="marc:subfield[@code='h']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
349 |
</datafield> |
350 |
</xsl:for-each> |
351 |
<xsl:for-each select="marc:datafield[@tag='044']"> |
352 |
<datafield tag="102"> |
353 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
354 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
355 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
356 |
<!--<xsl:for-each select="marc:subfield[@code='b']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
357 |
</datafield> |
358 |
</xsl:for-each> |
359 |
<xsl:for-each select="marc:datafield[@tag='245']"> |
360 |
<datafield tag="200"> |
361 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
362 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
363 |
<xsl:for-each select="marc:subfield[@code='a']"> |
364 |
<subfield code="a"><xsl:value-of select="text()" /></subfield> |
365 |
<xsl:if test="contains(text(),' = ')"> |
366 |
<subfield code="d"><xsl:value-of select="concat('=',substring-after(text(),' =' ))" /></subfield> |
367 |
</xsl:if> |
368 |
</xsl:for-each> |
369 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
370 |
<xsl:for-each select="marc:subfield[@code='c']"> |
371 |
<xsl:choose> |
372 |
<xsl:when test="contains(text(),' / ')"> |
373 |
<subfield code="f"><xsl:value-of select="substring-before(text(),' / ')" /></subfield> |
374 |
<subfield code="g"><xsl:value-of select="substring-after(text(),' / ')" /></subfield> |
375 |
</xsl:when> |
376 |
<xsl:otherwise> |
377 |
<subfield code="f"><xsl:value-of select="text()" /></subfield> |
378 |
</xsl:otherwise> |
379 |
</xsl:choose> |
380 |
</xsl:for-each> |
381 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
382 |
<xsl:for-each select="marc:subfield[@code='p']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
383 |
</datafield> |
384 |
<!-- FIXME --> |
385 |
<!-- |
386 |
<datafield tag="204"> |
387 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
388 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
389 |
<xsl:for-each select="marc:subfield[@code='h']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
390 |
</datafield> |
391 |
--> |
392 |
</xsl:for-each> |
393 |
<xsl:for-each select="marc:datafield[@tag='250']"> |
394 |
<datafield tag="205"> |
395 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
396 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
397 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
398 |
</datafield> |
399 |
</xsl:for-each> |
400 |
<xsl:for-each select="marc:datafield[@tag='254']"> |
401 |
<datafield tag="208"> |
402 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
403 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
404 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
405 |
</datafield> |
406 |
</xsl:for-each> |
407 |
<xsl:for-each select="marc:datafield[@tag='260']"> |
408 |
<datafield tag="210"> |
409 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
410 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
411 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
412 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
413 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
414 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
415 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="g"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
416 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
417 |
</datafield> |
418 |
</xsl:for-each> |
419 |
<xsl:for-each select="marc:datafield[@tag='263']"> |
420 |
<datafield tag="211"> |
421 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
422 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
423 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
424 |
</datafield> |
425 |
</xsl:for-each> |
426 |
<xsl:for-each select="marc:datafield[@tag='300']"> |
427 |
<datafield tag="215"> |
428 |
<xsl:choose> |
429 |
<xsl:when test="@ind = 1"><xsl:attribute name="ind1">0</xsl:attribute></xsl:when> |
430 |
<xsl:otherwise><xsl:attribute name="ind1">1</xsl:attribute></xsl:otherwise> |
431 |
</xsl:choose> |
432 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
433 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
434 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
435 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
436 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
437 |
</datafield> |
438 |
</xsl:for-each> |
439 |
<xsl:for-each select="marc:datafield[@tag='490']"> |
440 |
<datafield tag="225"> |
441 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
442 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
443 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
444 |
<xsl:for-each select="marc:subfield[@code='v']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
445 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
446 |
</datafield> |
447 |
</xsl:for-each> |
448 |
<xsl:for-each select="marc:datafield[@tag='256']"> |
449 |
<datafield tag="230"> |
450 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
451 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
452 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
453 |
</datafield> |
454 |
</xsl:for-each> |
455 |
<xsl:for-each select="marc:datafield[@tag='500']"> |
456 |
<datafield tag="300"> |
457 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
458 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
459 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
460 |
</datafield> |
461 |
</xsl:for-each> |
462 |
<xsl:for-each select="marc:datafield[@tag='525']"> |
463 |
<datafield tag="300"> |
464 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
465 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
466 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
467 |
</datafield> |
468 |
</xsl:for-each> |
469 |
<xsl:for-each select="marc:datafield[@tag='555']"> |
470 |
<datafield tag="300"> |
471 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
472 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
473 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
474 |
</datafield> |
475 |
</xsl:for-each> |
476 |
<xsl:for-each select="marc:datafield[@tag='504']"> |
477 |
<datafield tag="320"> |
478 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
479 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
480 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
481 |
</datafield> |
482 |
</xsl:for-each> |
483 |
<xsl:for-each select="marc:datafield[@tag='505']"> |
484 |
<datafield tag="327"> |
485 |
<!-- FIXME: Dummy indicators --> |
486 |
<!--<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute>--> |
487 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
488 |
<!--<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute>--> |
489 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
490 |
<subfield code="a">bla</subfield> |
491 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
492 |
</datafield> |
493 |
</xsl:for-each> |
494 |
<xsl:for-each select="marc:datafield[@tag='502']"> |
495 |
<datafield tag="328"> |
496 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
497 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
498 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
499 |
</datafield> |
500 |
</xsl:for-each> |
501 |
<xsl:for-each select="marc:datafield[@tag='520']"> |
502 |
<datafield tag="330"> |
503 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
504 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
505 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
506 |
</datafield> |
507 |
</xsl:for-each> |
508 |
<xsl:for-each select="marc:datafield[@tag='524']"> |
509 |
<datafield tag="332"> |
510 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
511 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
512 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
513 |
</datafield> |
514 |
</xsl:for-each> |
515 |
<xsl:for-each select="marc:datafield[@tag='521']"> |
516 |
<datafield tag="333"> |
517 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
518 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
519 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
520 |
</datafield> |
521 |
</xsl:for-each> |
522 |
<xsl:for-each select="marc:datafield[@tag='500']"> |
523 |
<datafield tag="336"> |
524 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
525 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
526 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
527 |
</datafield> |
528 |
</xsl:for-each> |
529 |
<xsl:for-each select="marc:datafield[@tag='538']"> |
530 |
<datafield tag="337"> |
531 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
532 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
533 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
534 |
</datafield> |
535 |
</xsl:for-each> |
536 |
<xsl:for-each select="marc:datafield[@tag='037']"> |
537 |
<datafield tag="345"> |
538 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
539 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
540 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
541 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
542 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
543 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
544 |
</datafield> |
545 |
</xsl:for-each> |
546 |
<xsl:for-each select="marc:datafield[@tag='760']"> |
547 |
<datafield tag="410"> |
548 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
549 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
550 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
551 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
552 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
553 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
554 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
555 |
</datafield> |
556 |
</xsl:for-each> |
557 |
<xsl:for-each select="marc:datafield[@tag='762']"> |
558 |
<datafield tag="411"> |
559 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
560 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
561 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
562 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
563 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
564 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
565 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
566 |
</datafield> |
567 |
</xsl:for-each> |
568 |
<xsl:for-each select="marc:datafield[@tag='770']"> |
569 |
<datafield tag="421"> |
570 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
571 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
572 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
573 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
574 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
575 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
576 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
577 |
</datafield> |
578 |
</xsl:for-each> |
579 |
<xsl:for-each select="marc:datafield[@tag='772']"> |
580 |
<datafield tag="422"> |
581 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
582 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
583 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
584 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
585 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
586 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
587 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
588 |
</datafield> |
589 |
</xsl:for-each> |
590 |
<xsl:for-each select="marc:datafield[@tag='777']"> |
591 |
<datafield tag="423"> |
592 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
593 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
594 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
595 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
596 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
597 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
598 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
599 |
</datafield> |
600 |
</xsl:for-each> |
601 |
<xsl:for-each select="marc:datafield[@tag='780']"> |
602 |
<datafield tag="430"> |
603 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
604 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
605 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
606 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
607 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
608 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
609 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
610 |
</datafield> |
611 |
</xsl:for-each> |
612 |
<xsl:for-each select="marc:datafield[@tag='785']"> |
613 |
<datafield tag="440"> |
614 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
615 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
616 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
617 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
618 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
619 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
620 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
621 |
</datafield> |
622 |
</xsl:for-each> |
623 |
<xsl:for-each select="marc:datafield[@tag='775']"> |
624 |
<datafield tag="451"> |
625 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
626 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
627 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
628 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
629 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
630 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
631 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
632 |
</datafield> |
633 |
</xsl:for-each> |
634 |
<xsl:for-each select="marc:datafield[@tag='776']"> |
635 |
<datafield tag="452"> |
636 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
637 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
638 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
639 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
640 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
641 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
642 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
643 |
</datafield> |
644 |
</xsl:for-each> |
645 |
<xsl:for-each select="marc:datafield[@tag='767']"> |
646 |
<datafield tag="453"> |
647 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
648 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
649 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
650 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
651 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
652 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
653 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
654 |
</datafield> |
655 |
</xsl:for-each> |
656 |
<xsl:for-each select="marc:datafield[@tag='765']"> |
657 |
<datafield tag="454"> |
658 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
659 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
660 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
661 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
662 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
663 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
664 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
665 |
</datafield> |
666 |
</xsl:for-each> |
667 |
<xsl:for-each select="marc:datafield[@tag='787']"> |
668 |
<datafield> |
669 |
<xsl:choose> |
670 |
<xsl:when test="contains(subfield[@code='i'],'Reproduction of:')"><xsl:attribute name="tag" select="455" /></xsl:when> |
671 |
<xsl:when test="contains(subfield[@code='i'],'Reproduced as:')"><xsl:attribute name="tag" select="456" /></xsl:when> |
672 |
<xsl:when test="contains(subfield[@code='i'],'Item reviewed:')"><xsl:attribute name="tag" select="470" /></xsl:when> |
673 |
<xsl:otherwise> |
674 |
<xsl:attribute name="tag" select="488" /> |
675 |
</xsl:otherwise> |
676 |
</xsl:choose> |
677 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
678 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
679 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
680 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
681 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
682 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
683 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
684 |
</datafield> |
685 |
</xsl:for-each> |
686 |
<xsl:for-each select="marc:datafield[@tag='774']"> |
687 |
<datafield> |
688 |
<xsl:choose> |
689 |
<xsl:when test="subfield[@code='i']"> |
690 |
<xsl:attribute name="tag" select="462" /> |
691 |
</xsl:when> |
692 |
<xsl:otherwise> |
693 |
<xsl:attribute name="tag" select="461" /> |
694 |
</xsl:otherwise> |
695 |
</xsl:choose> |
696 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
697 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
698 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
699 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
700 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
701 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
702 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
703 |
</datafield> |
704 |
</xsl:for-each> |
705 |
<xsl:for-each select="marc:datafield[@tag='773']"> |
706 |
<datafield tag="463"> |
707 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
708 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
709 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
710 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
711 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
712 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
713 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
714 |
</datafield> |
715 |
</xsl:for-each> |
716 |
<xsl:for-each select="marc:datafield[@tag='774']"> |
717 |
<datafield tag="464"> |
718 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
719 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind1" /></xsl:attribute> |
720 |
<xsl:for-each select="marc:subfield[@code='w']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
721 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
722 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
723 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
724 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
725 |
</datafield> |
726 |
</xsl:for-each> |
727 |
<xsl:for-each select="marc:datafield[@tag='730']"> |
728 |
<datafield tag="500"> |
729 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
730 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
731 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
732 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="n"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
733 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="k"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
734 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="n"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
735 |
<xsl:for-each select="marc:subfield[@code='k']"><subfield code="j"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
736 |
<xsl:for-each select="marc:subfield[@code='l']"><subfield code="m"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
737 |
<xsl:for-each select="marc:subfield[@code='m']"><subfield code="r"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
738 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
739 |
<xsl:for-each select="marc:subfield[@code='o']"><subfield code="w"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
740 |
<xsl:for-each select="marc:subfield[@code='p']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
741 |
<xsl:for-each select="marc:subfield[@code='r']"><subfield code="u"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
742 |
<xsl:for-each select="marc:subfield[@code='s']"><subfield code="q"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
743 |
</datafield> |
744 |
</xsl:for-each> |
745 |
<xsl:for-each select="marc:datafield[@tag='243']"> |
746 |
<datafield tag="501"> |
747 |
<xsl:attribute name="ind1">1</xsl:attribute> |
748 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
749 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
750 |
<xsl:for-each select="marc:subfield[@code='k']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
751 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="k"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
752 |
<xsl:for-each select="marc:subfield[@code='l']"><subfield code="m"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
753 |
</datafield> |
754 |
</xsl:for-each> |
755 |
<xsl:for-each select="marc:datafield[@tag='247']"> |
756 |
<datafield tag="520"> |
757 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
758 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
759 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
760 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
761 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
762 |
<xsl:for-each select="marc:subfield[@code='p']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
763 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="n"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
764 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="j"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
765 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
766 |
</datafield> |
767 |
</xsl:for-each> |
768 |
<xsl:for-each select="marc:datafield[@tag='222']"> |
769 |
<datafield tag="530"> |
770 |
<xsl:attribute name="ind1">0</xsl:attribute> |
771 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
772 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
773 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
774 |
</datafield> |
775 |
</xsl:for-each> |
776 |
<xsl:for-each select="marc:datafield[@tag='210']"> |
777 |
<datafield tag="531"> |
778 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
779 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
780 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
781 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
782 |
</datafield> |
783 |
</xsl:for-each> |
784 |
<xsl:for-each select="marc:datafield[@tag='246']"> |
785 |
<datafield tag="532"> |
786 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
787 |
<xsl:attribute name="ind2">0</xsl:attribute> |
788 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
789 |
</datafield> |
790 |
</xsl:for-each> |
791 |
<xsl:for-each select="marc:datafield[@tag='242']"> |
792 |
<datafield tag="541"> |
793 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
794 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
795 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
796 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
797 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
798 |
<xsl:for-each select="marc:subfield[@code='p']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
799 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
800 |
</datafield> |
801 |
</xsl:for-each> |
802 |
<xsl:for-each select="marc:datafield[@tag='773']"> |
803 |
<datafield tag="545"> |
804 |
<xsl:attribute name="ind1"> |
805 |
<xsl:choose> |
806 |
<xsl:when test="@ind1 = 0">1</xsl:when> |
807 |
<xsl:otherwise>0</xsl:otherwise> |
808 |
</xsl:choose> |
809 |
</xsl:attribute> |
810 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
811 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
812 |
</datafield> |
813 |
</xsl:for-each> |
814 |
<xsl:for-each select="marc:datafield[@tag='610']"> |
815 |
<datafield tag="601"> |
816 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
817 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
818 |
<xsl:for-each select="marc:subfield[@code='a']"> |
819 |
<subfield code="a"><xsl:value-of select="text()" /></subfield> |
820 |
<subfield code="c"><xsl:value-of select="substring-before(substring-after(text(),'('),')')" /></subfield> |
821 |
</xsl:for-each> |
822 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
823 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
824 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
825 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
826 |
<!--<xsl:for-each select="marc:subfield[@code='f']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
827 |
<!--<xsl:for-each select="marc:subfield[@code='g']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
828 |
<xsl:for-each select="marc:subfield[@code='k']"><subfield code="j"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
829 |
<!--<xsl:for-each select="marc:subfield[@code='l']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
830 |
<!--<xsl:for-each select="marc:subfield[@code='m']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
831 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
832 |
<!--<xsl:for-each select="marc:subfield[@code='o']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
833 |
<!--<xsl:for-each select="marc:subfield[@code='p']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
834 |
<!--<xsl:for-each select="marc:subfield[@code='r']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
835 |
<!--<xsl:for-each select="marc:subfield[@code='s']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
836 |
<!--<xsl:for-each select="marc:subfield[@code='t']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
837 |
<!--<xsl:for-each select="marc:subfield[@code='u']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
838 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
839 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
840 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
841 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
842 |
</datafield> |
843 |
</xsl:for-each> |
844 |
<xsl:for-each select="marc:datafield[@tag='611']"> |
845 |
<datafield tag="601"> |
846 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
847 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
848 |
<xsl:for-each select="marc:subfield[@code='a']"> |
849 |
<subfield code="a"><xsl:value-of select="text()" /></subfield> |
850 |
<subfield code="c"><xsl:value-of select="substring-before(substring-after(text(),'('),')')" /></subfield> |
851 |
</xsl:for-each> |
852 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
853 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
854 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
855 |
<!--<xsl:for-each select="marc:subfield[@code='f']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
856 |
<!--<xsl:for-each select="marc:subfield[@code='g']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
857 |
<xsl:for-each select="marc:subfield[@code='k']"><subfield code="j"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
858 |
<!--<xsl:for-each select="marc:subfield[@code='l']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
859 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
860 |
<!--<xsl:for-each select="marc:subfield[@code='p']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
861 |
<!--<xsl:for-each select="marc:subfield[@code='s']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
862 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
863 |
<!--<xsl:for-each select="marc:subfield[@code='u']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
864 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
865 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
866 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
867 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
868 |
</datafield> |
869 |
</xsl:for-each> |
870 |
<xsl:for-each select="marc:datafield[@tag='630']"> |
871 |
<datafield tag="605"> |
872 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
873 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
874 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
875 |
<!--<xsl:for-each select="marc:subfield[@code='d']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
876 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="k"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
877 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="n"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
878 |
<xsl:for-each select="marc:subfield[@code='k']"><subfield code="j"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
879 |
<xsl:for-each select="marc:subfield[@code='l']"><subfield code="m"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
880 |
<xsl:for-each select="marc:subfield[@code='m']"><subfield code="r"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
881 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
882 |
<xsl:for-each select="marc:subfield[@code='o']"><subfield code="w"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
883 |
<xsl:for-each select="marc:subfield[@code='p']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
884 |
<xsl:for-each select="marc:subfield[@code='r']"><subfield code="u"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
885 |
<xsl:for-each select="marc:subfield[@code='s']"><subfield code="q"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
886 |
<!--<xsl:for-each select="marc:subfield[@code='t']"><subfield code="?"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
887 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
888 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
889 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
890 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
891 |
</datafield> |
892 |
</xsl:for-each> |
893 |
<xsl:for-each select="marc:datafield[@tag='600']"> |
894 |
<datafield tag="600"> |
895 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
896 |
<xsl:attribute name="ind2"> |
897 |
<xsl:choose> |
898 |
<xsl:when test="@ind1 = 0">0</xsl:when> |
899 |
<xsl:otherwise>1</xsl:otherwise> |
900 |
</xsl:choose> |
901 |
</xsl:attribute> |
902 |
<xsl:for-each select="marc:subfield[@code='a']"> |
903 |
<subfield code="a"><xsl:value-of select="substring-before(text(),', ')" /></subfield> |
904 |
<subfield code="b"><xsl:value-of select="substring-after(text(),', ')" /></subfield> |
905 |
</xsl:for-each> |
906 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
907 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
908 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
909 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
910 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
911 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
912 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
913 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="2"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
914 |
</datafield> |
915 |
<datafield tag="602"> |
916 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
917 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
918 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
919 |
<xsl:for-each select="marc:subfield[@code='t']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
920 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
921 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
922 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
923 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="2"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
924 |
</datafield> |
925 |
</xsl:for-each> |
926 |
<xsl:for-each select="marc:datafield[@tag='630']"> |
927 |
<datafield tag="605"> |
928 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
929 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
930 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
931 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="h"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
932 |
<xsl:for-each select="marc:subfield[@code='p']"><subfield code="i"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
933 |
<xsl:for-each select="marc:subfield[@code='f']"><subfield code="k"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
934 |
<xsl:for-each select="marc:subfield[@code='k']"><subfield code="l"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
935 |
<xsl:for-each select="marc:subfield[@code='l']"><subfield code="m"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
936 |
<xsl:for-each select="marc:subfield[@code='g']"><subfield code="n"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
937 |
<xsl:for-each select="marc:subfield[@code='s']"><subfield code="q"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
938 |
<xsl:for-each select="marc:subfield[@code='r']"><subfield code="r"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
939 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="s"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
940 |
<xsl:for-each select="marc:subfield[@code='o']"><subfield code="t"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
941 |
<xsl:for-each select="marc:subfield[@code='r']"><subfield code="u"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
942 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
943 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
944 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
945 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="2"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
946 |
</datafield> |
947 |
</xsl:for-each> |
948 |
<xsl:for-each select="marc:datafield[@tag='650']"> |
949 |
<datafield tag="606"> |
950 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
951 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
952 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
953 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
954 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
955 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
956 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="2"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
957 |
</datafield> |
958 |
</xsl:for-each> |
959 |
<xsl:for-each select="marc:datafield[@tag='651']"> |
960 |
<datafield tag="607"> |
961 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
962 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
963 |
<xsl:for-each select="marc:subfield[@code='a']"> |
964 |
<subfield code="a"><xsl:value-of select="substring-before(text(),', ')" /></subfield> |
965 |
<subfield code="b"><xsl:value-of select="substring-after(text(),', ')" /></subfield> |
966 |
</xsl:for-each> |
967 |
<xsl:for-each select="marc:subfield[@code='x']"><subfield code="x"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
968 |
<xsl:for-each select="marc:subfield[@code='z']"><subfield code="y"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
969 |
<xsl:for-each select="marc:subfield[@code='y']"><subfield code="z"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
970 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="2"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
971 |
</datafield> |
972 |
</xsl:for-each> |
973 |
<xsl:for-each select="marc:datafield[@tag='653']"> |
974 |
<datafield tag="610"> |
975 |
<xsl:attribute name="ind1"> |
976 |
<xsl:choose> |
977 |
<xsl:when test="@ind1 = ' '">0</xsl:when> |
978 |
<xsl:otherwise><xsl:value-of select="@ind1" /></xsl:otherwise> |
979 |
</xsl:choose> |
980 |
</xsl:attribute> |
981 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
982 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
983 |
</datafield> |
984 |
</xsl:for-each> |
985 |
<xsl:for-each select="marc:datafield[@tag='752']"> |
986 |
<datafield tag="620"> |
987 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
988 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
989 |
<xsl:for-each select="marc:subfield"><subfield code="@code"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
990 |
</datafield> |
991 |
</xsl:for-each> |
992 |
<xsl:for-each select="marc:datafield[@tag='753']"> |
993 |
<datafield tag="626"> |
994 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
995 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
996 |
<xsl:for-each select="marc:subfield"><subfield code="@code"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
997 |
</datafield> |
998 |
</xsl:for-each> |
999 |
<xsl:for-each select="marc:datafield[@tag='043']"> |
1000 |
<datafield tag="660"> |
1001 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1002 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1003 |
<xsl:for-each select="marc:subfield"><subfield code="@code"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1004 |
</datafield> |
1005 |
</xsl:for-each> |
1006 |
<xsl:for-each select="marc:datafield[@tag='045']"> |
1007 |
<datafield tag="661"> |
1008 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1009 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1010 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1011 |
</datafield> |
1012 |
</xsl:for-each> |
1013 |
<xsl:for-each select="marc:datafield[@tag='886']"> |
1014 |
<datafield tag="670"> |
1015 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1016 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1017 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1018 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1019 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1020 |
</datafield> |
1021 |
</xsl:for-each> |
1022 |
<xsl:for-each select="marc:datafield[@tag='080']"> |
1023 |
<datafield tag="675"> |
1024 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1025 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1026 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1027 |
</datafield> |
1028 |
</xsl:for-each> |
1029 |
<xsl:for-each select="marc:datafield[@tag='082']"> |
1030 |
<datafield tag="676"> |
1031 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1032 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1033 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1034 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="v"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1035 |
</datafield> |
1036 |
</xsl:for-each> |
1037 |
<xsl:for-each select="marc:datafield[@tag='050']"> |
1038 |
<datafield tag="680"> |
1039 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1040 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1041 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1042 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1043 |
</datafield> |
1044 |
</xsl:for-each> |
1045 |
<xsl:for-each select="marc:datafield[@tag='084']"> |
1046 |
<datafield tag="686"> |
1047 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1048 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1049 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1050 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1051 |
<xsl:for-each select="marc:subfield[@code='2']"><subfield code="2"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1052 |
</datafield> |
1053 |
</xsl:for-each> |
1054 |
<xsl:for-each select="marc:datafield[@tag='100']"> |
1055 |
<datafield tag="700"> |
1056 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1057 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1058 |
<xsl:for-each select="marc:subfield[@code='a']"> |
1059 |
<subfield code="a"><xsl:value-of select="substring-before(text(),', ')" /></subfield> |
1060 |
<subfield code="b"><xsl:value-of select="substring-after(text(),', ')" /></subfield> |
1061 |
</xsl:for-each> |
1062 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1063 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1064 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1065 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1066 |
<xsl:for-each select="marc:subfield[@code='q']"><subfield code="g"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1067 |
<xsl:for-each select="marc:subfield[@code='u']"><subfield code="p"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1068 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
1069 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1070 |
</datafield> |
1071 |
</xsl:for-each> |
1072 |
<xsl:for-each select="marc:datafield[@tag='700']"> |
1073 |
<datafield tag="701"> |
1074 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1075 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1076 |
<xsl:for-each select="marc:subfield[@code='a']"> |
1077 |
<subfield code="a"><xsl:value-of select="substring-before(text(),', ')" /></subfield> |
1078 |
<subfield code="b"><xsl:value-of select="substring-after(text(),', ')" /></subfield> |
1079 |
</xsl:for-each> |
1080 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1081 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="c"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1082 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1083 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1084 |
<xsl:for-each select="marc:subfield[@code='q']"><subfield code="g"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1085 |
<xsl:for-each select="marc:subfield[@code='u']"><subfield code="p"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1086 |
<!--<xsl:for-each select="marc:subfield[@code='?']"><subfield code="3"><xsl:value-of select="text()" /></subfield></xsl:for-each>--> |
1087 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1088 |
</datafield> |
1089 |
</xsl:for-each> |
1090 |
<xsl:for-each select="marc:datafield[@tag='110']"> |
1091 |
<datafield tag="710"> |
1092 |
<xsl:attribute name="ind1">0</xsl:attribute> |
1093 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1094 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1095 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1096 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1097 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1098 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1099 |
<xsl:for-each select="marc:subfield[@code='u']"><subfield code="p"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1100 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1101 |
</datafield> |
1102 |
</xsl:for-each> |
1103 |
<xsl:for-each select="marc:datafield[@tag='111']"> |
1104 |
<datafield tag="710"> |
1105 |
<xsl:attribute name="ind1">1</xsl:attribute> |
1106 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1107 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1108 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1109 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1110 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1111 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1112 |
<xsl:for-each select="marc:subfield[@code='u']"><subfield code="p"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1113 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1114 |
</datafield> |
1115 |
</xsl:for-each> |
1116 |
<xsl:for-each select="marc:datafield[@tag='710']"> |
1117 |
<datafield tag="711"> |
1118 |
<xsl:attribute name="ind1">0</xsl:attribute> |
1119 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1120 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1121 |
<xsl:for-each select="marc:subfield[@code='b']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1122 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1123 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1124 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1125 |
<xsl:for-each select="marc:subfield[@code='u']"><subfield code="p"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1126 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1127 |
</datafield> |
1128 |
</xsl:for-each> |
1129 |
<xsl:for-each select="marc:datafield[@tag='711']"> |
1130 |
<datafield tag="711"> |
1131 |
<xsl:attribute name="ind1">1</xsl:attribute> |
1132 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1133 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1134 |
<xsl:for-each select="marc:subfield[@code='e']"><subfield code="b"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1135 |
<xsl:for-each select="marc:subfield[@code='n']"><subfield code="d"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1136 |
<xsl:for-each select="marc:subfield[@code='c']"><subfield code="e"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1137 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1138 |
<xsl:for-each select="marc:subfield[@code='u']"><subfield code="p"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1139 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1140 |
</datafield> |
1141 |
</xsl:for-each> |
1142 |
<xsl:for-each select="marc:datafield[@tag='100']"> |
1143 |
<datafield tag="720"> |
1144 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1145 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1146 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1147 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1148 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1149 |
</datafield> |
1150 |
</xsl:for-each> |
1151 |
<xsl:for-each select="marc:datafield[@tag='700']"> |
1152 |
<datafield tag="721"> |
1153 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1154 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1155 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1156 |
<xsl:for-each select="marc:subfield[@code='d']"><subfield code="f"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1157 |
<xsl:for-each select="marc:subfield[@code='4']"><subfield code="4"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1158 |
</datafield> |
1159 |
</xsl:for-each> |
1160 |
<xsl:for-each select="marc:controlfield[@tag='008']"> |
1161 |
<datafield tag="802"> |
1162 |
<xsl:attribute name="ind1"><xsl:value-of select="' '" /></xsl:attribute> |
1163 |
<xsl:attribute name="ind2"><xsl:value-of select="' '" /></xsl:attribute> |
1164 |
<subfield code="a"> |
1165 |
<xsl:choose> |
1166 |
<xsl:when test="substring(text(),21,1) = '0'">00</xsl:when> |
1167 |
<xsl:when test="substring(text(),21,1) = '1'">01</xsl:when> |
1168 |
<xsl:when test="substring(text(),21,1) = '4'">04</xsl:when> |
1169 |
<xsl:when test="substring(text(),21,1) = '#'">uu</xsl:when> |
1170 |
<xsl:when test="substring(text(),21,1) = 'z'">zz</xsl:when> |
1171 |
<xsl:otherwise>zz</xsl:otherwise> |
1172 |
</xsl:choose> |
1173 |
</subfield> |
1174 |
</datafield> |
1175 |
</xsl:for-each> |
1176 |
<xsl:for-each select="marc:datafield[@tag='590']"> |
1177 |
<datafield tag="900"> |
1178 |
<xsl:attribute name="ind1"><xsl:value-of select="@ind1" /></xsl:attribute> |
1179 |
<xsl:attribute name="ind2"><xsl:value-of select="@ind2" /></xsl:attribute> |
1180 |
<xsl:for-each select="marc:subfield[@code='a']"><subfield code="a"><xsl:value-of select="text()" /></subfield></xsl:for-each> |
1181 |
</datafield> |
1182 |
</xsl:for-each> |
1183 |
</record> |
1184 |
</xsl:for-each> |
1185 |
</collection> |
1186 |
</xsl:template> |
1187 |
</xsl:stylesheet> |