View | Details | Raw Unified | Return to bug 18017
Collapse All | Expand All

(-)a/etc/zebradb/marc_defs/unimarc/authorities/authority-koha-indexdefs.xml (-414 / +560 lines)
Lines 17-653 authority-zebra-indexdefs.xsl` Link Here
17
  <kohaidx:index_control_field tag="001">
17
  <kohaidx:index_control_field tag="001">
18
    <kohaidx:target_index>Local-Number:w</kohaidx:target_index>
18
    <kohaidx:target_index>Local-Number:w</kohaidx:target_index>
19
    <kohaidx:target_index>Local-Number:p</kohaidx:target_index>
19
    <kohaidx:target_index>Local-Number:p</kohaidx:target_index>
20
    <kohaidx:target_index>Local-Number:s</kohaidx:target_index>
21
    <kohaidx:target_index>Local-Number:n</kohaidx:target_index>
20
    <kohaidx:target_index>Local-Number:n</kohaidx:target_index>
21
    <kohaidx:target_index>Local-Number:s</kohaidx:target_index>
22
  </kohaidx:index_control_field>
22
  </kohaidx:index_control_field>
23
23
24
  <!-- Personal name headings -->
24
  <!-- Personal name headings -->
25
  <kohaidx:index_subfields tag="200" subfields="abcdfgjxyz">
25
  <kohaidx:index_subfields tag="200" subfields="abcdfgjxyz">
26
    <kohaidx:target_index>Personal-name:w</kohaidx:target_index>
26
    <kohaidx:target_index>Personal-name:w</kohaidx:target_index>
27
    <kohaidx:target_index>Personal-name:p</kohaidx:target_index>
27
    <kohaidx:target_index>Personal-name:p</kohaidx:target_index>
28
    <kohaidx:target_index>Personal-name:s</kohaidx:target_index>
29
  </kohaidx:index_subfields>
30
  <kohaidx:index_heading tag="200" subfields="abcdfgjxyz" subdivisions="jxyz">
31
    <kohaidx:target_index>Personal-name-heading:w</kohaidx:target_index>
32
    <kohaidx:target_index>Personal-name-heading:p</kohaidx:target_index>
33
    <kohaidx:target_index>Personal-name-heading:s</kohaidx:target_index>
28
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
34
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
29
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
35
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
30
    <kohaidx:target_index>Match:w</kohaidx:target_index>
31
    <kohaidx:target_index>Match:p</kohaidx:target_index>
32
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
33
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
34
  </kohaidx:index_subfields>
35
  <kohaidx:index_subfields tag="200" subfields="a">
36
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
36
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
37
  </kohaidx:index_heading>
38
  <kohaidx:index_heading tag="200" subfields="a">
37
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
39
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
38
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
40
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
39
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
41
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
40
    <kohaidx:target_index>Personal-name-heading:w</kohaidx:target_index>
42
  </kohaidx:index_heading>
41
    <kohaidx:target_index>Personal-name-heading:p</kohaidx:target_index>
43
  <kohaidx:index_match_heading tag="200" subfields="abcdfgjxyz" subdivisions="jxyz">
42
    <kohaidx:target_index>Personal-name-heading:s</kohaidx:target_index>
43
  </kohaidx:index_subfields>
44
45
  <kohaidx:index_subfields tag="400" subfields="abcdfgjxyz">
46
    <kohaidx:target_index>Personal-name-see:w</kohaidx:target_index>
47
    <kohaidx:target_index>Personal-name-see:p</kohaidx:target_index>
48
    <kohaidx:target_index>See:w</kohaidx:target_index>
49
    <kohaidx:target_index>See:p</kohaidx:target_index>
50
    <kohaidx:target_index>Match:w</kohaidx:target_index>
44
    <kohaidx:target_index>Match:w</kohaidx:target_index>
51
    <kohaidx:target_index>Match:p</kohaidx:target_index>
45
    <kohaidx:target_index>Match:p</kohaidx:target_index>
52
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
46
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
53
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
47
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
54
  </kohaidx:index_subfields>
48
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
55
49
  </kohaidx:index_match_heading>
56
  <kohaidx:index_subfields tag="500" subfields="abcdfgjxyz">
50
57
    <kohaidx:target_index>Personal-name-see-also:w</kohaidx:target_index>
51
  <kohaidx:index_heading tag="400" subfields="abcdfgjxyz" subdivisions="jxyz">
58
    <kohaidx:target_index>Personal-name-see-also:p</kohaidx:target_index>
52
    <kohaidx:target_index>Personal-name-see-from:w</kohaidx:target_index>
59
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
53
    <kohaidx:target_index>Personal-name-see-from:p</kohaidx:target_index>
60
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
54
    <kohaidx:target_index>Personal-name-see-from:s</kohaidx:target_index>
61
    <kohaidx:target_index>Match:w</kohaidx:target_index>
55
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
62
    <kohaidx:target_index>Match:p</kohaidx:target_index>
56
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
63
  </kohaidx:index_subfields>
57
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
64
58
  </kohaidx:index_heading>
65
  <kohaidx:index_subfields tag="700" subfields="a">
59
  <kohaidx:index_match_heading tag="400" subfields="abcdfgjxyz" subdivisions="jxyz">
60
    <kohaidx:target_index>Match:w</kohaidx:target_index>
61
    <kohaidx:target_index>Match:p</kohaidx:target_index>
62
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
63
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
64
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
65
  </kohaidx:index_match_heading>
66
67
  <kohaidx:index_heading tag="500" subfields="abcdfgjxyz" subdivisions="jxyz">
68
    <kohaidx:target_index>Personal-name-see-also-from:w</kohaidx:target_index>
69
    <kohaidx:target_index>Personal-name-see-also-from:p</kohaidx:target_index>
70
    <kohaidx:target_index>Personal-name-see-also-from:s</kohaidx:target_index>
71
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
72
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
73
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
74
  </kohaidx:index_heading>
75
  <kohaidx:index_match_heading tag="500" subfields="abcdfgjxyz" subdivisions="jxyz">
76
    <kohaidx:target_index>Match:w</kohaidx:target_index>
77
    <kohaidx:target_index>Match:p</kohaidx:target_index>
78
  </kohaidx:index_match_heading>
79
80
  <kohaidx:index_heading tag="700" subfields="abcdfgjxyz" subdivisions="jxyz">
66
    <kohaidx:target_index>Personal-name-parallel:w</kohaidx:target_index>
81
    <kohaidx:target_index>Personal-name-parallel:w</kohaidx:target_index>
82
    <kohaidx:target_index>Personal-name-parallel:p</kohaidx:target_index>
67
    <kohaidx:target_index>Personal-name-parallel:s</kohaidx:target_index>
83
    <kohaidx:target_index>Personal-name-parallel:s</kohaidx:target_index>
68
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
84
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
69
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
85
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
86
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
87
  </kohaidx:index_heading>
88
  <kohaidx:index_match_heading tag="700" subfields="abcdfgjxyz" subdivisions="jxyz">
70
    <kohaidx:target_index>Match:w</kohaidx:target_index>
89
    <kohaidx:target_index>Match:w</kohaidx:target_index>
71
    <kohaidx:target_index>Match:p</kohaidx:target_index>
90
    <kohaidx:target_index>Match:p</kohaidx:target_index>
72
  </kohaidx:index_subfields>
91
  </kohaidx:index_match_heading>
73
92
74
  <!-- Corporate name headings -->
93
  <!-- Corporate name headings -->
75
  <kohaidx:index_subfields tag="210" subfields="abcdefgjxyz">
94
  <kohaidx:index_subfields tag="210" subfields="abcdefgjxyz">
76
    <kohaidx:target_index>Corporate-name:w</kohaidx:target_index>
95
    <kohaidx:target_index>Corporate-name:w</kohaidx:target_index>
77
    <kohaidx:target_index>Corporate-name:p</kohaidx:target_index>
96
    <kohaidx:target_index>Corporate-name:p</kohaidx:target_index>
97
    <kohaidx:target_index>Corporate-name:s</kohaidx:target_index>
78
    <kohaidx:target_index>Conference-name:w</kohaidx:target_index>
98
    <kohaidx:target_index>Conference-name:w</kohaidx:target_index>
79
    <kohaidx:target_index>Conference-name:p</kohaidx:target_index>
99
    <kohaidx:target_index>Conference-name:p</kohaidx:target_index>
80
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
100
    <kohaidx:target_index>Conference-name:s</kohaidx:target_index>
81
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
82
    <kohaidx:target_index>Match:w</kohaidx:target_index>
83
    <kohaidx:target_index>Match:p</kohaidx:target_index>
84
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
85
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
86
  </kohaidx:index_subfields>
101
  </kohaidx:index_subfields>
87
  <kohaidx:index_subfields tag="210" subfields="a">
102
  <kohaidx:index_heading tag="210" subfields="abcdefgjxyz" subdivisions="jxyz">
88
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
89
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
90
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
91
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
92
    <kohaidx:target_index>Corporate-name-heading:w</kohaidx:target_index>
103
    <kohaidx:target_index>Corporate-name-heading:w</kohaidx:target_index>
93
    <kohaidx:target_index>Corporate-name-heading:p</kohaidx:target_index>
104
    <kohaidx:target_index>Corporate-name-heading:p</kohaidx:target_index>
94
    <kohaidx:target_index>Corporate-name-heading:s</kohaidx:target_index>
105
    <kohaidx:target_index>Corporate-name-heading:s</kohaidx:target_index>
95
    <kohaidx:target_index>Conference-name-heading:w</kohaidx:target_index>
106
    <kohaidx:target_index>Conference-name-heading:w</kohaidx:target_index>
96
    <kohaidx:target_index>Conference-name-heading:p</kohaidx:target_index>
107
    <kohaidx:target_index>Conference-name-heading:p</kohaidx:target_index>
97
    <kohaidx:target_index>Conference-name-heading:s</kohaidx:target_index>
108
    <kohaidx:target_index>Conference-name-heading:s</kohaidx:target_index>
98
  </kohaidx:index_subfields>
109
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
99
110
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
100
  <kohaidx:index_subfields tag="410" subfields="abcdefgjxyz">
111
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
101
    <kohaidx:target_index>Corporate-name-see:w</kohaidx:target_index>
112
  </kohaidx:index_heading>
102
    <kohaidx:target_index>Corporate-name-see:p</kohaidx:target_index>
113
  <kohaidx:index_heading tag="210" subfields="a">
103
    <kohaidx:target_index>Conference-name-see:w</kohaidx:target_index>
114
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
104
    <kohaidx:target_index>Conference-name-see:p</kohaidx:target_index>
115
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
105
    <kohaidx:target_index>See:w</kohaidx:target_index>
116
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
106
    <kohaidx:target_index>See:p</kohaidx:target_index>
117
  </kohaidx:index_heading>
107
    <kohaidx:target_index>Match:w</kohaidx:target_index>
118
  <kohaidx:index_match_heading tag="210" subfields="abcdefgjxyz" subdivisions="jxyz">
108
    <kohaidx:target_index>Match:p</kohaidx:target_index>
109
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
110
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
111
  </kohaidx:index_subfields>
112
113
  <kohaidx:index_subfields tag="510" subfields="abcdefgjxyz">
114
    <kohaidx:target_index>Corporate-name-see-also:w</kohaidx:target_index>
115
    <kohaidx:target_index>Corporate-name-see-also:p</kohaidx:target_index>
116
    <kohaidx:target_index>Conference-name-see-also:w</kohaidx:target_index>
117
    <kohaidx:target_index>Conference-name-see-also:p</kohaidx:target_index>
118
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
119
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
120
    <kohaidx:target_index>Match:w</kohaidx:target_index>
119
    <kohaidx:target_index>Match:w</kohaidx:target_index>
121
    <kohaidx:target_index>Match:p</kohaidx:target_index>
120
    <kohaidx:target_index>Match:p</kohaidx:target_index>
122
  </kohaidx:index_subfields>
121
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
123
122
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
124
  <kohaidx:index_subfields tag="710" subfields="abcdefgjxyz">
123
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
124
  </kohaidx:index_match_heading>
125
126
  <kohaidx:index_heading tag="410" subfields="abcdefgjxyz" subdivisions="jxyz">
127
    <kohaidx:target_index>Corporate-name-see-from:w</kohaidx:target_index>
128
    <kohaidx:target_index>Corporate-name-see-from:p</kohaidx:target_index>
129
    <kohaidx:target_index>Corporate-name-see-from:s</kohaidx:target_index>
130
    <kohaidx:target_index>Conference-name-see-from:w</kohaidx:target_index>
131
    <kohaidx:target_index>Conference-name-see-from:p</kohaidx:target_index>
132
    <kohaidx:target_index>Conference-name-see-from:s</kohaidx:target_index>
133
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
134
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
135
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
136
  </kohaidx:index_heading>
137
  <kohaidx:index_match_heading tag="410" subfields="abcdefgjxyz" subdivisions="jxyz">
138
    <kohaidx:target_index>Match:w</kohaidx:target_index>
139
    <kohaidx:target_index>Match:p</kohaidx:target_index>
140
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
141
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
142
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
143
  </kohaidx:index_match_heading>
144
145
  <kohaidx:index_heading tag="510" subfields="abcdefgjxyz" subdivisions="jxyz">
146
    <kohaidx:target_index>Corporate-name-see-also-from:w</kohaidx:target_index>
147
    <kohaidx:target_index>Corporate-name-see-also-from:p</kohaidx:target_index>
148
    <kohaidx:target_index>Corporate-name-see-also-from:s</kohaidx:target_index>
149
    <kohaidx:target_index>Conference-name-see-also-from:w</kohaidx:target_index>
150
    <kohaidx:target_index>Conference-name-see-also-from:p</kohaidx:target_index>
151
    <kohaidx:target_index>Conference-name-see-also-from:s</kohaidx:target_index>
152
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
153
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
154
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
155
  </kohaidx:index_heading>
156
  <kohaidx:index_match_heading tag="510" subfields="abcdefgjxyz" subdivisions="jxyz">
157
    <kohaidx:target_index>Match:w</kohaidx:target_index>
158
    <kohaidx:target_index>Match:p</kohaidx:target_index>
159
  </kohaidx:index_match_heading>
160
161
  <kohaidx:index_heading tag="710" subfields="abcdefgjxyz" subdivisions="jxyz">
125
    <kohaidx:target_index>Corporate-name-parallel:w</kohaidx:target_index>
162
    <kohaidx:target_index>Corporate-name-parallel:w</kohaidx:target_index>
163
    <kohaidx:target_index>Corporate-name-parallel:p</kohaidx:target_index>
126
    <kohaidx:target_index>Corporate-name-parallel:s</kohaidx:target_index>
164
    <kohaidx:target_index>Corporate-name-parallel:s</kohaidx:target_index>
127
    <kohaidx:target_index>Conference-name-parallel:w</kohaidx:target_index>
165
    <kohaidx:target_index>Conference-name-parallel:w</kohaidx:target_index>
166
    <kohaidx:target_index>Conference-name-parallel:p</kohaidx:target_index>
128
    <kohaidx:target_index>Conference-name-parallel:s</kohaidx:target_index>
167
    <kohaidx:target_index>Conference-name-parallel:s</kohaidx:target_index>
129
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
168
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
130
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
169
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
170
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
171
  </kohaidx:index_heading>
172
  <kohaidx:index_match_heading tag="710" subfields="abcdefgjxyz" subdivisions="jxyz">
131
    <kohaidx:target_index>Match:w</kohaidx:target_index>
173
    <kohaidx:target_index>Match:w</kohaidx:target_index>
132
    <kohaidx:target_index>Match:p</kohaidx:target_index>
174
    <kohaidx:target_index>Match:p</kohaidx:target_index>
133
  </kohaidx:index_subfields>
175
  </kohaidx:index_match_heading>
134
176
135
  <!-- Geographic name -->
177
  <!-- Geographic name -->
136
  <kohaidx:index_subfields tag="215" subfields="ajxyz">
178
  <kohaidx:index_subfields tag="215" subfields="ajxyz">
137
    <kohaidx:target_index>Name-geographic:w</kohaidx:target_index>
179
    <kohaidx:target_index>Name-geographic:w</kohaidx:target_index>
138
    <kohaidx:target_index>Name-geographic:p</kohaidx:target_index>
180
    <kohaidx:target_index>Name-geographic:p</kohaidx:target_index>
139
    <kohaidx:target_index>Name-geographic:s</kohaidx:target_index>
181
    <kohaidx:target_index>Name-geographic:s</kohaidx:target_index>
140
    <kohaidx:target_index>Term-geographic:w</kohaidx:target_index>
182
  </kohaidx:index_subfields>
141
    <kohaidx:target_index>Term-geographic:p</kohaidx:target_index>
183
  <kohaidx:index_heading tag="215" subfields="ajxyz" subdivisions="jxyz">
142
    <kohaidx:target_index>Term-geographic:s</kohaidx:target_index>
184
    <kohaidx:target_index>Name-geographic-heading:w</kohaidx:target_index>
185
    <kohaidx:target_index>Name-geographic-heading:p</kohaidx:target_index>
186
    <kohaidx:target_index>Name-geographic-heading:s</kohaidx:target_index>
143
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
187
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
144
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
188
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
145
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
189
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
146
    <kohaidx:target_index>Match:w</kohaidx:target_index>
190
  </kohaidx:index_heading>
147
    <kohaidx:target_index>Match:p</kohaidx:target_index>
191
  <kohaidx:index_heading tag="215" subfields="a">
148
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
149
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
150
  </kohaidx:index_subfields>
151
  <kohaidx:index_subfields tag="215" subfields="a">
152
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
192
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
153
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
193
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
154
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
194
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
155
    <kohaidx:target_index>Name-geographic-heading:w</kohaidx:target_index>
195
  </kohaidx:index_heading>
156
    <kohaidx:target_index>Name-geographic-heading:p</kohaidx:target_index>
196
  <kohaidx:index_match_heading tag="215" subfields="ajxyz" subdivisions="jxyz">
157
    <kohaidx:target_index>Name-geographic-heading:s</kohaidx:target_index>
158
    <kohaidx:target_index>Term-geographic-heading:w</kohaidx:target_index>
159
    <kohaidx:target_index>Term-geographic-heading:p</kohaidx:target_index>
160
    <kohaidx:target_index>Term-geographic-heading:s</kohaidx:target_index>
161
  </kohaidx:index_subfields>
162
163
  <kohaidx:index_subfields tag="415" subfields="ajxyz">
164
    <kohaidx:target_index>Name-geographic-see:w</kohaidx:target_index>
165
    <kohaidx:target_index>Name-geographic-see:p</kohaidx:target_index>
166
    <kohaidx:target_index>Term-geographic-see:w</kohaidx:target_index>
167
    <kohaidx:target_index>Term-geographic-see:p</kohaidx:target_index>
168
    <kohaidx:target_index>Term-geographic-see:s</kohaidx:target_index>
169
    <kohaidx:target_index>See:w</kohaidx:target_index>
170
    <kohaidx:target_index>See:p</kohaidx:target_index>
171
    <kohaidx:target_index>See:s</kohaidx:target_index>
172
    <kohaidx:target_index>Match:w</kohaidx:target_index>
173
    <kohaidx:target_index>Match:p</kohaidx:target_index>
174
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
175
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
176
  </kohaidx:index_subfields>
177
178
  <kohaidx:index_subfields tag="515" subfields="ajxyz">
179
    <kohaidx:target_index>Name-geographic-see-also:w</kohaidx:target_index>
180
    <kohaidx:target_index>Name-geographic-see-also:p</kohaidx:target_index>
181
    <kohaidx:target_index>Term-geographic-see-also:w</kohaidx:target_index>
182
    <kohaidx:target_index>Term-geographic-see-also:p</kohaidx:target_index>
183
    <kohaidx:target_index>Term-geographic-see-also:s</kohaidx:target_index>
184
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
185
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
186
    <kohaidx:target_index>Match:w</kohaidx:target_index>
197
    <kohaidx:target_index>Match:w</kohaidx:target_index>
187
    <kohaidx:target_index>Match:p</kohaidx:target_index>
198
    <kohaidx:target_index>Match:p</kohaidx:target_index>
188
  </kohaidx:index_subfields>
199
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
189
200
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
190
  <kohaidx:index_subfields tag="715" subfields="ajxyz">
201
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
202
  </kohaidx:index_match_heading>
203
204
  <kohaidx:index_heading tag="415" subfields="ajxyz" subdivisions="jxyz">
205
    <kohaidx:target_index>Name-geographic-see-from:w</kohaidx:target_index>
206
    <kohaidx:target_index>Name-geographic-see-from:p</kohaidx:target_index>
207
    <kohaidx:target_index>Name-geographic-see-from:s</kohaidx:target_index>
208
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
209
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
210
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
211
  </kohaidx:index_heading>
212
  <kohaidx:index_match_heading tag="415" subfields="ajxyz" subdivisions="jxyz">
213
    <kohaidx:target_index>Match:w</kohaidx:target_index>
214
    <kohaidx:target_index>Match:p</kohaidx:target_index>
215
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
216
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
217
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
218
  </kohaidx:index_match_heading>
219
220
  <kohaidx:index_heading tag="515" subfields="ajxyz" subdivisions="jxyz">
221
    <kohaidx:target_index>Name-geographic-see-also-from:w</kohaidx:target_index>
222
    <kohaidx:target_index>Name-geographic-see-also-from:p</kohaidx:target_index>
223
    <kohaidx:target_index>Name-geographic-see-also-from:s</kohaidx:target_index>
224
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
225
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
226
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
227
  </kohaidx:index_heading>
228
  <kohaidx:index_match_heading tag="515" subfields="ajxyz" subdivisions="jxyz">
229
    <kohaidx:target_index>Match:w</kohaidx:target_index>
230
    <kohaidx:target_index>Match:p</kohaidx:target_index>
231
  </kohaidx:index_match_heading>
232
233
  <kohaidx:index_heading tag="715" subfields="abcdefgjxyz" subdivisions="jxyz">
191
    <kohaidx:target_index>Name-geographic-parallel:w</kohaidx:target_index>
234
    <kohaidx:target_index>Name-geographic-parallel:w</kohaidx:target_index>
235
    <kohaidx:target_index>Name-geographic-parallel:p</kohaidx:target_index>
192
    <kohaidx:target_index>Name-geographic-parallel:s</kohaidx:target_index>
236
    <kohaidx:target_index>Name-geographic-parallel:s</kohaidx:target_index>
193
    <kohaidx:target_index>Term-geographic-parallel:w</kohaidx:target_index>
194
    <kohaidx:target_index>Term-geographic-parallel:s</kohaidx:target_index>
195
    <kohaidx:target_index>Term-geographic-parallel:p</kohaidx:target_index>
196
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
237
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
197
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
238
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
239
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
240
  </kohaidx:index_heading>
241
  <kohaidx:index_match_heading tag="715" subfields="abcdefgjxyz" subdivisions="jxyz">
198
    <kohaidx:target_index>Match:w</kohaidx:target_index>
242
    <kohaidx:target_index>Match:w</kohaidx:target_index>
199
    <kohaidx:target_index>Match:p</kohaidx:target_index>
243
    <kohaidx:target_index>Match:p</kohaidx:target_index>
200
  </kohaidx:index_subfields>
244
  </kohaidx:index_match_heading>
201
245
202
  <!-- Trademark-->
246
  <!-- Trademark-->
203
  <kohaidx:index_subfields tag="216" subfields="afcjxyz">
247
  <kohaidx:index_subfields tag="216" subfields="afcjxyz">
204
    <kohaidx:target_index>Trademark:w</kohaidx:target_index>
248
    <kohaidx:target_index>Trademark:w</kohaidx:target_index>
205
    <kohaidx:target_index>Trademark:p</kohaidx:target_index>
249
    <kohaidx:target_index>Trademark:p</kohaidx:target_index>
250
    <kohaidx:target_index>Trademark:s</kohaidx:target_index>
251
  </kohaidx:index_subfields>
252
  <kohaidx:index_heading tag="216" subfields="afcjxyz" subdivisions="jxyz">
253
    <kohaidx:target_index>Trademark-heading:w</kohaidx:target_index>
254
    <kohaidx:target_index>Trademark-heading:p</kohaidx:target_index>
255
    <kohaidx:target_index>Trademark-heading:s</kohaidx:target_index>
206
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
256
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
207
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
257
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
208
    <kohaidx:target_index>Match:w</kohaidx:target_index>
209
    <kohaidx:target_index>Match:p</kohaidx:target_index>
210
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
211
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
212
  </kohaidx:index_subfields>
213
  <kohaidx:index_subfields tag="216" subfields="a">
214
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
258
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
259
  </kohaidx:index_heading>
260
  <kohaidx:index_heading tag="216" subfields="a">
215
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
261
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
216
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
262
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
217
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
263
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
218
    <kohaidx:target_index>Trademark-heading:w</kohaidx:target_index>
264
  </kohaidx:index_heading>
219
    <kohaidx:target_index>Trademark-heading:p</kohaidx:target_index>
265
  <kohaidx:index_match_heading tag="216" subfields="afcjxyz" subdivisions="jxyz">
220
    <kohaidx:target_index>Trademark-heading:s</kohaidx:target_index>
221
  </kohaidx:index_subfields>
222
223
  <kohaidx:index_subfields tag="416" subfields="afcjxyz">
224
    <kohaidx:target_index>Trademark-see:w</kohaidx:target_index>
225
    <kohaidx:target_index>Trademark-see:p</kohaidx:target_index>
226
    <kohaidx:target_index>See:w</kohaidx:target_index>
227
    <kohaidx:target_index>See:p</kohaidx:target_index>
228
    <kohaidx:target_index>Match:w</kohaidx:target_index>
229
    <kohaidx:target_index>Match:p</kohaidx:target_index>
230
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
231
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
232
  </kohaidx:index_subfields>
233
234
  <kohaidx:index_subfields tag="516" subfields="afcjxyz">
235
    <kohaidx:target_index>Trademark-see-also:w</kohaidx:target_index>
236
    <kohaidx:target_index>Trademark-see-also:p</kohaidx:target_index>
237
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
238
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
239
    <kohaidx:target_index>Match:w</kohaidx:target_index>
266
    <kohaidx:target_index>Match:w</kohaidx:target_index>
240
    <kohaidx:target_index>Match:p</kohaidx:target_index>
267
    <kohaidx:target_index>Match:p</kohaidx:target_index>
241
  </kohaidx:index_subfields>
268
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
242
269
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
243
  <kohaidx:index_subfields tag="716" subfields="afcjxyz">
270
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
271
  </kohaidx:index_match_heading>
272
273
  <kohaidx:index_heading tag="416" subfields="afcjxyz" subdivisions="jxyz">
274
    <kohaidx:target_index>Trademark-see-from:w</kohaidx:target_index>
275
    <kohaidx:target_index>Trademark-see-from:p</kohaidx:target_index>
276
    <kohaidx:target_index>Trademark-see-from:s</kohaidx:target_index>
277
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
278
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
279
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
280
  </kohaidx:index_heading>
281
  <kohaidx:index_match_heading tag="416" subfields="afcjxyz" subdivisions="jxyz">
282
    <kohaidx:target_index>Match:w</kohaidx:target_index>
283
    <kohaidx:target_index>Match:p</kohaidx:target_index>
284
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
285
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
286
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
287
  </kohaidx:index_match_heading>
288
289
  <kohaidx:index_heading tag="516" subfields="afcjxyz" subdivisions="jxyz">
290
    <kohaidx:target_index>Trademark-see-also-from:w</kohaidx:target_index>
291
    <kohaidx:target_index>Trademark-see-also-from:p</kohaidx:target_index>
292
    <kohaidx:target_index>Trademark-see-also-from:s</kohaidx:target_index>
293
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
294
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
295
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
296
  </kohaidx:index_heading>
297
  <kohaidx:index_match_heading tag="516" subfields="afcjxyz" subdivisions="jxyz">
298
    <kohaidx:target_index>Match:w</kohaidx:target_index>
299
    <kohaidx:target_index>Match:p</kohaidx:target_index>
300
  </kohaidx:index_match_heading>
301
302
  <kohaidx:index_heading tag="716" subfields="afcjxyz" subdivisions="jxyz">
244
    <kohaidx:target_index>Trademark-parallel:w</kohaidx:target_index>
303
    <kohaidx:target_index>Trademark-parallel:w</kohaidx:target_index>
304
    <kohaidx:target_index>Trademark-parallel:p</kohaidx:target_index>
245
    <kohaidx:target_index>Trademark-parallel:s</kohaidx:target_index>
305
    <kohaidx:target_index>Trademark-parallel:s</kohaidx:target_index>
246
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
306
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
247
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
307
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
308
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
309
  </kohaidx:index_heading>
310
  <kohaidx:index_match_heading tag="716" subfields="afcjxyz" subdivisions="jxyz">
248
    <kohaidx:target_index>Match:w</kohaidx:target_index>
311
    <kohaidx:target_index>Match:w</kohaidx:target_index>
249
    <kohaidx:target_index>Match:p</kohaidx:target_index>
312
    <kohaidx:target_index>Match:p</kohaidx:target_index>
250
  </kohaidx:index_subfields>
313
  </kohaidx:index_match_heading>
251
314
252
  <!-- Family name-->
315
  <!-- Family name-->
253
  <kohaidx:index_subfields tag="220" subfields="afjxyz">
316
  <kohaidx:index_subfields tag="220" subfields="afjxyz">
254
    <kohaidx:target_index>Name:w</kohaidx:target_index>
317
    <kohaidx:target_index>Name:w</kohaidx:target_index>
255
    <kohaidx:target_index>Name:p</kohaidx:target_index>
318
    <kohaidx:target_index>Name:p</kohaidx:target_index>
319
    <kohaidx:target_index>Name:s</kohaidx:target_index>
320
  </kohaidx:index_subfields>
321
  <kohaidx:index_heading tag="220" subfields="afjxyz" subdivisions="jxyz">
322
    <kohaidx:target_index>Name-heading:w</kohaidx:target_index>
323
    <kohaidx:target_index>Name-heading:p</kohaidx:target_index>
324
    <kohaidx:target_index>Name-heading:s</kohaidx:target_index>
256
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
325
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
257
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
326
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
258
    <kohaidx:target_index>Match:w</kohaidx:target_index>
259
    <kohaidx:target_index>Match:p</kohaidx:target_index>
260
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
261
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
262
  </kohaidx:index_subfields>
263
  <kohaidx:index_subfields tag="220" subfields="a">
264
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
327
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
328
  </kohaidx:index_heading>
329
  <kohaidx:index_heading tag="220" subfields="a">
265
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
330
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
266
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
331
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
267
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
332
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
268
    <kohaidx:target_index>Name-heading:w</kohaidx:target_index>
333
  </kohaidx:index_heading>
269
    <kohaidx:target_index>Name-heading:p</kohaidx:target_index>
334
  <kohaidx:index_match_heading tag="220" subfields="afjxyz" subdivisions="jxyz">
270
    <kohaidx:target_index>Name-heading:s</kohaidx:target_index>
271
  </kohaidx:index_subfields>
272
273
  <kohaidx:index_subfields tag="420" subfields="afjxyz">
274
    <kohaidx:target_index>Name-see:w</kohaidx:target_index>
275
    <kohaidx:target_index>Name-see:p</kohaidx:target_index>
276
    <kohaidx:target_index>See:w</kohaidx:target_index>
277
    <kohaidx:target_index>See:p</kohaidx:target_index>
278
    <kohaidx:target_index>Match:w</kohaidx:target_index>
335
    <kohaidx:target_index>Match:w</kohaidx:target_index>
279
    <kohaidx:target_index>Match:p</kohaidx:target_index>
336
    <kohaidx:target_index>Match:p</kohaidx:target_index>
280
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
337
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
281
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
338
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
282
  </kohaidx:index_subfields>
339
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
283
340
  </kohaidx:index_match_heading>
284
  <kohaidx:index_subfields tag="520" subfields="afjxyz">
341
285
    <kohaidx:target_index>Name-see-also:w</kohaidx:target_index>
342
  <kohaidx:index_heading tag="420" subfields="afjxyz" subdivisions="jxyz">
286
    <kohaidx:target_index>Name-see-also:p</kohaidx:target_index>
343
    <kohaidx:target_index>Name-see-from:w</kohaidx:target_index>
287
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
344
    <kohaidx:target_index>Name-see-from:p</kohaidx:target_index>
288
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
345
    <kohaidx:target_index>Name-see-from:s</kohaidx:target_index>
289
    <kohaidx:target_index>Match:w</kohaidx:target_index>
346
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
290
    <kohaidx:target_index>Match:p</kohaidx:target_index>
347
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
291
  </kohaidx:index_subfields>
348
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
292
349
  </kohaidx:index_heading>
293
  <kohaidx:index_subfields tag="720" subfields="afjxyz">
350
  <kohaidx:index_match_heading tag="420" subfields="afjxyz" subdivisions="jxyz">
351
    <kohaidx:target_index>Match:w</kohaidx:target_index>
352
    <kohaidx:target_index>Match:p</kohaidx:target_index>
353
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
354
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
355
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
356
  </kohaidx:index_match_heading>
357
358
  <kohaidx:index_heading tag="520" subfields="afjxyz" subdivisions="jxyz">
359
    <kohaidx:target_index>Name-see-also-from:w</kohaidx:target_index>
360
    <kohaidx:target_index>Name-see-also-from:p</kohaidx:target_index>
361
    <kohaidx:target_index>Name-see-also-from:s</kohaidx:target_index>
362
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
363
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
364
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
365
  </kohaidx:index_heading>
366
  <kohaidx:index_match_heading tag="520" subfields="afjxyz" subdivisions="jxyz">
367
    <kohaidx:target_index>Match:w</kohaidx:target_index>
368
    <kohaidx:target_index>Match:p</kohaidx:target_index>
369
  </kohaidx:index_match_heading>
370
371
  <kohaidx:index_heading tag="720" subfields="afjxyz" subdivisions="jxyz">
294
    <kohaidx:target_index>Name-parallel:w</kohaidx:target_index>
372
    <kohaidx:target_index>Name-parallel:w</kohaidx:target_index>
373
    <kohaidx:target_index>Name-parallel:p</kohaidx:target_index>
295
    <kohaidx:target_index>Name-parallel:s</kohaidx:target_index>
374
    <kohaidx:target_index>Name-parallel:s</kohaidx:target_index>
296
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
375
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
297
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
376
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
377
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
378
  </kohaidx:index_heading>
379
  <kohaidx:index_match_heading tag="720" subfields="afjxyz" subdivisions="jxyz">
298
    <kohaidx:target_index>Match:w</kohaidx:target_index>
380
    <kohaidx:target_index>Match:w</kohaidx:target_index>
299
    <kohaidx:target_index>Match:p</kohaidx:target_index>
381
    <kohaidx:target_index>Match:p</kohaidx:target_index>
300
  </kohaidx:index_subfields>
382
  </kohaidx:index_match_heading>
301
383
302
  <!-- Uniform title -->
384
  <!-- Uniform title -->
303
  <kohaidx:index_subfields tag="230" subfields="abhiklmnqrsuwjxyz">
385
  <kohaidx:index_subfields tag="230" subfields="abhiklmnqrsuwjxyz">
304
    <kohaidx:target_index>Title-uniform:w</kohaidx:target_index>
386
    <kohaidx:target_index>Title-uniform:w</kohaidx:target_index>
305
    <kohaidx:target_index>Title-uniform:p</kohaidx:target_index>
387
    <kohaidx:target_index>Title-uniform:p</kohaidx:target_index>
388
    <kohaidx:target_index>Title-uniform:s</kohaidx:target_index>
389
  </kohaidx:index_subfields>
390
  <kohaidx:index_heading tag="230" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
391
    <kohaidx:target_index>Title-uniform-heading:w</kohaidx:target_index>
392
    <kohaidx:target_index>Title-uniform-heading:p</kohaidx:target_index>
393
    <kohaidx:target_index>Title-uniform-heading:s</kohaidx:target_index>
306
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
394
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
307
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
395
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
308
    <kohaidx:target_index>Match:w</kohaidx:target_index>
309
    <kohaidx:target_index>Match:p</kohaidx:target_index>
310
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
311
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
312
  </kohaidx:index_subfields>
313
  <kohaidx:index_subfields tag="230" subfields="a">
314
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
396
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
397
  </kohaidx:index_heading>
398
  <kohaidx:index_heading tag="230" subfields="a">
315
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
399
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
316
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
400
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
317
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
401
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
318
    <kohaidx:target_index>Title-uniform-heading:w</kohaidx:target_index>
402
  </kohaidx:index_heading>
319
    <kohaidx:target_index>Title-uniform-heading:p</kohaidx:target_index>
403
  <kohaidx:index_match_heading tag="230" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
320
    <kohaidx:target_index>Title-uniform-heading:s</kohaidx:target_index>
321
  </kohaidx:index_subfields>
322
323
  <kohaidx:index_subfields tag="430" subfields="abhiklmnqrsuwjxyz">
324
    <kohaidx:target_index>Title-uniform-see:w</kohaidx:target_index>
325
    <kohaidx:target_index>Title-uniform-see:p</kohaidx:target_index>
326
    <kohaidx:target_index>See:w</kohaidx:target_index>
327
    <kohaidx:target_index>See:p</kohaidx:target_index>
328
    <kohaidx:target_index>Match:w</kohaidx:target_index>
329
    <kohaidx:target_index>Match:p</kohaidx:target_index>
330
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
331
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
332
  </kohaidx:index_subfields>
333
334
  <kohaidx:index_subfields tag="530" subfields="abhiklmnqrsuwjxyz">
335
    <kohaidx:target_index>Title-uniform-see-also:w</kohaidx:target_index>
336
    <kohaidx:target_index>Title-uniform-see-also:p</kohaidx:target_index>
337
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
338
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
339
    <kohaidx:target_index>Match:w</kohaidx:target_index>
404
    <kohaidx:target_index>Match:w</kohaidx:target_index>
340
    <kohaidx:target_index>Match:p</kohaidx:target_index>
405
    <kohaidx:target_index>Match:p</kohaidx:target_index>
341
  </kohaidx:index_subfields>
406
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
342
407
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
343
  <kohaidx:index_subfields tag="730" subfields="a">
408
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
409
  </kohaidx:index_match_heading>
410
411
  <kohaidx:index_heading tag="430" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
412
    <kohaidx:target_index>Title-uniform-see-from:w</kohaidx:target_index>
413
    <kohaidx:target_index>Title-uniform-see-from:p</kohaidx:target_index>
414
    <kohaidx:target_index>Title-uniform-see-from:s</kohaidx:target_index>
415
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
416
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
417
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
418
  </kohaidx:index_heading>
419
  <kohaidx:index_match_heading tag="430" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
420
    <kohaidx:target_index>Match:w</kohaidx:target_index>
421
    <kohaidx:target_index>Match:p</kohaidx:target_index>
422
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
423
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
424
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
425
  </kohaidx:index_match_heading>
426
427
  <kohaidx:index_heading tag="530" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
428
    <kohaidx:target_index>Title-uniform-see-also-from:w</kohaidx:target_index>
429
    <kohaidx:target_index>Title-uniform-see-also-from:p</kohaidx:target_index>
430
    <kohaidx:target_index>Title-uniform-see-also-from:s</kohaidx:target_index>
431
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
432
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
433
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
434
  </kohaidx:index_heading>
435
  <kohaidx:index_match_heading tag="530" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
436
    <kohaidx:target_index>Match:w</kohaidx:target_index>
437
    <kohaidx:target_index>Match:p</kohaidx:target_index>
438
  </kohaidx:index_match_heading>
439
440
  <kohaidx:index_heading tag="730" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
344
    <kohaidx:target_index>Title-uniform-parallel:w</kohaidx:target_index>
441
    <kohaidx:target_index>Title-uniform-parallel:w</kohaidx:target_index>
442
    <kohaidx:target_index>Title-uniform-parallel:p</kohaidx:target_index>
345
    <kohaidx:target_index>Title-uniform-parallel:s</kohaidx:target_index>
443
    <kohaidx:target_index>Title-uniform-parallel:s</kohaidx:target_index>
346
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
444
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
347
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
445
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
446
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
447
  </kohaidx:index_heading>
448
  <kohaidx:index_match_heading tag="730" subfields="abhiklmnqrsuwjxyz" subdivisions="jxyz">
348
    <kohaidx:target_index>Match:w</kohaidx:target_index>
449
    <kohaidx:target_index>Match:w</kohaidx:target_index>
349
    <kohaidx:target_index>Match:p</kohaidx:target_index>
450
    <kohaidx:target_index>Match:p</kohaidx:target_index>
350
  </kohaidx:index_subfields>
451
  </kohaidx:index_match_heading>
351
452
352
  <!-- Collective Uniform title -->
453
  <!-- Collective Uniform title -->
353
  <kohaidx:index_subfields tag="235" subfields="abekmrsuwjxyz">
454
  <kohaidx:index_subfields tag="235" subfields="abekmrsuwjxyz">
354
    <kohaidx:target_index>Title-uniform:w</kohaidx:target_index>
455
    <kohaidx:target_index>Title-uniform:w</kohaidx:target_index>
355
    <kohaidx:target_index>Title-uniform:p</kohaidx:target_index>
456
    <kohaidx:target_index>Title-uniform:p</kohaidx:target_index>
457
    <kohaidx:target_index>Title-uniform:s</kohaidx:target_index>
458
  </kohaidx:index_subfields>
459
  <kohaidx:index_heading tag="235" subfields="abekmrsuwjxyz" subdivisions="jxyz">
460
    <kohaidx:target_index>Title-uniform-heading:w</kohaidx:target_index>
461
    <kohaidx:target_index>Title-uniform-heading:p</kohaidx:target_index>
462
    <kohaidx:target_index>Title-uniform-heading:s</kohaidx:target_index>
356
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
463
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
357
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
464
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
358
    <kohaidx:target_index>Match:w</kohaidx:target_index>
359
    <kohaidx:target_index>Match:p</kohaidx:target_index>
360
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
361
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
362
  </kohaidx:index_subfields>
363
  <kohaidx:index_subfields tag="235" subfields="a">
364
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
465
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
466
  </kohaidx:index_heading>
467
  <kohaidx:index_heading tag="235" subfields="a">
365
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
468
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
366
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
469
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
367
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
470
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
368
    <kohaidx:target_index>Title-uniform-heading:w</kohaidx:target_index>
471
  </kohaidx:index_heading>
369
    <kohaidx:target_index>Title-uniform-heading:p</kohaidx:target_index>
472
  <kohaidx:index_match_heading tag="235" subfields="abekmrsuwjxyz" subdivisions="jxyz">
370
    <kohaidx:target_index>Title-uniform-heading:s</kohaidx:target_index>
371
  </kohaidx:index_subfields>
372
373
  <kohaidx:index_subfields tag="435" subfields="abekmrsuwjxyz">
374
    <kohaidx:target_index>Title-uniform-see:w</kohaidx:target_index>
375
    <kohaidx:target_index>Title-uniform-see:p</kohaidx:target_index>
376
    <kohaidx:target_index>See:w</kohaidx:target_index>
377
    <kohaidx:target_index>See:p</kohaidx:target_index>
378
    <kohaidx:target_index>Match:w</kohaidx:target_index>
379
    <kohaidx:target_index>Match:p</kohaidx:target_index>
380
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
381
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
382
  </kohaidx:index_subfields>
383
384
  <kohaidx:index_subfields tag="535" subfields="abekmrsuwjxyz">
385
    <kohaidx:target_index>Title-uniform-see-also:w</kohaidx:target_index>
386
    <kohaidx:target_index>Title-uniform-see-also:p</kohaidx:target_index>
387
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
388
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
389
    <kohaidx:target_index>Match:w</kohaidx:target_index>
473
    <kohaidx:target_index>Match:w</kohaidx:target_index>
390
    <kohaidx:target_index>Match:p</kohaidx:target_index>
474
    <kohaidx:target_index>Match:p</kohaidx:target_index>
391
  </kohaidx:index_subfields>
475
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
392
476
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
393
  <kohaidx:index_subfields tag="735" subfields="a">
477
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
478
  </kohaidx:index_match_heading>
479
480
  <kohaidx:index_heading tag="435" subfields="abekmrsuwjxyz" subdivisions="jxyz">
481
    <kohaidx:target_index>Title-uniform-see-from:w</kohaidx:target_index>
482
    <kohaidx:target_index>Title-uniform-see-from:p</kohaidx:target_index>
483
    <kohaidx:target_index>Title-uniform-see-from:s</kohaidx:target_index>
484
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
485
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
486
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
487
  </kohaidx:index_heading>
488
  <kohaidx:index_match_heading tag="435" subfields="abekmrsuwjxyz" subdivisions="jxyz">
489
    <kohaidx:target_index>Match:w</kohaidx:target_index>
490
    <kohaidx:target_index>Match:p</kohaidx:target_index>
491
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
492
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
493
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
494
  </kohaidx:index_match_heading>
495
496
  <kohaidx:index_heading tag="535" subfields="abekmrsuwjxyz" subdivisions="jxyz">
497
    <kohaidx:target_index>Title-uniform-see-also-from:w</kohaidx:target_index>
498
    <kohaidx:target_index>Title-uniform-see-also-from:p</kohaidx:target_index>
499
    <kohaidx:target_index>Title-uniform-see-also-from:s</kohaidx:target_index>
500
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
501
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
502
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
503
  </kohaidx:index_heading>
504
  <kohaidx:index_match_heading tag="535" subfields="abekmrsuwjxyz" subdivisions="jxyz">
505
    <kohaidx:target_index>Match:w</kohaidx:target_index>
506
    <kohaidx:target_index>Match:p</kohaidx:target_index>
507
  </kohaidx:index_match_heading>
508
509
  <kohaidx:index_heading tag="735" subfields="abekmrsuwjxyz" subdivisions="jxyz">
394
    <kohaidx:target_index>Title-uniform-parallel:w</kohaidx:target_index>
510
    <kohaidx:target_index>Title-uniform-parallel:w</kohaidx:target_index>
511
    <kohaidx:target_index>Title-uniform-parallel:p</kohaidx:target_index>
395
    <kohaidx:target_index>Title-uniform-parallel:s</kohaidx:target_index>
512
    <kohaidx:target_index>Title-uniform-parallel:s</kohaidx:target_index>
396
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
513
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
397
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
514
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
515
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
516
  </kohaidx:index_heading>
517
  <kohaidx:index_match_heading tag="735" subfields="abekmrsuwjxyz" subdivisions="jxyz">
398
    <kohaidx:target_index>Match:w</kohaidx:target_index>
518
    <kohaidx:target_index>Match:w</kohaidx:target_index>
399
    <kohaidx:target_index>Match:p</kohaidx:target_index>
519
    <kohaidx:target_index>Match:p</kohaidx:target_index>
400
  </kohaidx:index_subfields>
520
  </kohaidx:index_match_heading>
401
521
402
  <!-- Name and title -->
522
  <!-- Name and title -->
403
  <kohaidx:index_subfields tag="240" subfields="atjxyz">
523
  <kohaidx:index_subfields tag="240" subfields="atjxyz">
404
    <kohaidx:target_index>Name-Title:w</kohaidx:target_index>
524
    <kohaidx:target_index>Name-Title:w</kohaidx:target_index>
405
    <kohaidx:target_index>Name-Title:p</kohaidx:target_index>
525
    <kohaidx:target_index>Name-Title:p</kohaidx:target_index>
406
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
526
    <kohaidx:target_index>Name-Title:s</kohaidx:target_index>
407
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
408
    <kohaidx:target_index>Match:w</kohaidx:target_index>
409
    <kohaidx:target_index>Match:p</kohaidx:target_index>
410
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
411
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
412
  </kohaidx:index_subfields>
527
  </kohaidx:index_subfields>
413
  <kohaidx:index_subfields tag="240" subfields="a">
528
  <kohaidx:index_heading tag="240" subfields="atjxyz" subdivisions="jxyz">
414
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
415
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
416
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
417
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
418
    <kohaidx:target_index>Name-Title-heading:w</kohaidx:target_index>
529
    <kohaidx:target_index>Name-Title-heading:w</kohaidx:target_index>
419
    <kohaidx:target_index>Name-Title-heading:p</kohaidx:target_index>
530
    <kohaidx:target_index>Name-Title-heading:p</kohaidx:target_index>
420
    <kohaidx:target_index>Name-Title-heading:s</kohaidx:target_index>
531
    <kohaidx:target_index>Name-Title-heading:s</kohaidx:target_index>
421
  </kohaidx:index_subfields>
422
423
  <kohaidx:index_subfields tag="440" subfields="atjxyz">
424
    <kohaidx:target_index>Name-Title-see:w</kohaidx:target_index>
425
    <kohaidx:target_index>Name-Title-see:p</kohaidx:target_index>
426
    <kohaidx:target_index>See:w</kohaidx:target_index>
427
    <kohaidx:target_index>See:p</kohaidx:target_index>
428
    <kohaidx:target_index>Match:w</kohaidx:target_index>
429
    <kohaidx:target_index>Match:p</kohaidx:target_index>
430
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
431
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
432
  </kohaidx:index_subfields>
433
434
  <kohaidx:index_subfields tag="540" subfields="atjxyz">
435
    <kohaidx:target_index>Name-Title-see-also:w</kohaidx:target_index>
436
    <kohaidx:target_index>Name-Title-see-also:p</kohaidx:target_index>
437
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
438
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
439
    <kohaidx:target_index>Match:w</kohaidx:target_index>
440
    <kohaidx:target_index>Match:p</kohaidx:target_index>
441
  </kohaidx:index_subfields>
442
443
  <kohaidx:index_subfields tag="740" subfields="a">
444
    <kohaidx:target_index>Name-Title-parallel:w</kohaidx:target_index>
445
    <kohaidx:target_index>Name-Title-parallel:s</kohaidx:target_index>
446
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
447
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
448
    <kohaidx:target_index>Match:w</kohaidx:target_index>
449
    <kohaidx:target_index>Match:p</kohaidx:target_index>
450
  </kohaidx:index_subfields>
451
452
  <!-- Name and collective title -->
453
  <kohaidx:index_subfields tag="245" subfields="atjxyz">
454
    <kohaidx:target_index>Title-uniform:w</kohaidx:target_index>
455
    <kohaidx:target_index>Title-uniform:p</kohaidx:target_index>
456
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
532
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
457
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
533
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
458
    <kohaidx:target_index>Match:w</kohaidx:target_index>
459
    <kohaidx:target_index>Match:p</kohaidx:target_index>
460
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
461
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
462
  </kohaidx:index_subfields>
463
  <kohaidx:index_subfields tag="245" subfields="a">
464
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
534
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
535
  </kohaidx:index_heading>
536
  <kohaidx:index_heading tag="240" subfields="a">
465
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
537
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
466
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
538
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
467
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
539
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
468
    <kohaidx:target_index>Title-uniform-heading:w</kohaidx:target_index>
540
  </kohaidx:index_heading>
469
    <kohaidx:target_index>Title-uniform-heading:p</kohaidx:target_index>
541
  <kohaidx:index_match_heading tag="240" subfields="atjxyz" subdivisions="jxyz">
470
    <kohaidx:target_index>Title-uniform-heading:s</kohaidx:target_index>
471
  </kohaidx:index_subfields>
472
473
  <kohaidx:index_subfields tag="445" subfields="atjxyz">
474
    <kohaidx:target_index>Title-uniform-see:w</kohaidx:target_index>
475
    <kohaidx:target_index>Title-uniform-see:p</kohaidx:target_index>
476
    <kohaidx:target_index>See:w</kohaidx:target_index>
477
    <kohaidx:target_index>See:p</kohaidx:target_index>
478
    <kohaidx:target_index>Match:w</kohaidx:target_index>
542
    <kohaidx:target_index>Match:w</kohaidx:target_index>
479
    <kohaidx:target_index>Match:p</kohaidx:target_index>
543
    <kohaidx:target_index>Match:p</kohaidx:target_index>
480
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
544
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
481
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
545
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
482
  </kohaidx:index_subfields>
546
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
483
547
  </kohaidx:index_match_heading>
484
  <kohaidx:index_subfields tag="545" subfields="atjxyz">
548
485
    <kohaidx:target_index>Title-uniform-see-also:w</kohaidx:target_index>
549
  <kohaidx:index_heading tag="440" subfields="atjxyz" subdivisions="jxyz">
486
    <kohaidx:target_index>Title-uniform-see-also:p</kohaidx:target_index>
550
    <kohaidx:target_index>Name-Title-see-from:w</kohaidx:target_index>
487
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
551
    <kohaidx:target_index>Name-Title-see-from:p</kohaidx:target_index>
488
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
552
    <kohaidx:target_index>Name-Title-see-from:s</kohaidx:target_index>
489
    <kohaidx:target_index>Match:w</kohaidx:target_index>
553
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
490
    <kohaidx:target_index>Match:p</kohaidx:target_index>
554
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
491
  </kohaidx:index_subfields>
555
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
492
556
  </kohaidx:index_heading>
493
  <kohaidx:index_subfields tag="745" subfields="a">
557
  <kohaidx:index_match_heading tag="440" subfields="atjxyz" subdivisions="jxyz">
494
    <kohaidx:target_index>Title-uniform-parallel:w</kohaidx:target_index>
558
    <kohaidx:target_index>Match:w</kohaidx:target_index>
495
    <kohaidx:target_index>Title-uniform-parallel:s</kohaidx:target_index>
559
    <kohaidx:target_index>Match:p</kohaidx:target_index>
560
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
561
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
562
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
563
  </kohaidx:index_match_heading>
564
565
  <kohaidx:index_heading tag="540" subfields="atjxyz" subdivisions="jxyz">
566
    <kohaidx:target_index>Name-Title-see-also-from:w</kohaidx:target_index>
567
    <kohaidx:target_index>Name-Title-see-also-from:p</kohaidx:target_index>
568
    <kohaidx:target_index>Name-Title-see-also-from:s</kohaidx:target_index>
569
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
570
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
571
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
572
  </kohaidx:index_heading>
573
  <kohaidx:index_match_heading tag="540" subfields="atjxyz" subdivisions="jxyz">
574
    <kohaidx:target_index>Match:w</kohaidx:target_index>
575
    <kohaidx:target_index>Match:p</kohaidx:target_index>
576
  </kohaidx:index_match_heading>
577
578
  <kohaidx:index_heading tag="740" subfields="atjxyz" subdivisions="jxyz">
579
    <kohaidx:target_index>Name-Title-parallel:w</kohaidx:target_index>
580
    <kohaidx:target_index>Name-Title-parallel:p</kohaidx:target_index>
581
    <kohaidx:target_index>Name-Title-parallel:s</kohaidx:target_index>
496
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
582
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
497
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
583
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
584
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
585
  </kohaidx:index_heading>
586
  <kohaidx:index_match_heading tag="740" subfields="atjxyz" subdivisions="jxyz">
498
    <kohaidx:target_index>Match:w</kohaidx:target_index>
587
    <kohaidx:target_index>Match:w</kohaidx:target_index>
499
    <kohaidx:target_index>Match:p</kohaidx:target_index>
588
    <kohaidx:target_index>Match:p</kohaidx:target_index>
500
  </kohaidx:index_subfields>
589
  </kohaidx:index_match_heading>
501
590
502
  <!-- Topical term -->
591
  <!-- Topical term -->
503
  <kohaidx:index_subfields tag="250" subfields="ajxyz">
592
  <kohaidx:index_subfields tag="250" subfields="ajxyz">
504
    <kohaidx:target_index>Subject:w</kohaidx:target_index>
593
    <kohaidx:target_index>Subject-topical:w</kohaidx:target_index>
505
    <kohaidx:target_index>Subject:p</kohaidx:target_index>
594
    <kohaidx:target_index>Subject-topical:p</kohaidx:target_index>
595
    <kohaidx:target_index>Subject-topical:s</kohaidx:target_index>
596
  </kohaidx:index_subfields>
597
  <kohaidx:index_heading tag="250" subfields="ajxyz" subdivisions="jxyz">
598
    <kohaidx:target_index>Subject-topical-heading:w</kohaidx:target_index>
599
    <kohaidx:target_index>Subject-topical-heading:p</kohaidx:target_index>
600
    <kohaidx:target_index>Subject-topical-heading:s</kohaidx:target_index>
506
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
601
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
507
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
602
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
508
    <kohaidx:target_index>Match:w</kohaidx:target_index>
509
    <kohaidx:target_index>Match:p</kohaidx:target_index>
510
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
511
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
512
    <kohaidx:target_index>Subject-heading:w</kohaidx:target_index>
513
    <kohaidx:target_index>Subject-heading:p</kohaidx:target_index>
514
    <kohaidx:target_index>Subject-heading:s</kohaidx:target_index>
515
  </kohaidx:index_subfields>
516
  <kohaidx:index_subfields tag="250" subfields="a">
517
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
603
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
604
  </kohaidx:index_heading>
605
  <kohaidx:index_heading tag="250" subfields="a">
518
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
606
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
519
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
607
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
520
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
608
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
521
  </kohaidx:index_subfields>
609
  </kohaidx:index_heading>
522
610
  <kohaidx:index_match_heading tag="250" subfields="ajxyz" subdivisions="jxyz">
523
  <kohaidx:index_subfields tag="450" subfields="ajxyz">
524
    <kohaidx:target_index>Subject-see:w</kohaidx:target_index>
525
    <kohaidx:target_index>Subject-see:p</kohaidx:target_index>
526
    <kohaidx:target_index>See:w</kohaidx:target_index>
527
    <kohaidx:target_index>See:p</kohaidx:target_index>
528
    <kohaidx:target_index>Match:w</kohaidx:target_index>
611
    <kohaidx:target_index>Match:w</kohaidx:target_index>
529
    <kohaidx:target_index>Match:p</kohaidx:target_index>
612
    <kohaidx:target_index>Match:p</kohaidx:target_index>
530
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
613
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
531
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
614
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
532
  </kohaidx:index_subfields>
615
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
533
616
  </kohaidx:index_match_heading>
534
  <kohaidx:index_subfields tag="550" subfields="ajxyz">
617
535
    <kohaidx:target_index>Subject-see-also:w</kohaidx:target_index>
618
  <kohaidx:index_heading tag="450" subfields="ajxyz" subdivisions="jxyz">
536
    <kohaidx:target_index>Subject-see-also:p</kohaidx:target_index>
619
    <kohaidx:target_index>Subject-topical-see-from:w</kohaidx:target_index>
537
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
620
    <kohaidx:target_index>Subject-topical-see-from:p</kohaidx:target_index>
538
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
621
    <kohaidx:target_index>Subject-topical-see-from:s</kohaidx:target_index>
539
    <kohaidx:target_index>Match:w</kohaidx:target_index>
622
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
540
    <kohaidx:target_index>Match:p</kohaidx:target_index>
623
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
541
  </kohaidx:index_subfields>
624
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
542
625
  </kohaidx:index_heading>
543
  <kohaidx:index_subfields tag="750" subfields="a">
626
  <kohaidx:index_match_heading tag="450" subfields="ajxyz" subdivisions="jxyz">
544
    <kohaidx:target_index>Subject-parallel:w</kohaidx:target_index>
627
    <kohaidx:target_index>Match:w</kohaidx:target_index>
545
    <kohaidx:target_index>Subject-parallel:s</kohaidx:target_index>
628
    <kohaidx:target_index>Match:p</kohaidx:target_index>
629
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
630
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
631
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
632
  </kohaidx:index_match_heading>
633
634
  <kohaidx:index_heading tag="550" subfields="ajxyz" subdivisions="jxyz">
635
    <kohaidx:target_index>Subject-topical-see-also-from:w</kohaidx:target_index>
636
    <kohaidx:target_index>Subject-topical-see-also-from:p</kohaidx:target_index>
637
    <kohaidx:target_index>Subject-topical-see-also-from:s</kohaidx:target_index>
638
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
639
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
640
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
641
  </kohaidx:index_heading>
642
  <kohaidx:index_match_heading tag="550" subfields="ajxyz" subdivisions="jxyz">
643
    <kohaidx:target_index>Match:w</kohaidx:target_index>
644
    <kohaidx:target_index>Match:p</kohaidx:target_index>
645
  </kohaidx:index_match_heading>
646
647
  <kohaidx:index_heading tag="750" subfields="ajxyz" subdivisions="jxyz">
648
    <kohaidx:target_index>Subject-topical-parallel:w</kohaidx:target_index>
649
    <kohaidx:target_index>Subject-topical-parallel:p</kohaidx:target_index>
650
    <kohaidx:target_index>Subject-topical-parallel:s</kohaidx:target_index>
546
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
651
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
547
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
652
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
653
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
654
  </kohaidx:index_heading>
655
  <kohaidx:index_match_heading tag="750" subfields="ajxyz" subdivisions="jxyz">
548
    <kohaidx:target_index>Match:w</kohaidx:target_index>
656
    <kohaidx:target_index>Match:w</kohaidx:target_index>
549
    <kohaidx:target_index>Match:p</kohaidx:target_index>
657
    <kohaidx:target_index>Match:p</kohaidx:target_index>
550
  </kohaidx:index_subfields>
658
  </kohaidx:index_match_heading>
551
659
552
  <!-- Place -->
660
  <!-- Place -->
553
  <kohaidx:index_subfields tag="260" subfields="abcdjxyz">
661
  <kohaidx:index_subfields tag="260" subfields="abcdjxyz">
554
    <kohaidx:target_index>Place:w</kohaidx:target_index>
662
    <kohaidx:target_index>Place:w</kohaidx:target_index>
555
    <kohaidx:target_index>Place:p</kohaidx:target_index>
663
    <kohaidx:target_index>Place:p</kohaidx:target_index>
556
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
664
    <kohaidx:target_index>Place:s</kohaidx:target_index>
557
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
665
  </kohaidx:index_subfields>
558
    <kohaidx:target_index>Match:w</kohaidx:target_index>
666
  <kohaidx:index_heading tag="260" subfields="abcdjxyz" subdivisions="jxyz">
559
    <kohaidx:target_index>Match:p</kohaidx:target_index>
560
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
561
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
562
    <kohaidx:target_index>Place-heading:w</kohaidx:target_index>
667
    <kohaidx:target_index>Place-heading:w</kohaidx:target_index>
563
    <kohaidx:target_index>Place-heading:p</kohaidx:target_index>
668
    <kohaidx:target_index>Place-heading:p</kohaidx:target_index>
564
    <kohaidx:target_index>Place-heading:s</kohaidx:target_index>
669
    <kohaidx:target_index>Place-heading:s</kohaidx:target_index>
565
  </kohaidx:index_subfields>
670
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
566
  <kohaidx:index_subfields tag="260" subfields="a">
671
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
567
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
672
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
673
  </kohaidx:index_heading>
674
  <kohaidx:index_heading tag="260" subfields="a">
568
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
675
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
569
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
676
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
570
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
677
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
571
  </kohaidx:index_subfields>
678
  </kohaidx:index_heading>
572
679
  <kohaidx:index_match_heading tag="260" subfields="abcdjxyz" subdivisions="jxyz">
573
  <kohaidx:index_subfields tag="460" subfields="abcdjxyz">
574
    <kohaidx:target_index>Place-see:w</kohaidx:target_index>
575
    <kohaidx:target_index>Place-see:p</kohaidx:target_index>
576
    <kohaidx:target_index>See:w</kohaidx:target_index>
577
    <kohaidx:target_index>See:p</kohaidx:target_index>
578
    <kohaidx:target_index>Match:w</kohaidx:target_index>
680
    <kohaidx:target_index>Match:w</kohaidx:target_index>
579
    <kohaidx:target_index>Match:p</kohaidx:target_index>
681
    <kohaidx:target_index>Match:p</kohaidx:target_index>
580
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
682
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
581
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
683
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
582
  </kohaidx:index_subfields>
684
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
583
685
  </kohaidx:index_match_heading>
584
  <kohaidx:index_subfields tag="560" subfields="abcdjxyz">
686
585
    <kohaidx:target_index>Place-see-also:w</kohaidx:target_index>
687
  <kohaidx:index_heading tag="460" subfields="abcdjxyz" subdivisions="jxyz">
586
    <kohaidx:target_index>Place-see-also:p</kohaidx:target_index>
688
    <kohaidx:target_index>Place-see-from:w</kohaidx:target_index>
587
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
689
    <kohaidx:target_index>Place-see-from:p</kohaidx:target_index>
588
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
690
    <kohaidx:target_index>Place-see-from:s</kohaidx:target_index>
589
    <kohaidx:target_index>Match:w</kohaidx:target_index>
691
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
590
    <kohaidx:target_index>Match:p</kohaidx:target_index>
692
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
591
  </kohaidx:index_subfields>
693
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
592
694
  </kohaidx:index_heading>
593
  <kohaidx:index_subfields tag="760" subfields="a">
695
  <kohaidx:index_match_heading tag="460" subfields="abcdjxyz" subdivisions="jxyz">
696
    <kohaidx:target_index>Match:w</kohaidx:target_index>
697
    <kohaidx:target_index>Match:p</kohaidx:target_index>
698
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
699
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
700
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
701
  </kohaidx:index_match_heading>
702
703
  <kohaidx:index_heading tag="560" subfields="abcdjxyz" subdivisions="jxyz">
704
    <kohaidx:target_index>Place-see-also-from:w</kohaidx:target_index>
705
    <kohaidx:target_index>Place-see-also-from:p</kohaidx:target_index>
706
    <kohaidx:target_index>Place-see-also-from:s</kohaidx:target_index>
707
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
708
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
709
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
710
  </kohaidx:index_heading>
711
  <kohaidx:index_match_heading tag="560" subfields="abcdjxyz" subdivisions="jxyz">
712
    <kohaidx:target_index>Match:w</kohaidx:target_index>
713
    <kohaidx:target_index>Match:p</kohaidx:target_index>
714
  </kohaidx:index_match_heading>
715
716
  <kohaidx:index_heading tag="760" subfields="abcdjxyz" subdivisions="jxyz">
594
    <kohaidx:target_index>Place-parallel:w</kohaidx:target_index>
717
    <kohaidx:target_index>Place-parallel:w</kohaidx:target_index>
718
    <kohaidx:target_index>Place-parallel:p</kohaidx:target_index>
595
    <kohaidx:target_index>Place-parallel:s</kohaidx:target_index>
719
    <kohaidx:target_index>Place-parallel:s</kohaidx:target_index>
596
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
720
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
597
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
721
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
722
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
723
  </kohaidx:index_heading>
724
  <kohaidx:index_match_heading tag="760" subfields="abcdjxyz" subdivisions="jxyz">
598
    <kohaidx:target_index>Match:w</kohaidx:target_index>
725
    <kohaidx:target_index>Match:w</kohaidx:target_index>
599
    <kohaidx:target_index>Match:p</kohaidx:target_index>
726
    <kohaidx:target_index>Match:p</kohaidx:target_index>
600
  </kohaidx:index_subfields>
727
  </kohaidx:index_match_heading>
601
728
602
  <!-- Genre/form -->
729
  <!-- Genre/form -->
603
  <kohaidx:index_subfields tag="280" subfields="ajxyz">
730
  <kohaidx:index_subfields tag="280" subfields="ajxyz">
604
    <kohaidx:target_index>Form:w</kohaidx:target_index>
731
    <kohaidx:target_index>Form:w</kohaidx:target_index>
605
    <kohaidx:target_index>Form:p</kohaidx:target_index>
732
    <kohaidx:target_index>Form:p</kohaidx:target_index>
606
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
733
    <kohaidx:target_index>Form:s</kohaidx:target_index>
607
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
734
  </kohaidx:index_subfields>
608
    <kohaidx:target_index>Match:w</kohaidx:target_index>
735
  <kohaidx:index_heading tag="280" subfields="ajxyz" subdivisions="jxyz">
609
    <kohaidx:target_index>Match:p</kohaidx:target_index>
610
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
611
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
612
    <kohaidx:target_index>Form-heading:w</kohaidx:target_index>
736
    <kohaidx:target_index>Form-heading:w</kohaidx:target_index>
613
    <kohaidx:target_index>Form-heading:p</kohaidx:target_index>
737
    <kohaidx:target_index>Form-heading:p</kohaidx:target_index>
614
    <kohaidx:target_index>Form-heading:s</kohaidx:target_index>
738
    <kohaidx:target_index>Form-heading:s</kohaidx:target_index>
615
  </kohaidx:index_subfields>
739
    <kohaidx:target_index>Heading:w</kohaidx:target_index>
616
  <kohaidx:index_subfields tag="280" subfields="a">
740
    <kohaidx:target_index>Heading:p</kohaidx:target_index>
617
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
741
    <kohaidx:target_index>Heading:s</kohaidx:target_index>
742
  </kohaidx:index_heading>
743
  <kohaidx:index_heading tag="280" subfields="a">
618
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
744
    <kohaidx:target_index>Heading-Main:w</kohaidx:target_index>
619
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
745
    <kohaidx:target_index>Heading-Main:p</kohaidx:target_index>
620
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
746
    <kohaidx:target_index>Heading-Main:s</kohaidx:target_index>
621
  </kohaidx:index_subfields>
747
  </kohaidx:index_heading>
622
748
  <kohaidx:index_match_heading tag="280" subfields="ajxyz" subdivisions="jxyz">
623
  <kohaidx:index_subfields tag="480" subfields="ajxyz">
624
    <kohaidx:target_index>Form-see:w</kohaidx:target_index>
625
    <kohaidx:target_index>Form-see:p</kohaidx:target_index>
626
    <kohaidx:target_index>See:w</kohaidx:target_index>
627
    <kohaidx:target_index>See:p</kohaidx:target_index>
628
    <kohaidx:target_index>Match:w</kohaidx:target_index>
749
    <kohaidx:target_index>Match:w</kohaidx:target_index>
629
    <kohaidx:target_index>Match:p</kohaidx:target_index>
750
    <kohaidx:target_index>Match:p</kohaidx:target_index>
630
    <kohaidx:target_index>Match-heading-see-form:w</kohaidx:target_index>
751
    <kohaidx:target_index>Match-heading:w</kohaidx:target_index>
631
    <kohaidx:target_index>Match-heading-see-form:p</kohaidx:target_index>
752
    <kohaidx:target_index>Match-heading:p</kohaidx:target_index>
632
  </kohaidx:index_subfields>
753
    <kohaidx:target_index>Match-heading:s</kohaidx:target_index>
633
754
  </kohaidx:index_match_heading>
634
  <kohaidx:index_subfields tag="580" subfields="ajxyz">
755
635
    <kohaidx:target_index>Form-see-also:w</kohaidx:target_index>
756
  <kohaidx:index_heading tag="480" subfields="ajxyz" subdivisions="jxyz">
636
    <kohaidx:target_index>Form-see-also:p</kohaidx:target_index>
757
    <kohaidx:target_index>Form-see-from:w</kohaidx:target_index>
637
    <kohaidx:target_index>See-also:w</kohaidx:target_index>
758
    <kohaidx:target_index>Form-see-from:p</kohaidx:target_index>
638
    <kohaidx:target_index>See-also:p</kohaidx:target_index>
759
    <kohaidx:target_index>Form-see-from:s</kohaidx:target_index>
639
    <kohaidx:target_index>Match:w</kohaidx:target_index>
760
    <kohaidx:target_index>See-from:w</kohaidx:target_index>
640
    <kohaidx:target_index>Match:p</kohaidx:target_index>
761
    <kohaidx:target_index>See-from:p</kohaidx:target_index>
641
  </kohaidx:index_subfields>
762
    <kohaidx:target_index>See-from:s</kohaidx:target_index>
642
763
  </kohaidx:index_heading>
643
  <kohaidx:index_subfields tag="780" subfields="a">
764
  <kohaidx:index_match_heading tag="480" subfields="ajxyz" subdivisions="jxyz">
765
    <kohaidx:target_index>Match:w</kohaidx:target_index>
766
    <kohaidx:target_index>Match:p</kohaidx:target_index>
767
    <kohaidx:target_index>Match-heading-see-from:w</kohaidx:target_index>
768
    <kohaidx:target_index>Match-heading-see-from:p</kohaidx:target_index>
769
    <kohaidx:target_index>Match-heading-see-from:s</kohaidx:target_index>
770
  </kohaidx:index_match_heading>
771
772
  <kohaidx:index_heading tag="580" subfields="ajxyz" subdivisions="jxyz">
773
    <kohaidx:target_index>Form-see-also-from:w</kohaidx:target_index>
774
    <kohaidx:target_index>Form-see-also-from:p</kohaidx:target_index>
775
    <kohaidx:target_index>Form-see-also-from:s</kohaidx:target_index>
776
    <kohaidx:target_index>See-also-from:w</kohaidx:target_index>
777
    <kohaidx:target_index>See-also-from:p</kohaidx:target_index>
778
    <kohaidx:target_index>See-also-from:s</kohaidx:target_index>
779
  </kohaidx:index_heading>
780
  <kohaidx:index_match_heading tag="580" subfields="ajxyz" subdivisions="jxyz">
781
    <kohaidx:target_index>Match:w</kohaidx:target_index>
782
    <kohaidx:target_index>Match:p</kohaidx:target_index>
783
  </kohaidx:index_match_heading>
784
785
  <kohaidx:index_heading tag="780" subfields="ajxyz" subdivisions="jxyz">
644
    <kohaidx:target_index>Form-parallel:w</kohaidx:target_index>
786
    <kohaidx:target_index>Form-parallel:w</kohaidx:target_index>
787
    <kohaidx:target_index>Form-parallel:p</kohaidx:target_index>
645
    <kohaidx:target_index>Form-parallel:s</kohaidx:target_index>
788
    <kohaidx:target_index>Form-parallel:s</kohaidx:target_index>
646
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
789
    <kohaidx:target_index>Parallel:w</kohaidx:target_index>
647
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
790
    <kohaidx:target_index>Parallel:p</kohaidx:target_index>
791
    <kohaidx:target_index>Parallel:s</kohaidx:target_index>
792
  </kohaidx:index_heading>
793
  <kohaidx:index_match_heading tag="780" subfields="ajxyz" subdivisions="jxyz">
648
    <kohaidx:target_index>Match:w</kohaidx:target_index>
794
    <kohaidx:target_index>Match:w</kohaidx:target_index>
649
    <kohaidx:target_index>Match:p</kohaidx:target_index>
795
    <kohaidx:target_index>Match:p</kohaidx:target_index>
650
  </kohaidx:index_subfields>
796
  </kohaidx:index_match_heading>
651
797
652
  <!-- Notes 300, 305, 310, 320, 330, 340, 356-->
798
  <!-- Notes 300, 305, 310, 320, 330, 340, 356-->
653
  <kohaidx:index_subfields tag="300" subfields="a">
799
  <kohaidx:index_subfields tag="300" subfields="a">
(-)a/etc/zebradb/marc_defs/unimarc/authorities/authority-zebra-indexdefs.xsl (-447 / +2937 lines)
Lines 45-565 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
45
    </z:record>
45
    </z:record>
46
  </xslo:template>
46
  </xslo:template>
47
  <xslo:template match="marc:controlfield[@tag='001']">
47
  <xslo:template match="marc:controlfield[@tag='001']">
48
    <z:index name="Local-Number:w Local-Number:s Local-Number:n Local-Number:p">
48
    <z:index name="Local-Number:w Local-Number:p Local-Number:n Local-Number:s">
49
      <xslo:value-of select="."/>
49
      <xslo:value-of select="."/>
50
    </z:index>
50
    </z:index>
51
  </xslo:template>
51
  </xslo:template>
52
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
52
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
53
    <xslo:for-each select="marc:subfield">
53
    <xslo:for-each select="marc:subfield">
54
      <xslo:if test="contains('abcdfgjxyz', @code)">
54
      <xslo:if test="contains('abcdfgjxyz', @code)">
55
        <z:index name="Personal-name:w Personal-name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
55
        <z:index name="Personal-name:w Personal-name:p Personal-name:s">
56
          <xslo:value-of select="."/>
57
        </z:index>
58
      </xslo:if>
59
    </xslo:for-each>
60
    <xslo:for-each select="marc:subfield">
61
      <xslo:if test="contains('a', @code)">
62
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s">
63
          <xslo:value-of select="."/>
64
        </z:index>
65
      </xslo:if>
66
    </xslo:for-each>
67
  </xslo:template>
68
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
69
    <xslo:for-each select="marc:subfield">
70
      <xslo:if test="contains('abcdfgjxyz', @code)">
71
        <z:index name="Personal-name-see:w Personal-name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
72
          <xslo:value-of select="."/>
73
        </z:index>
74
      </xslo:if>
75
    </xslo:for-each>
76
  </xslo:template>
77
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='500']">
78
    <xslo:for-each select="marc:subfield">
79
      <xslo:if test="contains('abcdfgjxyz', @code)">
80
        <z:index name="Personal-name-see-also:w Personal-name-see-also:p See-also:w See-also:p Match:w Match:p">
81
          <xslo:value-of select="."/>
82
        </z:index>
83
      </xslo:if>
84
    </xslo:for-each>
85
  </xslo:template>
86
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
87
    <xslo:for-each select="marc:subfield">
88
      <xslo:if test="contains('a', @code)">
89
        <z:index name="Personal-name-parallel:w Personal-name-parallel:s Parallel:w Parallel:p Match:w Match:p">
90
          <xslo:value-of select="."/>
91
        </z:index>
92
      </xslo:if>
93
    </xslo:for-each>
94
  </xslo:template>
95
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
96
    <xslo:for-each select="marc:subfield">
97
      <xslo:if test="contains('abcdefgjxyz', @code)">
98
        <z:index name="Corporate-name:w Corporate-name:p Conference-name:w Conference-name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
99
          <xslo:value-of select="."/>
100
        </z:index>
101
      </xslo:if>
102
    </xslo:for-each>
103
    <xslo:for-each select="marc:subfield">
104
      <xslo:if test="contains('a', @code)">
105
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Conference-name-heading:w Conference-name-heading:p Conference-name-heading:s">
106
          <xslo:value-of select="."/>
107
        </z:index>
108
      </xslo:if>
109
    </xslo:for-each>
110
  </xslo:template>
111
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
112
    <xslo:for-each select="marc:subfield">
113
      <xslo:if test="contains('abcdefgjxyz', @code)">
114
        <z:index name="Corporate-name-see:w Corporate-name-see:p Conference-name-see:w Conference-name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
115
          <xslo:value-of select="."/>
116
        </z:index>
117
      </xslo:if>
118
    </xslo:for-each>
119
  </xslo:template>
120
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='510']">
121
    <xslo:for-each select="marc:subfield">
122
      <xslo:if test="contains('abcdefgjxyz', @code)">
123
        <z:index name="Corporate-name-see-also:w Corporate-name-see-also:p Conference-name-see-also:w Conference-name-see-also:p See-also:w See-also:p Match:w Match:p">
124
          <xslo:value-of select="."/>
125
        </z:index>
126
      </xslo:if>
127
    </xslo:for-each>
128
  </xslo:template>
129
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
130
    <xslo:for-each select="marc:subfield">
131
      <xslo:if test="contains('abcdefgjxyz', @code)">
132
        <z:index name="Corporate-name-parallel:w Corporate-name-parallel:s Conference-name-parallel:w Conference-name-parallel:s Parallel:w Parallel:p Match:w Match:p">
133
          <xslo:value-of select="."/>
134
        </z:index>
135
      </xslo:if>
136
    </xslo:for-each>
137
  </xslo:template>
138
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='215']">
139
    <xslo:for-each select="marc:subfield">
140
      <xslo:if test="contains('ajxyz', @code)">
141
        <z:index name="Name-geographic:w Name-geographic:p Name-geographic:s Term-geographic:w Term-geographic:p Term-geographic:s Heading:w Heading:p Heading:s Match:w Match:p Match-heading:w Match-heading:p">
142
          <xslo:value-of select="."/>
143
        </z:index>
144
      </xslo:if>
145
    </xslo:for-each>
146
    <xslo:for-each select="marc:subfield">
147
      <xslo:if test="contains('a', @code)">
148
        <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Term-geographic-heading:w Term-geographic-heading:p Term-geographic-heading:s">
149
          <xslo:value-of select="."/>
150
        </z:index>
151
      </xslo:if>
152
    </xslo:for-each>
153
  </xslo:template>
154
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='415']">
155
    <xslo:for-each select="marc:subfield">
156
      <xslo:if test="contains('ajxyz', @code)">
157
        <z:index name="Name-geographic-see:w Name-geographic-see:p Term-geographic-see:w Term-geographic-see:p Term-geographic-see:s See:w See:p See:s Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
158
          <xslo:value-of select="."/>
159
        </z:index>
160
      </xslo:if>
161
    </xslo:for-each>
162
  </xslo:template>
163
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='515']">
164
    <xslo:for-each select="marc:subfield">
165
      <xslo:if test="contains('ajxyz', @code)">
166
        <z:index name="Name-geographic-see-also:w Name-geographic-see-also:p Term-geographic-see-also:w Term-geographic-see-also:p Term-geographic-see-also:s See-also:w See-also:p Match:w Match:p">
167
          <xslo:value-of select="."/>
168
        </z:index>
169
      </xslo:if>
170
    </xslo:for-each>
171
  </xslo:template>
172
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='715']">
173
    <xslo:for-each select="marc:subfield">
174
      <xslo:if test="contains('ajxyz', @code)">
175
        <z:index name="Name-geographic-parallel:w Name-geographic-parallel:s Term-geographic-parallel:w Term-geographic-parallel:s Term-geographic-parallel:p Parallel:w Parallel:p Match:w Match:p">
176
          <xslo:value-of select="."/>
177
        </z:index>
178
      </xslo:if>
179
    </xslo:for-each>
180
  </xslo:template>
181
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='216']">
182
    <xslo:for-each select="marc:subfield">
183
      <xslo:if test="contains('afcjxyz', @code)">
184
        <z:index name="Trademark:w Trademark:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
185
          <xslo:value-of select="."/>
186
        </z:index>
187
      </xslo:if>
188
    </xslo:for-each>
189
    <xslo:for-each select="marc:subfield">
190
      <xslo:if test="contains('a', @code)">
191
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Trademark-heading:w Trademark-heading:p Trademark-heading:s">
192
          <xslo:value-of select="."/>
193
        </z:index>
194
      </xslo:if>
195
    </xslo:for-each>
196
  </xslo:template>
197
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='416']">
198
    <xslo:for-each select="marc:subfield">
199
      <xslo:if test="contains('afcjxyz', @code)">
200
        <z:index name="Trademark-see:w Trademark-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
201
          <xslo:value-of select="."/>
202
        </z:index>
203
      </xslo:if>
204
    </xslo:for-each>
205
  </xslo:template>
206
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='516']">
207
    <xslo:for-each select="marc:subfield">
208
      <xslo:if test="contains('afcjxyz', @code)">
209
        <z:index name="Trademark-see-also:w Trademark-see-also:p See-also:w See-also:p Match:w Match:p">
210
          <xslo:value-of select="."/>
211
        </z:index>
212
      </xslo:if>
213
    </xslo:for-each>
214
  </xslo:template>
215
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='716']">
216
    <xslo:for-each select="marc:subfield">
217
      <xslo:if test="contains('afcjxyz', @code)">
218
        <z:index name="Trademark-parallel:w Trademark-parallel:s Parallel:w Parallel:p Match:w Match:p">
219
          <xslo:value-of select="."/>
220
        </z:index>
221
      </xslo:if>
222
    </xslo:for-each>
223
  </xslo:template>
224
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='220']">
225
    <xslo:for-each select="marc:subfield">
226
      <xslo:if test="contains('afjxyz', @code)">
227
        <z:index name="Name:w Name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
228
          <xslo:value-of select="."/>
229
        </z:index>
230
      </xslo:if>
231
    </xslo:for-each>
232
    <xslo:for-each select="marc:subfield">
233
      <xslo:if test="contains('a', @code)">
234
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Name-heading:w Name-heading:p Name-heading:s">
235
          <xslo:value-of select="."/>
236
        </z:index>
237
      </xslo:if>
238
    </xslo:for-each>
239
  </xslo:template>
240
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='420']">
241
    <xslo:for-each select="marc:subfield">
242
      <xslo:if test="contains('afjxyz', @code)">
243
        <z:index name="Name-see:w Name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
244
          <xslo:value-of select="."/>
245
        </z:index>
246
      </xslo:if>
247
    </xslo:for-each>
248
  </xslo:template>
249
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='520']">
250
    <xslo:for-each select="marc:subfield">
251
      <xslo:if test="contains('afjxyz', @code)">
252
        <z:index name="Name-see-also:w Name-see-also:p See-also:w See-also:p Match:w Match:p">
253
          <xslo:value-of select="."/>
254
        </z:index>
255
      </xslo:if>
256
    </xslo:for-each>
257
  </xslo:template>
258
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='720']">
259
    <xslo:for-each select="marc:subfield">
260
      <xslo:if test="contains('afjxyz', @code)">
261
        <z:index name="Name-parallel:w Name-parallel:s Parallel:w Parallel:p Match:w Match:p">
262
          <xslo:value-of select="."/>
263
        </z:index>
264
      </xslo:if>
265
    </xslo:for-each>
266
  </xslo:template>
267
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
268
    <xslo:for-each select="marc:subfield">
269
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
270
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
271
          <xslo:value-of select="."/>
272
        </z:index>
273
      </xslo:if>
274
    </xslo:for-each>
275
    <xslo:for-each select="marc:subfield">
276
      <xslo:if test="contains('a', @code)">
277
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s">
278
          <xslo:value-of select="."/>
279
        </z:index>
280
      </xslo:if>
281
    </xslo:for-each>
282
  </xslo:template>
283
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='430']">
284
    <xslo:for-each select="marc:subfield">
285
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
286
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
287
          <xslo:value-of select="."/>
288
        </z:index>
289
      </xslo:if>
290
    </xslo:for-each>
291
  </xslo:template>
292
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='530']">
293
    <xslo:for-each select="marc:subfield">
294
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
295
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p">
296
          <xslo:value-of select="."/>
297
        </z:index>
298
      </xslo:if>
299
    </xslo:for-each>
300
  </xslo:template>
301
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
302
    <xslo:for-each select="marc:subfield">
303
      <xslo:if test="contains('a', @code)">
304
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p">
305
          <xslo:value-of select="."/>
306
        </z:index>
307
      </xslo:if>
308
    </xslo:for-each>
309
  </xslo:template>
310
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='235']">
311
    <xslo:for-each select="marc:subfield">
312
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
313
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
314
          <xslo:value-of select="."/>
315
        </z:index>
316
      </xslo:if>
317
    </xslo:for-each>
318
    <xslo:for-each select="marc:subfield">
319
      <xslo:if test="contains('a', @code)">
320
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s">
321
          <xslo:value-of select="."/>
322
        </z:index>
323
      </xslo:if>
324
    </xslo:for-each>
325
  </xslo:template>
326
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='435']">
327
    <xslo:for-each select="marc:subfield">
328
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
329
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
330
          <xslo:value-of select="."/>
331
        </z:index>
332
      </xslo:if>
333
    </xslo:for-each>
334
  </xslo:template>
335
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='535']">
336
    <xslo:for-each select="marc:subfield">
337
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
338
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p">
339
          <xslo:value-of select="."/>
340
        </z:index>
341
      </xslo:if>
342
    </xslo:for-each>
343
  </xslo:template>
344
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='735']">
345
    <xslo:for-each select="marc:subfield">
346
      <xslo:if test="contains('a', @code)">
347
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p">
348
          <xslo:value-of select="."/>
349
        </z:index>
350
      </xslo:if>
351
    </xslo:for-each>
352
  </xslo:template>
353
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
354
    <xslo:for-each select="marc:subfield">
355
      <xslo:if test="contains('atjxyz', @code)">
356
        <z:index name="Name-Title:w Name-Title:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
357
          <xslo:value-of select="."/>
358
        </z:index>
359
      </xslo:if>
360
    </xslo:for-each>
361
    <xslo:for-each select="marc:subfield">
362
      <xslo:if test="contains('a', @code)">
363
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Name-Title-heading:w Name-Title-heading:p Name-Title-heading:s">
364
          <xslo:value-of select="."/>
365
        </z:index>
366
      </xslo:if>
367
    </xslo:for-each>
368
  </xslo:template>
369
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
370
    <xslo:for-each select="marc:subfield">
371
      <xslo:if test="contains('atjxyz', @code)">
372
        <z:index name="Name-Title-see:w Name-Title-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
373
          <xslo:value-of select="."/>
374
        </z:index>
375
      </xslo:if>
376
    </xslo:for-each>
377
  </xslo:template>
378
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='540']">
379
    <xslo:for-each select="marc:subfield">
380
      <xslo:if test="contains('atjxyz', @code)">
381
        <z:index name="Name-Title-see-also:w Name-Title-see-also:p See-also:w See-also:p Match:w Match:p">
382
          <xslo:value-of select="."/>
383
        </z:index>
384
      </xslo:if>
385
    </xslo:for-each>
386
  </xslo:template>
387
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='740']">
388
    <xslo:for-each select="marc:subfield">
389
      <xslo:if test="contains('a', @code)">
390
        <z:index name="Name-Title-parallel:w Name-Title-parallel:s Parallel:w Parallel:p Match:w Match:p">
391
          <xslo:value-of select="."/>
392
        </z:index>
393
      </xslo:if>
394
    </xslo:for-each>
395
  </xslo:template>
396
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
397
    <xslo:for-each select="marc:subfield">
398
      <xslo:if test="contains('atjxyz', @code)">
399
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
400
          <xslo:value-of select="."/>
401
        </z:index>
402
      </xslo:if>
403
    </xslo:for-each>
404
    <xslo:for-each select="marc:subfield">
405
      <xslo:if test="contains('a', @code)">
406
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s">
407
          <xslo:value-of select="."/>
408
        </z:index>
409
      </xslo:if>
410
    </xslo:for-each>
411
  </xslo:template>
412
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='445']">
413
    <xslo:for-each select="marc:subfield">
414
      <xslo:if test="contains('atjxyz', @code)">
415
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
416
          <xslo:value-of select="."/>
417
        </z:index>
418
      </xslo:if>
419
    </xslo:for-each>
420
  </xslo:template>
421
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='545']">
422
    <xslo:for-each select="marc:subfield">
423
      <xslo:if test="contains('atjxyz', @code)">
424
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p">
425
          <xslo:value-of select="."/>
426
        </z:index>
427
      </xslo:if>
428
    </xslo:for-each>
429
  </xslo:template>
430
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='745']">
431
    <xslo:for-each select="marc:subfield">
432
      <xslo:if test="contains('a', @code)">
433
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p">
434
          <xslo:value-of select="."/>
435
        </z:index>
436
      </xslo:if>
437
    </xslo:for-each>
438
  </xslo:template>
439
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='250']">
440
    <xslo:for-each select="marc:subfield">
441
      <xslo:if test="contains('ajxyz', @code)">
442
        <z:index name="Subject:w Subject:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Subject-heading:w Subject-heading:p Subject-heading:s">
443
          <xslo:value-of select="."/>
444
        </z:index>
445
      </xslo:if>
446
    </xslo:for-each>
447
    <xslo:for-each select="marc:subfield">
448
      <xslo:if test="contains('a', @code)">
449
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s">
450
          <xslo:value-of select="."/>
56
          <xslo:value-of select="."/>
451
        </z:index>
57
        </z:index>
452
      </xslo:if>
58
      </xslo:if>
453
    </xslo:for-each>
59
    </xslo:for-each>
454
  </xslo:template>
60
  </xslo:template>
455
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='450']">
61
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
456
    <xslo:for-each select="marc:subfield">
62
    <xslo:for-each select="marc:subfield">
457
      <xslo:if test="contains('ajxyz', @code)">
63
      <xslo:if test="contains('abcdefgjxyz', @code)">
458
        <z:index name="Subject-see:w Subject-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
64
        <z:index name="Corporate-name:w Corporate-name:p Corporate-name:s Conference-name:w Conference-name:p Conference-name:s">
459
          <xslo:value-of select="."/>
65
          <xslo:value-of select="."/>
460
        </z:index>
66
        </z:index>
461
      </xslo:if>
67
      </xslo:if>
462
    </xslo:for-each>
68
    </xslo:for-each>
463
  </xslo:template>
69
  </xslo:template>
464
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='550']">
70
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='215']">
465
    <xslo:for-each select="marc:subfield">
71
    <xslo:for-each select="marc:subfield">
466
      <xslo:if test="contains('ajxyz', @code)">
72
      <xslo:if test="contains('ajxyz', @code)">
467
        <z:index name="Subject-see-also:w Subject-see-also:p See-also:w See-also:p Match:w Match:p">
73
        <z:index name="Name-geographic:w Name-geographic:p Name-geographic:s">
468
          <xslo:value-of select="."/>
74
          <xslo:value-of select="."/>
469
        </z:index>
75
        </z:index>
470
      </xslo:if>
76
      </xslo:if>
471
    </xslo:for-each>
77
    </xslo:for-each>
472
  </xslo:template>
78
  </xslo:template>
473
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='750']">
79
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='216']">
474
    <xslo:for-each select="marc:subfield">
80
    <xslo:for-each select="marc:subfield">
475
      <xslo:if test="contains('a', @code)">
81
      <xslo:if test="contains('afcjxyz', @code)">
476
        <z:index name="Subject-parallel:w Subject-parallel:s Parallel:w Parallel:p Match:w Match:p">
82
        <z:index name="Trademark:w Trademark:p Trademark:s">
477
          <xslo:value-of select="."/>
83
          <xslo:value-of select="."/>
478
        </z:index>
84
        </z:index>
479
      </xslo:if>
85
      </xslo:if>
480
    </xslo:for-each>
86
    </xslo:for-each>
481
  </xslo:template>
87
  </xslo:template>
482
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
88
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='220']">
483
    <xslo:for-each select="marc:subfield">
484
      <xslo:if test="contains('abcdjxyz', @code)">
485
        <z:index name="Place:w Place:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Place-heading:w Place-heading:p Place-heading:s">
486
          <xslo:value-of select="."/>
487
        </z:index>
488
      </xslo:if>
489
    </xslo:for-each>
490
    <xslo:for-each select="marc:subfield">
89
    <xslo:for-each select="marc:subfield">
491
      <xslo:if test="contains('a', @code)">
90
      <xslo:if test="contains('afjxyz', @code)">
492
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s">
91
        <z:index name="Name:w Name:p Name:s">
493
          <xslo:value-of select="."/>
92
          <xslo:value-of select="."/>
494
        </z:index>
93
        </z:index>
495
      </xslo:if>
94
      </xslo:if>
496
    </xslo:for-each>
95
    </xslo:for-each>
497
  </xslo:template>
96
  </xslo:template>
498
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='460']">
97
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
499
    <xslo:for-each select="marc:subfield">
98
    <xslo:for-each select="marc:subfield">
500
      <xslo:if test="contains('abcdjxyz', @code)">
99
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
501
        <z:index name="Place-see:w Place-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
100
        <z:index name="Title-uniform:w Title-uniform:p Title-uniform:s">
502
          <xslo:value-of select="."/>
101
          <xslo:value-of select="."/>
503
        </z:index>
102
        </z:index>
504
      </xslo:if>
103
      </xslo:if>
505
    </xslo:for-each>
104
    </xslo:for-each>
506
  </xslo:template>
105
  </xslo:template>
507
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='560']">
106
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='235']">
508
    <xslo:for-each select="marc:subfield">
107
    <xslo:for-each select="marc:subfield">
509
      <xslo:if test="contains('abcdjxyz', @code)">
108
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
510
        <z:index name="Place-see-also:w Place-see-also:p See-also:w See-also:p Match:w Match:p">
109
        <z:index name="Title-uniform:w Title-uniform:p Title-uniform:s">
511
          <xslo:value-of select="."/>
110
          <xslo:value-of select="."/>
512
        </z:index>
111
        </z:index>
513
      </xslo:if>
112
      </xslo:if>
514
    </xslo:for-each>
113
    </xslo:for-each>
515
  </xslo:template>
114
  </xslo:template>
516
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='760']">
115
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
517
    <xslo:for-each select="marc:subfield">
116
    <xslo:for-each select="marc:subfield">
518
      <xslo:if test="contains('a', @code)">
117
      <xslo:if test="contains('atjxyz', @code)">
519
        <z:index name="Place-parallel:w Place-parallel:s Parallel:w Parallel:p Match:w Match:p">
118
        <z:index name="Name-Title:w Name-Title:p Name-Title:s">
520
          <xslo:value-of select="."/>
119
          <xslo:value-of select="."/>
521
        </z:index>
120
        </z:index>
522
      </xslo:if>
121
      </xslo:if>
523
    </xslo:for-each>
122
    </xslo:for-each>
524
  </xslo:template>
123
  </xslo:template>
525
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='280']">
124
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='250']">
526
    <xslo:for-each select="marc:subfield">
125
    <xslo:for-each select="marc:subfield">
527
      <xslo:if test="contains('ajxyz', @code)">
126
      <xslo:if test="contains('ajxyz', @code)">
528
        <z:index name="Form:w Form:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Form-heading:w Form-heading:p Form-heading:s">
127
        <z:index name="Subject-topical:w Subject-topical:p Subject-topical:s">
529
          <xslo:value-of select="."/>
530
        </z:index>
531
      </xslo:if>
532
    </xslo:for-each>
533
    <xslo:for-each select="marc:subfield">
534
      <xslo:if test="contains('a', @code)">
535
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s">
536
          <xslo:value-of select="."/>
128
          <xslo:value-of select="."/>
537
        </z:index>
129
        </z:index>
538
      </xslo:if>
130
      </xslo:if>
539
    </xslo:for-each>
131
    </xslo:for-each>
540
  </xslo:template>
132
  </xslo:template>
541
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='480']">
133
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
542
    <xslo:for-each select="marc:subfield">
134
    <xslo:for-each select="marc:subfield">
543
      <xslo:if test="contains('ajxyz', @code)">
135
      <xslo:if test="contains('abcdjxyz', @code)">
544
        <z:index name="Form-see:w Form-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
136
        <z:index name="Place:w Place:p Place:s">
545
          <xslo:value-of select="."/>
137
          <xslo:value-of select="."/>
546
        </z:index>
138
        </z:index>
547
      </xslo:if>
139
      </xslo:if>
548
    </xslo:for-each>
140
    </xslo:for-each>
549
  </xslo:template>
141
  </xslo:template>
550
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='580']">
142
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='280']">
551
    <xslo:for-each select="marc:subfield">
143
    <xslo:for-each select="marc:subfield">
552
      <xslo:if test="contains('ajxyz', @code)">
144
      <xslo:if test="contains('ajxyz', @code)">
553
        <z:index name="Form-see-also:w Form-see-also:p See-also:w See-also:p Match:w Match:p">
145
        <z:index name="Form:w Form:p Form:s">
554
          <xslo:value-of select="."/>
555
        </z:index>
556
      </xslo:if>
557
    </xslo:for-each>
558
  </xslo:template>
559
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
560
    <xslo:for-each select="marc:subfield">
561
      <xslo:if test="contains('a', @code)">
562
        <z:index name="Form-parallel:w Form-parallel:s Parallel:w Parallel:p Match:w Match:p">
563
          <xslo:value-of select="."/>
146
          <xslo:value-of select="."/>
564
        </z:index>
147
        </z:index>
565
      </xslo:if>
148
      </xslo:if>
Lines 646-651 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
646
      </xslo:if>
229
      </xslo:if>
647
    </xslo:for-each>
230
    </xslo:for-each>
648
  </xslo:template>
231
  </xslo:template>
232
  <xslo:template mode="index_heading" match="marc:datafield[@tag='200']">
233
    <z:index name="Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Heading:w Heading:p Heading:s">
234
      <xslo:variable name="raw_heading">
235
        <xslo:for-each select="marc:subfield">
236
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Heading:w Heading:p Heading:s">
237
            <xslo:if test="position() &gt; 1">
238
              <xslo:choose>
239
                <xslo:when test="contains('jxyz', @code)">
240
                  <xslo:text>--</xslo:text>
241
                </xslo:when>
242
                <xslo:otherwise>
243
                  <xslo:value-of select="substring(' ', 1, 1)"/>
244
                </xslo:otherwise>
245
              </xslo:choose>
246
            </xslo:if>
247
            <xslo:value-of select="."/>
248
          </xslo:if>
249
        </xslo:for-each>
250
      </xslo:variable>
251
      <xslo:value-of select="normalize-space($raw_heading)"/>
252
    </z:index>
253
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
254
      <xslo:variable name="raw_heading">
255
        <xslo:for-each select="marc:subfield">
256
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
257
            <xslo:if test="position() &gt; 1">
258
              <xslo:choose>
259
                <xslo:when test="contains('', @code)">
260
                  <xslo:text>--</xslo:text>
261
                </xslo:when>
262
                <xslo:otherwise>
263
                  <xslo:value-of select="substring(' ', 1, 1)"/>
264
                </xslo:otherwise>
265
              </xslo:choose>
266
            </xslo:if>
267
            <xslo:value-of select="."/>
268
          </xslo:if>
269
        </xslo:for-each>
270
      </xslo:variable>
271
      <xslo:value-of select="normalize-space($raw_heading)"/>
272
    </z:index>
273
  </xslo:template>
274
  <xslo:template mode="index_heading" match="marc:datafield[@tag='400']">
275
    <z:index name="Personal-name-see-from:w Personal-name-see-from:p Personal-name-see-from:s See-from:w See-from:p See-from:s">
276
      <xslo:variable name="raw_heading">
277
        <xslo:for-each select="marc:subfield">
278
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Personal-name-see-from:w Personal-name-see-from:p Personal-name-see-from:s See-from:w See-from:p See-from:s">
279
            <xslo:if test="position() &gt; 1">
280
              <xslo:choose>
281
                <xslo:when test="contains('jxyz', @code)">
282
                  <xslo:text>--</xslo:text>
283
                </xslo:when>
284
                <xslo:otherwise>
285
                  <xslo:value-of select="substring(' ', 1, 1)"/>
286
                </xslo:otherwise>
287
              </xslo:choose>
288
            </xslo:if>
289
            <xslo:value-of select="."/>
290
          </xslo:if>
291
        </xslo:for-each>
292
      </xslo:variable>
293
      <xslo:value-of select="normalize-space($raw_heading)"/>
294
    </z:index>
295
  </xslo:template>
296
  <xslo:template mode="index_heading" match="marc:datafield[@tag='500']">
297
    <z:index name="Personal-name-see-also-from:w Personal-name-see-also-from:p Personal-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
298
      <xslo:variable name="raw_heading">
299
        <xslo:for-each select="marc:subfield">
300
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Personal-name-see-also-from:w Personal-name-see-also-from:p Personal-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
301
            <xslo:if test="position() &gt; 1">
302
              <xslo:choose>
303
                <xslo:when test="contains('jxyz', @code)">
304
                  <xslo:text>--</xslo:text>
305
                </xslo:when>
306
                <xslo:otherwise>
307
                  <xslo:value-of select="substring(' ', 1, 1)"/>
308
                </xslo:otherwise>
309
              </xslo:choose>
310
            </xslo:if>
311
            <xslo:value-of select="."/>
312
          </xslo:if>
313
        </xslo:for-each>
314
      </xslo:variable>
315
      <xslo:value-of select="normalize-space($raw_heading)"/>
316
    </z:index>
317
  </xslo:template>
318
  <xslo:template mode="index_heading" match="marc:datafield[@tag='700']">
319
    <z:index name="Personal-name-parallel:w Personal-name-parallel:p Personal-name-parallel:s Parallel:w Parallel:p Parallel:s">
320
      <xslo:variable name="raw_heading">
321
        <xslo:for-each select="marc:subfield">
322
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Personal-name-parallel:w Personal-name-parallel:p Personal-name-parallel:s Parallel:w Parallel:p Parallel:s">
323
            <xslo:if test="position() &gt; 1">
324
              <xslo:choose>
325
                <xslo:when test="contains('jxyz', @code)">
326
                  <xslo:text>--</xslo:text>
327
                </xslo:when>
328
                <xslo:otherwise>
329
                  <xslo:value-of select="substring(' ', 1, 1)"/>
330
                </xslo:otherwise>
331
              </xslo:choose>
332
            </xslo:if>
333
            <xslo:value-of select="."/>
334
          </xslo:if>
335
        </xslo:for-each>
336
      </xslo:variable>
337
      <xslo:value-of select="normalize-space($raw_heading)"/>
338
    </z:index>
339
  </xslo:template>
340
  <xslo:template mode="index_heading" match="marc:datafield[@tag='210']">
341
    <z:index name="Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Conference-name-heading:w Conference-name-heading:p Conference-name-heading:s Heading:w Heading:p Heading:s">
342
      <xslo:variable name="raw_heading">
343
        <xslo:for-each select="marc:subfield">
344
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Conference-name-heading:w Conference-name-heading:p Conference-name-heading:s Heading:w Heading:p Heading:s">
345
            <xslo:if test="position() &gt; 1">
346
              <xslo:choose>
347
                <xslo:when test="contains('jxyz', @code)">
348
                  <xslo:text>--</xslo:text>
349
                </xslo:when>
350
                <xslo:otherwise>
351
                  <xslo:value-of select="substring(' ', 1, 1)"/>
352
                </xslo:otherwise>
353
              </xslo:choose>
354
            </xslo:if>
355
            <xslo:value-of select="."/>
356
          </xslo:if>
357
        </xslo:for-each>
358
      </xslo:variable>
359
      <xslo:value-of select="normalize-space($raw_heading)"/>
360
    </z:index>
361
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
362
      <xslo:variable name="raw_heading">
363
        <xslo:for-each select="marc:subfield">
364
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
365
            <xslo:if test="position() &gt; 1">
366
              <xslo:choose>
367
                <xslo:when test="contains('', @code)">
368
                  <xslo:text>--</xslo:text>
369
                </xslo:when>
370
                <xslo:otherwise>
371
                  <xslo:value-of select="substring(' ', 1, 1)"/>
372
                </xslo:otherwise>
373
              </xslo:choose>
374
            </xslo:if>
375
            <xslo:value-of select="."/>
376
          </xslo:if>
377
        </xslo:for-each>
378
      </xslo:variable>
379
      <xslo:value-of select="normalize-space($raw_heading)"/>
380
    </z:index>
381
  </xslo:template>
382
  <xslo:template mode="index_heading" match="marc:datafield[@tag='410']">
383
    <z:index name="Corporate-name-see-from:w Corporate-name-see-from:p Corporate-name-see-from:s Conference-name-see-from:w Conference-name-see-from:p Conference-name-see-from:s See-from:w See-from:p See-from:s">
384
      <xslo:variable name="raw_heading">
385
        <xslo:for-each select="marc:subfield">
386
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Corporate-name-see-from:w Corporate-name-see-from:p Corporate-name-see-from:s Conference-name-see-from:w Conference-name-see-from:p Conference-name-see-from:s See-from:w See-from:p See-from:s">
387
            <xslo:if test="position() &gt; 1">
388
              <xslo:choose>
389
                <xslo:when test="contains('jxyz', @code)">
390
                  <xslo:text>--</xslo:text>
391
                </xslo:when>
392
                <xslo:otherwise>
393
                  <xslo:value-of select="substring(' ', 1, 1)"/>
394
                </xslo:otherwise>
395
              </xslo:choose>
396
            </xslo:if>
397
            <xslo:value-of select="."/>
398
          </xslo:if>
399
        </xslo:for-each>
400
      </xslo:variable>
401
      <xslo:value-of select="normalize-space($raw_heading)"/>
402
    </z:index>
403
  </xslo:template>
404
  <xslo:template mode="index_heading" match="marc:datafield[@tag='510']">
405
    <z:index name="Corporate-name-see-also-from:w Corporate-name-see-also-from:p Corporate-name-see-also-from:s Conference-name-see-also-from:w Conference-name-see-also-from:p Conference-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
406
      <xslo:variable name="raw_heading">
407
        <xslo:for-each select="marc:subfield">
408
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Corporate-name-see-also-from:w Corporate-name-see-also-from:p Corporate-name-see-also-from:s Conference-name-see-also-from:w Conference-name-see-also-from:p Conference-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
409
            <xslo:if test="position() &gt; 1">
410
              <xslo:choose>
411
                <xslo:when test="contains('jxyz', @code)">
412
                  <xslo:text>--</xslo:text>
413
                </xslo:when>
414
                <xslo:otherwise>
415
                  <xslo:value-of select="substring(' ', 1, 1)"/>
416
                </xslo:otherwise>
417
              </xslo:choose>
418
            </xslo:if>
419
            <xslo:value-of select="."/>
420
          </xslo:if>
421
        </xslo:for-each>
422
      </xslo:variable>
423
      <xslo:value-of select="normalize-space($raw_heading)"/>
424
    </z:index>
425
  </xslo:template>
426
  <xslo:template mode="index_heading" match="marc:datafield[@tag='710']">
427
    <z:index name="Corporate-name-parallel:w Corporate-name-parallel:p Corporate-name-parallel:s Conference-name-parallel:w Conference-name-parallel:p Conference-name-parallel:s Parallel:w Parallel:p Parallel:s">
428
      <xslo:variable name="raw_heading">
429
        <xslo:for-each select="marc:subfield">
430
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Corporate-name-parallel:w Corporate-name-parallel:p Corporate-name-parallel:s Conference-name-parallel:w Conference-name-parallel:p Conference-name-parallel:s Parallel:w Parallel:p Parallel:s">
431
            <xslo:if test="position() &gt; 1">
432
              <xslo:choose>
433
                <xslo:when test="contains('jxyz', @code)">
434
                  <xslo:text>--</xslo:text>
435
                </xslo:when>
436
                <xslo:otherwise>
437
                  <xslo:value-of select="substring(' ', 1, 1)"/>
438
                </xslo:otherwise>
439
              </xslo:choose>
440
            </xslo:if>
441
            <xslo:value-of select="."/>
442
          </xslo:if>
443
        </xslo:for-each>
444
      </xslo:variable>
445
      <xslo:value-of select="normalize-space($raw_heading)"/>
446
    </z:index>
447
  </xslo:template>
448
  <xslo:template mode="index_heading" match="marc:datafield[@tag='215']">
449
    <z:index name="Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Heading:w Heading:p Heading:s">
450
      <xslo:variable name="raw_heading">
451
        <xslo:for-each select="marc:subfield">
452
          <xslo:if test="contains('ajxyz', @code)" name="Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Heading:w Heading:p Heading:s">
453
            <xslo:if test="position() &gt; 1">
454
              <xslo:choose>
455
                <xslo:when test="contains('jxyz', @code)">
456
                  <xslo:text>--</xslo:text>
457
                </xslo:when>
458
                <xslo:otherwise>
459
                  <xslo:value-of select="substring(' ', 1, 1)"/>
460
                </xslo:otherwise>
461
              </xslo:choose>
462
            </xslo:if>
463
            <xslo:value-of select="."/>
464
          </xslo:if>
465
        </xslo:for-each>
466
      </xslo:variable>
467
      <xslo:value-of select="normalize-space($raw_heading)"/>
468
    </z:index>
469
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
470
      <xslo:variable name="raw_heading">
471
        <xslo:for-each select="marc:subfield">
472
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
473
            <xslo:if test="position() &gt; 1">
474
              <xslo:choose>
475
                <xslo:when test="contains('', @code)">
476
                  <xslo:text>--</xslo:text>
477
                </xslo:when>
478
                <xslo:otherwise>
479
                  <xslo:value-of select="substring(' ', 1, 1)"/>
480
                </xslo:otherwise>
481
              </xslo:choose>
482
            </xslo:if>
483
            <xslo:value-of select="."/>
484
          </xslo:if>
485
        </xslo:for-each>
486
      </xslo:variable>
487
      <xslo:value-of select="normalize-space($raw_heading)"/>
488
    </z:index>
489
  </xslo:template>
490
  <xslo:template mode="index_heading" match="marc:datafield[@tag='415']">
491
    <z:index name="Name-geographic-see-from:w Name-geographic-see-from:p Name-geographic-see-from:s See-from:w See-from:p See-from:s">
492
      <xslo:variable name="raw_heading">
493
        <xslo:for-each select="marc:subfield">
494
          <xslo:if test="contains('ajxyz', @code)" name="Name-geographic-see-from:w Name-geographic-see-from:p Name-geographic-see-from:s See-from:w See-from:p See-from:s">
495
            <xslo:if test="position() &gt; 1">
496
              <xslo:choose>
497
                <xslo:when test="contains('jxyz', @code)">
498
                  <xslo:text>--</xslo:text>
499
                </xslo:when>
500
                <xslo:otherwise>
501
                  <xslo:value-of select="substring(' ', 1, 1)"/>
502
                </xslo:otherwise>
503
              </xslo:choose>
504
            </xslo:if>
505
            <xslo:value-of select="."/>
506
          </xslo:if>
507
        </xslo:for-each>
508
      </xslo:variable>
509
      <xslo:value-of select="normalize-space($raw_heading)"/>
510
    </z:index>
511
  </xslo:template>
512
  <xslo:template mode="index_heading" match="marc:datafield[@tag='515']">
513
    <z:index name="Name-geographic-see-also-from:w Name-geographic-see-also-from:p Name-geographic-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
514
      <xslo:variable name="raw_heading">
515
        <xslo:for-each select="marc:subfield">
516
          <xslo:if test="contains('ajxyz', @code)" name="Name-geographic-see-also-from:w Name-geographic-see-also-from:p Name-geographic-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
517
            <xslo:if test="position() &gt; 1">
518
              <xslo:choose>
519
                <xslo:when test="contains('jxyz', @code)">
520
                  <xslo:text>--</xslo:text>
521
                </xslo:when>
522
                <xslo:otherwise>
523
                  <xslo:value-of select="substring(' ', 1, 1)"/>
524
                </xslo:otherwise>
525
              </xslo:choose>
526
            </xslo:if>
527
            <xslo:value-of select="."/>
528
          </xslo:if>
529
        </xslo:for-each>
530
      </xslo:variable>
531
      <xslo:value-of select="normalize-space($raw_heading)"/>
532
    </z:index>
533
  </xslo:template>
534
  <xslo:template mode="index_heading" match="marc:datafield[@tag='715']">
535
    <z:index name="Name-geographic-parallel:w Name-geographic-parallel:p Name-geographic-parallel:s Parallel:w Parallel:p Parallel:s">
536
      <xslo:variable name="raw_heading">
537
        <xslo:for-each select="marc:subfield">
538
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Name-geographic-parallel:w Name-geographic-parallel:p Name-geographic-parallel:s Parallel:w Parallel:p Parallel:s">
539
            <xslo:if test="position() &gt; 1">
540
              <xslo:choose>
541
                <xslo:when test="contains('jxyz', @code)">
542
                  <xslo:text>--</xslo:text>
543
                </xslo:when>
544
                <xslo:otherwise>
545
                  <xslo:value-of select="substring(' ', 1, 1)"/>
546
                </xslo:otherwise>
547
              </xslo:choose>
548
            </xslo:if>
549
            <xslo:value-of select="."/>
550
          </xslo:if>
551
        </xslo:for-each>
552
      </xslo:variable>
553
      <xslo:value-of select="normalize-space($raw_heading)"/>
554
    </z:index>
555
  </xslo:template>
556
  <xslo:template mode="index_heading" match="marc:datafield[@tag='216']">
557
    <z:index name="Trademark-heading:w Trademark-heading:p Trademark-heading:s Heading:w Heading:p Heading:s">
558
      <xslo:variable name="raw_heading">
559
        <xslo:for-each select="marc:subfield">
560
          <xslo:if test="contains('afcjxyz', @code)" name="Trademark-heading:w Trademark-heading:p Trademark-heading:s Heading:w Heading:p Heading:s">
561
            <xslo:if test="position() &gt; 1">
562
              <xslo:choose>
563
                <xslo:when test="contains('jxyz', @code)">
564
                  <xslo:text>--</xslo:text>
565
                </xslo:when>
566
                <xslo:otherwise>
567
                  <xslo:value-of select="substring(' ', 1, 1)"/>
568
                </xslo:otherwise>
569
              </xslo:choose>
570
            </xslo:if>
571
            <xslo:value-of select="."/>
572
          </xslo:if>
573
        </xslo:for-each>
574
      </xslo:variable>
575
      <xslo:value-of select="normalize-space($raw_heading)"/>
576
    </z:index>
577
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
578
      <xslo:variable name="raw_heading">
579
        <xslo:for-each select="marc:subfield">
580
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
581
            <xslo:if test="position() &gt; 1">
582
              <xslo:choose>
583
                <xslo:when test="contains('', @code)">
584
                  <xslo:text>--</xslo:text>
585
                </xslo:when>
586
                <xslo:otherwise>
587
                  <xslo:value-of select="substring(' ', 1, 1)"/>
588
                </xslo:otherwise>
589
              </xslo:choose>
590
            </xslo:if>
591
            <xslo:value-of select="."/>
592
          </xslo:if>
593
        </xslo:for-each>
594
      </xslo:variable>
595
      <xslo:value-of select="normalize-space($raw_heading)"/>
596
    </z:index>
597
  </xslo:template>
598
  <xslo:template mode="index_heading" match="marc:datafield[@tag='416']">
599
    <z:index name="Trademark-see-from:w Trademark-see-from:p Trademark-see-from:s See-from:w See-from:p See-from:s">
600
      <xslo:variable name="raw_heading">
601
        <xslo:for-each select="marc:subfield">
602
          <xslo:if test="contains('afcjxyz', @code)" name="Trademark-see-from:w Trademark-see-from:p Trademark-see-from:s See-from:w See-from:p See-from:s">
603
            <xslo:if test="position() &gt; 1">
604
              <xslo:choose>
605
                <xslo:when test="contains('jxyz', @code)">
606
                  <xslo:text>--</xslo:text>
607
                </xslo:when>
608
                <xslo:otherwise>
609
                  <xslo:value-of select="substring(' ', 1, 1)"/>
610
                </xslo:otherwise>
611
              </xslo:choose>
612
            </xslo:if>
613
            <xslo:value-of select="."/>
614
          </xslo:if>
615
        </xslo:for-each>
616
      </xslo:variable>
617
      <xslo:value-of select="normalize-space($raw_heading)"/>
618
    </z:index>
619
  </xslo:template>
620
  <xslo:template mode="index_heading" match="marc:datafield[@tag='516']">
621
    <z:index name="Trademark-see-also-from:w Trademark-see-also-from:p Trademark-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
622
      <xslo:variable name="raw_heading">
623
        <xslo:for-each select="marc:subfield">
624
          <xslo:if test="contains('afcjxyz', @code)" name="Trademark-see-also-from:w Trademark-see-also-from:p Trademark-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
625
            <xslo:if test="position() &gt; 1">
626
              <xslo:choose>
627
                <xslo:when test="contains('jxyz', @code)">
628
                  <xslo:text>--</xslo:text>
629
                </xslo:when>
630
                <xslo:otherwise>
631
                  <xslo:value-of select="substring(' ', 1, 1)"/>
632
                </xslo:otherwise>
633
              </xslo:choose>
634
            </xslo:if>
635
            <xslo:value-of select="."/>
636
          </xslo:if>
637
        </xslo:for-each>
638
      </xslo:variable>
639
      <xslo:value-of select="normalize-space($raw_heading)"/>
640
    </z:index>
641
  </xslo:template>
642
  <xslo:template mode="index_heading" match="marc:datafield[@tag='716']">
643
    <z:index name="Trademark-parallel:w Trademark-parallel:p Trademark-parallel:s Parallel:w Parallel:p Parallel:s">
644
      <xslo:variable name="raw_heading">
645
        <xslo:for-each select="marc:subfield">
646
          <xslo:if test="contains('afcjxyz', @code)" name="Trademark-parallel:w Trademark-parallel:p Trademark-parallel:s Parallel:w Parallel:p Parallel:s">
647
            <xslo:if test="position() &gt; 1">
648
              <xslo:choose>
649
                <xslo:when test="contains('jxyz', @code)">
650
                  <xslo:text>--</xslo:text>
651
                </xslo:when>
652
                <xslo:otherwise>
653
                  <xslo:value-of select="substring(' ', 1, 1)"/>
654
                </xslo:otherwise>
655
              </xslo:choose>
656
            </xslo:if>
657
            <xslo:value-of select="."/>
658
          </xslo:if>
659
        </xslo:for-each>
660
      </xslo:variable>
661
      <xslo:value-of select="normalize-space($raw_heading)"/>
662
    </z:index>
663
  </xslo:template>
664
  <xslo:template mode="index_heading" match="marc:datafield[@tag='220']">
665
    <z:index name="Name-heading:w Name-heading:p Name-heading:s Heading:w Heading:p Heading:s">
666
      <xslo:variable name="raw_heading">
667
        <xslo:for-each select="marc:subfield">
668
          <xslo:if test="contains('afjxyz', @code)" name="Name-heading:w Name-heading:p Name-heading:s Heading:w Heading:p Heading:s">
669
            <xslo:if test="position() &gt; 1">
670
              <xslo:choose>
671
                <xslo:when test="contains('jxyz', @code)">
672
                  <xslo:text>--</xslo:text>
673
                </xslo:when>
674
                <xslo:otherwise>
675
                  <xslo:value-of select="substring(' ', 1, 1)"/>
676
                </xslo:otherwise>
677
              </xslo:choose>
678
            </xslo:if>
679
            <xslo:value-of select="."/>
680
          </xslo:if>
681
        </xslo:for-each>
682
      </xslo:variable>
683
      <xslo:value-of select="normalize-space($raw_heading)"/>
684
    </z:index>
685
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
686
      <xslo:variable name="raw_heading">
687
        <xslo:for-each select="marc:subfield">
688
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
689
            <xslo:if test="position() &gt; 1">
690
              <xslo:choose>
691
                <xslo:when test="contains('', @code)">
692
                  <xslo:text>--</xslo:text>
693
                </xslo:when>
694
                <xslo:otherwise>
695
                  <xslo:value-of select="substring(' ', 1, 1)"/>
696
                </xslo:otherwise>
697
              </xslo:choose>
698
            </xslo:if>
699
            <xslo:value-of select="."/>
700
          </xslo:if>
701
        </xslo:for-each>
702
      </xslo:variable>
703
      <xslo:value-of select="normalize-space($raw_heading)"/>
704
    </z:index>
705
  </xslo:template>
706
  <xslo:template mode="index_heading" match="marc:datafield[@tag='420']">
707
    <z:index name="Name-see-from:w Name-see-from:p Name-see-from:s See-from:w See-from:p See-from:s">
708
      <xslo:variable name="raw_heading">
709
        <xslo:for-each select="marc:subfield">
710
          <xslo:if test="contains('afjxyz', @code)" name="Name-see-from:w Name-see-from:p Name-see-from:s See-from:w See-from:p See-from:s">
711
            <xslo:if test="position() &gt; 1">
712
              <xslo:choose>
713
                <xslo:when test="contains('jxyz', @code)">
714
                  <xslo:text>--</xslo:text>
715
                </xslo:when>
716
                <xslo:otherwise>
717
                  <xslo:value-of select="substring(' ', 1, 1)"/>
718
                </xslo:otherwise>
719
              </xslo:choose>
720
            </xslo:if>
721
            <xslo:value-of select="."/>
722
          </xslo:if>
723
        </xslo:for-each>
724
      </xslo:variable>
725
      <xslo:value-of select="normalize-space($raw_heading)"/>
726
    </z:index>
727
  </xslo:template>
728
  <xslo:template mode="index_heading" match="marc:datafield[@tag='520']">
729
    <z:index name="Name-see-also-from:w Name-see-also-from:p Name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
730
      <xslo:variable name="raw_heading">
731
        <xslo:for-each select="marc:subfield">
732
          <xslo:if test="contains('afjxyz', @code)" name="Name-see-also-from:w Name-see-also-from:p Name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
733
            <xslo:if test="position() &gt; 1">
734
              <xslo:choose>
735
                <xslo:when test="contains('jxyz', @code)">
736
                  <xslo:text>--</xslo:text>
737
                </xslo:when>
738
                <xslo:otherwise>
739
                  <xslo:value-of select="substring(' ', 1, 1)"/>
740
                </xslo:otherwise>
741
              </xslo:choose>
742
            </xslo:if>
743
            <xslo:value-of select="."/>
744
          </xslo:if>
745
        </xslo:for-each>
746
      </xslo:variable>
747
      <xslo:value-of select="normalize-space($raw_heading)"/>
748
    </z:index>
749
  </xslo:template>
750
  <xslo:template mode="index_heading" match="marc:datafield[@tag='720']">
751
    <z:index name="Name-parallel:w Name-parallel:p Name-parallel:s Parallel:w Parallel:p Parallel:s">
752
      <xslo:variable name="raw_heading">
753
        <xslo:for-each select="marc:subfield">
754
          <xslo:if test="contains('afjxyz', @code)" name="Name-parallel:w Name-parallel:p Name-parallel:s Parallel:w Parallel:p Parallel:s">
755
            <xslo:if test="position() &gt; 1">
756
              <xslo:choose>
757
                <xslo:when test="contains('jxyz', @code)">
758
                  <xslo:text>--</xslo:text>
759
                </xslo:when>
760
                <xslo:otherwise>
761
                  <xslo:value-of select="substring(' ', 1, 1)"/>
762
                </xslo:otherwise>
763
              </xslo:choose>
764
            </xslo:if>
765
            <xslo:value-of select="."/>
766
          </xslo:if>
767
        </xslo:for-each>
768
      </xslo:variable>
769
      <xslo:value-of select="normalize-space($raw_heading)"/>
770
    </z:index>
771
  </xslo:template>
772
  <xslo:template mode="index_heading" match="marc:datafield[@tag='230']">
773
    <z:index name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s">
774
      <xslo:variable name="raw_heading">
775
        <xslo:for-each select="marc:subfield">
776
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s">
777
            <xslo:if test="position() &gt; 1">
778
              <xslo:choose>
779
                <xslo:when test="contains('jxyz', @code)">
780
                  <xslo:text>--</xslo:text>
781
                </xslo:when>
782
                <xslo:otherwise>
783
                  <xslo:value-of select="substring(' ', 1, 1)"/>
784
                </xslo:otherwise>
785
              </xslo:choose>
786
            </xslo:if>
787
            <xslo:value-of select="."/>
788
          </xslo:if>
789
        </xslo:for-each>
790
      </xslo:variable>
791
      <xslo:value-of select="normalize-space($raw_heading)"/>
792
    </z:index>
793
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
794
      <xslo:variable name="raw_heading">
795
        <xslo:for-each select="marc:subfield">
796
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
797
            <xslo:if test="position() &gt; 1">
798
              <xslo:choose>
799
                <xslo:when test="contains('', @code)">
800
                  <xslo:text>--</xslo:text>
801
                </xslo:when>
802
                <xslo:otherwise>
803
                  <xslo:value-of select="substring(' ', 1, 1)"/>
804
                </xslo:otherwise>
805
              </xslo:choose>
806
            </xslo:if>
807
            <xslo:value-of select="."/>
808
          </xslo:if>
809
        </xslo:for-each>
810
      </xslo:variable>
811
      <xslo:value-of select="normalize-space($raw_heading)"/>
812
    </z:index>
813
  </xslo:template>
814
  <xslo:template mode="index_heading" match="marc:datafield[@tag='430']">
815
    <z:index name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s">
816
      <xslo:variable name="raw_heading">
817
        <xslo:for-each select="marc:subfield">
818
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s">
819
            <xslo:if test="position() &gt; 1">
820
              <xslo:choose>
821
                <xslo:when test="contains('jxyz', @code)">
822
                  <xslo:text>--</xslo:text>
823
                </xslo:when>
824
                <xslo:otherwise>
825
                  <xslo:value-of select="substring(' ', 1, 1)"/>
826
                </xslo:otherwise>
827
              </xslo:choose>
828
            </xslo:if>
829
            <xslo:value-of select="."/>
830
          </xslo:if>
831
        </xslo:for-each>
832
      </xslo:variable>
833
      <xslo:value-of select="normalize-space($raw_heading)"/>
834
    </z:index>
835
  </xslo:template>
836
  <xslo:template mode="index_heading" match="marc:datafield[@tag='530']">
837
    <z:index name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
838
      <xslo:variable name="raw_heading">
839
        <xslo:for-each select="marc:subfield">
840
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
841
            <xslo:if test="position() &gt; 1">
842
              <xslo:choose>
843
                <xslo:when test="contains('jxyz', @code)">
844
                  <xslo:text>--</xslo:text>
845
                </xslo:when>
846
                <xslo:otherwise>
847
                  <xslo:value-of select="substring(' ', 1, 1)"/>
848
                </xslo:otherwise>
849
              </xslo:choose>
850
            </xslo:if>
851
            <xslo:value-of select="."/>
852
          </xslo:if>
853
        </xslo:for-each>
854
      </xslo:variable>
855
      <xslo:value-of select="normalize-space($raw_heading)"/>
856
    </z:index>
857
  </xslo:template>
858
  <xslo:template mode="index_heading" match="marc:datafield[@tag='730']">
859
    <z:index name="Title-uniform-parallel:w Title-uniform-parallel:p Title-uniform-parallel:s Parallel:w Parallel:p Parallel:s">
860
      <xslo:variable name="raw_heading">
861
        <xslo:for-each select="marc:subfield">
862
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Title-uniform-parallel:w Title-uniform-parallel:p Title-uniform-parallel:s Parallel:w Parallel:p Parallel:s">
863
            <xslo:if test="position() &gt; 1">
864
              <xslo:choose>
865
                <xslo:when test="contains('jxyz', @code)">
866
                  <xslo:text>--</xslo:text>
867
                </xslo:when>
868
                <xslo:otherwise>
869
                  <xslo:value-of select="substring(' ', 1, 1)"/>
870
                </xslo:otherwise>
871
              </xslo:choose>
872
            </xslo:if>
873
            <xslo:value-of select="."/>
874
          </xslo:if>
875
        </xslo:for-each>
876
      </xslo:variable>
877
      <xslo:value-of select="normalize-space($raw_heading)"/>
878
    </z:index>
879
  </xslo:template>
880
  <xslo:template mode="index_heading" match="marc:datafield[@tag='235']">
881
    <z:index name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s">
882
      <xslo:variable name="raw_heading">
883
        <xslo:for-each select="marc:subfield">
884
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s">
885
            <xslo:if test="position() &gt; 1">
886
              <xslo:choose>
887
                <xslo:when test="contains('jxyz', @code)">
888
                  <xslo:text>--</xslo:text>
889
                </xslo:when>
890
                <xslo:otherwise>
891
                  <xslo:value-of select="substring(' ', 1, 1)"/>
892
                </xslo:otherwise>
893
              </xslo:choose>
894
            </xslo:if>
895
            <xslo:value-of select="."/>
896
          </xslo:if>
897
        </xslo:for-each>
898
      </xslo:variable>
899
      <xslo:value-of select="normalize-space($raw_heading)"/>
900
    </z:index>
901
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
902
      <xslo:variable name="raw_heading">
903
        <xslo:for-each select="marc:subfield">
904
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
905
            <xslo:if test="position() &gt; 1">
906
              <xslo:choose>
907
                <xslo:when test="contains('', @code)">
908
                  <xslo:text>--</xslo:text>
909
                </xslo:when>
910
                <xslo:otherwise>
911
                  <xslo:value-of select="substring(' ', 1, 1)"/>
912
                </xslo:otherwise>
913
              </xslo:choose>
914
            </xslo:if>
915
            <xslo:value-of select="."/>
916
          </xslo:if>
917
        </xslo:for-each>
918
      </xslo:variable>
919
      <xslo:value-of select="normalize-space($raw_heading)"/>
920
    </z:index>
921
  </xslo:template>
922
  <xslo:template mode="index_heading" match="marc:datafield[@tag='435']">
923
    <z:index name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s">
924
      <xslo:variable name="raw_heading">
925
        <xslo:for-each select="marc:subfield">
926
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s">
927
            <xslo:if test="position() &gt; 1">
928
              <xslo:choose>
929
                <xslo:when test="contains('jxyz', @code)">
930
                  <xslo:text>--</xslo:text>
931
                </xslo:when>
932
                <xslo:otherwise>
933
                  <xslo:value-of select="substring(' ', 1, 1)"/>
934
                </xslo:otherwise>
935
              </xslo:choose>
936
            </xslo:if>
937
            <xslo:value-of select="."/>
938
          </xslo:if>
939
        </xslo:for-each>
940
      </xslo:variable>
941
      <xslo:value-of select="normalize-space($raw_heading)"/>
942
    </z:index>
943
  </xslo:template>
944
  <xslo:template mode="index_heading" match="marc:datafield[@tag='535']">
945
    <z:index name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
946
      <xslo:variable name="raw_heading">
947
        <xslo:for-each select="marc:subfield">
948
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
949
            <xslo:if test="position() &gt; 1">
950
              <xslo:choose>
951
                <xslo:when test="contains('jxyz', @code)">
952
                  <xslo:text>--</xslo:text>
953
                </xslo:when>
954
                <xslo:otherwise>
955
                  <xslo:value-of select="substring(' ', 1, 1)"/>
956
                </xslo:otherwise>
957
              </xslo:choose>
958
            </xslo:if>
959
            <xslo:value-of select="."/>
960
          </xslo:if>
961
        </xslo:for-each>
962
      </xslo:variable>
963
      <xslo:value-of select="normalize-space($raw_heading)"/>
964
    </z:index>
965
  </xslo:template>
966
  <xslo:template mode="index_heading" match="marc:datafield[@tag='735']">
967
    <z:index name="Title-uniform-parallel:w Title-uniform-parallel:p Title-uniform-parallel:s Parallel:w Parallel:p Parallel:s">
968
      <xslo:variable name="raw_heading">
969
        <xslo:for-each select="marc:subfield">
970
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Title-uniform-parallel:w Title-uniform-parallel:p Title-uniform-parallel:s Parallel:w Parallel:p Parallel:s">
971
            <xslo:if test="position() &gt; 1">
972
              <xslo:choose>
973
                <xslo:when test="contains('jxyz', @code)">
974
                  <xslo:text>--</xslo:text>
975
                </xslo:when>
976
                <xslo:otherwise>
977
                  <xslo:value-of select="substring(' ', 1, 1)"/>
978
                </xslo:otherwise>
979
              </xslo:choose>
980
            </xslo:if>
981
            <xslo:value-of select="."/>
982
          </xslo:if>
983
        </xslo:for-each>
984
      </xslo:variable>
985
      <xslo:value-of select="normalize-space($raw_heading)"/>
986
    </z:index>
987
  </xslo:template>
988
  <xslo:template mode="index_heading" match="marc:datafield[@tag='240']">
989
    <z:index name="Name-Title-heading:w Name-Title-heading:p Name-Title-heading:s Heading:w Heading:p Heading:s">
990
      <xslo:variable name="raw_heading">
991
        <xslo:for-each select="marc:subfield">
992
          <xslo:if test="contains('atjxyz', @code)" name="Name-Title-heading:w Name-Title-heading:p Name-Title-heading:s Heading:w Heading:p Heading:s">
993
            <xslo:if test="position() &gt; 1">
994
              <xslo:choose>
995
                <xslo:when test="contains('jxyz', @code)">
996
                  <xslo:text>--</xslo:text>
997
                </xslo:when>
998
                <xslo:otherwise>
999
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1000
                </xslo:otherwise>
1001
              </xslo:choose>
1002
            </xslo:if>
1003
            <xslo:value-of select="."/>
1004
          </xslo:if>
1005
        </xslo:for-each>
1006
      </xslo:variable>
1007
      <xslo:value-of select="normalize-space($raw_heading)"/>
1008
    </z:index>
1009
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
1010
      <xslo:variable name="raw_heading">
1011
        <xslo:for-each select="marc:subfield">
1012
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
1013
            <xslo:if test="position() &gt; 1">
1014
              <xslo:choose>
1015
                <xslo:when test="contains('', @code)">
1016
                  <xslo:text>--</xslo:text>
1017
                </xslo:when>
1018
                <xslo:otherwise>
1019
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1020
                </xslo:otherwise>
1021
              </xslo:choose>
1022
            </xslo:if>
1023
            <xslo:value-of select="."/>
1024
          </xslo:if>
1025
        </xslo:for-each>
1026
      </xslo:variable>
1027
      <xslo:value-of select="normalize-space($raw_heading)"/>
1028
    </z:index>
1029
  </xslo:template>
1030
  <xslo:template mode="index_heading" match="marc:datafield[@tag='440']">
1031
    <z:index name="Name-Title-see-from:w Name-Title-see-from:p Name-Title-see-from:s See-from:w See-from:p See-from:s">
1032
      <xslo:variable name="raw_heading">
1033
        <xslo:for-each select="marc:subfield">
1034
          <xslo:if test="contains('atjxyz', @code)" name="Name-Title-see-from:w Name-Title-see-from:p Name-Title-see-from:s See-from:w See-from:p See-from:s">
1035
            <xslo:if test="position() &gt; 1">
1036
              <xslo:choose>
1037
                <xslo:when test="contains('jxyz', @code)">
1038
                  <xslo:text>--</xslo:text>
1039
                </xslo:when>
1040
                <xslo:otherwise>
1041
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1042
                </xslo:otherwise>
1043
              </xslo:choose>
1044
            </xslo:if>
1045
            <xslo:value-of select="."/>
1046
          </xslo:if>
1047
        </xslo:for-each>
1048
      </xslo:variable>
1049
      <xslo:value-of select="normalize-space($raw_heading)"/>
1050
    </z:index>
1051
  </xslo:template>
1052
  <xslo:template mode="index_heading" match="marc:datafield[@tag='540']">
1053
    <z:index name="Name-Title-see-also-from:w Name-Title-see-also-from:p Name-Title-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1054
      <xslo:variable name="raw_heading">
1055
        <xslo:for-each select="marc:subfield">
1056
          <xslo:if test="contains('atjxyz', @code)" name="Name-Title-see-also-from:w Name-Title-see-also-from:p Name-Title-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1057
            <xslo:if test="position() &gt; 1">
1058
              <xslo:choose>
1059
                <xslo:when test="contains('jxyz', @code)">
1060
                  <xslo:text>--</xslo:text>
1061
                </xslo:when>
1062
                <xslo:otherwise>
1063
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1064
                </xslo:otherwise>
1065
              </xslo:choose>
1066
            </xslo:if>
1067
            <xslo:value-of select="."/>
1068
          </xslo:if>
1069
        </xslo:for-each>
1070
      </xslo:variable>
1071
      <xslo:value-of select="normalize-space($raw_heading)"/>
1072
    </z:index>
1073
  </xslo:template>
1074
  <xslo:template mode="index_heading" match="marc:datafield[@tag='740']">
1075
    <z:index name="Name-Title-parallel:w Name-Title-parallel:p Name-Title-parallel:s Parallel:w Parallel:p Parallel:s">
1076
      <xslo:variable name="raw_heading">
1077
        <xslo:for-each select="marc:subfield">
1078
          <xslo:if test="contains('atjxyz', @code)" name="Name-Title-parallel:w Name-Title-parallel:p Name-Title-parallel:s Parallel:w Parallel:p Parallel:s">
1079
            <xslo:if test="position() &gt; 1">
1080
              <xslo:choose>
1081
                <xslo:when test="contains('jxyz', @code)">
1082
                  <xslo:text>--</xslo:text>
1083
                </xslo:when>
1084
                <xslo:otherwise>
1085
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1086
                </xslo:otherwise>
1087
              </xslo:choose>
1088
            </xslo:if>
1089
            <xslo:value-of select="."/>
1090
          </xslo:if>
1091
        </xslo:for-each>
1092
      </xslo:variable>
1093
      <xslo:value-of select="normalize-space($raw_heading)"/>
1094
    </z:index>
1095
  </xslo:template>
1096
  <xslo:template mode="index_heading" match="marc:datafield[@tag='250']">
1097
    <z:index name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s">
1098
      <xslo:variable name="raw_heading">
1099
        <xslo:for-each select="marc:subfield">
1100
          <xslo:if test="contains('ajxyz', @code)" name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s">
1101
            <xslo:if test="position() &gt; 1">
1102
              <xslo:choose>
1103
                <xslo:when test="contains('jxyz', @code)">
1104
                  <xslo:text>--</xslo:text>
1105
                </xslo:when>
1106
                <xslo:otherwise>
1107
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1108
                </xslo:otherwise>
1109
              </xslo:choose>
1110
            </xslo:if>
1111
            <xslo:value-of select="."/>
1112
          </xslo:if>
1113
        </xslo:for-each>
1114
      </xslo:variable>
1115
      <xslo:value-of select="normalize-space($raw_heading)"/>
1116
    </z:index>
1117
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
1118
      <xslo:variable name="raw_heading">
1119
        <xslo:for-each select="marc:subfield">
1120
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
1121
            <xslo:if test="position() &gt; 1">
1122
              <xslo:choose>
1123
                <xslo:when test="contains('', @code)">
1124
                  <xslo:text>--</xslo:text>
1125
                </xslo:when>
1126
                <xslo:otherwise>
1127
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1128
                </xslo:otherwise>
1129
              </xslo:choose>
1130
            </xslo:if>
1131
            <xslo:value-of select="."/>
1132
          </xslo:if>
1133
        </xslo:for-each>
1134
      </xslo:variable>
1135
      <xslo:value-of select="normalize-space($raw_heading)"/>
1136
    </z:index>
1137
  </xslo:template>
1138
  <xslo:template mode="index_heading" match="marc:datafield[@tag='450']">
1139
    <z:index name="Subject-topical-see-from:w Subject-topical-see-from:p Subject-topical-see-from:s See-from:w See-from:p See-from:s">
1140
      <xslo:variable name="raw_heading">
1141
        <xslo:for-each select="marc:subfield">
1142
          <xslo:if test="contains('ajxyz', @code)" name="Subject-topical-see-from:w Subject-topical-see-from:p Subject-topical-see-from:s See-from:w See-from:p See-from:s">
1143
            <xslo:if test="position() &gt; 1">
1144
              <xslo:choose>
1145
                <xslo:when test="contains('jxyz', @code)">
1146
                  <xslo:text>--</xslo:text>
1147
                </xslo:when>
1148
                <xslo:otherwise>
1149
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1150
                </xslo:otherwise>
1151
              </xslo:choose>
1152
            </xslo:if>
1153
            <xslo:value-of select="."/>
1154
          </xslo:if>
1155
        </xslo:for-each>
1156
      </xslo:variable>
1157
      <xslo:value-of select="normalize-space($raw_heading)"/>
1158
    </z:index>
1159
  </xslo:template>
1160
  <xslo:template mode="index_heading" match="marc:datafield[@tag='550']">
1161
    <z:index name="Subject-topical-see-also-from:w Subject-topical-see-also-from:p Subject-topical-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1162
      <xslo:variable name="raw_heading">
1163
        <xslo:for-each select="marc:subfield">
1164
          <xslo:if test="contains('ajxyz', @code)" name="Subject-topical-see-also-from:w Subject-topical-see-also-from:p Subject-topical-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1165
            <xslo:if test="position() &gt; 1">
1166
              <xslo:choose>
1167
                <xslo:when test="contains('jxyz', @code)">
1168
                  <xslo:text>--</xslo:text>
1169
                </xslo:when>
1170
                <xslo:otherwise>
1171
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1172
                </xslo:otherwise>
1173
              </xslo:choose>
1174
            </xslo:if>
1175
            <xslo:value-of select="."/>
1176
          </xslo:if>
1177
        </xslo:for-each>
1178
      </xslo:variable>
1179
      <xslo:value-of select="normalize-space($raw_heading)"/>
1180
    </z:index>
1181
  </xslo:template>
1182
  <xslo:template mode="index_heading" match="marc:datafield[@tag='750']">
1183
    <z:index name="Subject-topical-parallel:w Subject-topical-parallel:p Subject-topical-parallel:s Parallel:w Parallel:p Parallel:s">
1184
      <xslo:variable name="raw_heading">
1185
        <xslo:for-each select="marc:subfield">
1186
          <xslo:if test="contains('ajxyz', @code)" name="Subject-topical-parallel:w Subject-topical-parallel:p Subject-topical-parallel:s Parallel:w Parallel:p Parallel:s">
1187
            <xslo:if test="position() &gt; 1">
1188
              <xslo:choose>
1189
                <xslo:when test="contains('jxyz', @code)">
1190
                  <xslo:text>--</xslo:text>
1191
                </xslo:when>
1192
                <xslo:otherwise>
1193
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1194
                </xslo:otherwise>
1195
              </xslo:choose>
1196
            </xslo:if>
1197
            <xslo:value-of select="."/>
1198
          </xslo:if>
1199
        </xslo:for-each>
1200
      </xslo:variable>
1201
      <xslo:value-of select="normalize-space($raw_heading)"/>
1202
    </z:index>
1203
  </xslo:template>
1204
  <xslo:template mode="index_heading" match="marc:datafield[@tag='260']">
1205
    <z:index name="Place-heading:w Place-heading:p Place-heading:s Heading:w Heading:p Heading:s">
1206
      <xslo:variable name="raw_heading">
1207
        <xslo:for-each select="marc:subfield">
1208
          <xslo:if test="contains('abcdjxyz', @code)" name="Place-heading:w Place-heading:p Place-heading:s Heading:w Heading:p Heading:s">
1209
            <xslo:if test="position() &gt; 1">
1210
              <xslo:choose>
1211
                <xslo:when test="contains('jxyz', @code)">
1212
                  <xslo:text>--</xslo:text>
1213
                </xslo:when>
1214
                <xslo:otherwise>
1215
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1216
                </xslo:otherwise>
1217
              </xslo:choose>
1218
            </xslo:if>
1219
            <xslo:value-of select="."/>
1220
          </xslo:if>
1221
        </xslo:for-each>
1222
      </xslo:variable>
1223
      <xslo:value-of select="normalize-space($raw_heading)"/>
1224
    </z:index>
1225
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
1226
      <xslo:variable name="raw_heading">
1227
        <xslo:for-each select="marc:subfield">
1228
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
1229
            <xslo:if test="position() &gt; 1">
1230
              <xslo:choose>
1231
                <xslo:when test="contains('', @code)">
1232
                  <xslo:text>--</xslo:text>
1233
                </xslo:when>
1234
                <xslo:otherwise>
1235
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1236
                </xslo:otherwise>
1237
              </xslo:choose>
1238
            </xslo:if>
1239
            <xslo:value-of select="."/>
1240
          </xslo:if>
1241
        </xslo:for-each>
1242
      </xslo:variable>
1243
      <xslo:value-of select="normalize-space($raw_heading)"/>
1244
    </z:index>
1245
  </xslo:template>
1246
  <xslo:template mode="index_heading" match="marc:datafield[@tag='460']">
1247
    <z:index name="Place-see-from:w Place-see-from:p Place-see-from:s See-from:w See-from:p See-from:s">
1248
      <xslo:variable name="raw_heading">
1249
        <xslo:for-each select="marc:subfield">
1250
          <xslo:if test="contains('abcdjxyz', @code)" name="Place-see-from:w Place-see-from:p Place-see-from:s See-from:w See-from:p See-from:s">
1251
            <xslo:if test="position() &gt; 1">
1252
              <xslo:choose>
1253
                <xslo:when test="contains('jxyz', @code)">
1254
                  <xslo:text>--</xslo:text>
1255
                </xslo:when>
1256
                <xslo:otherwise>
1257
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1258
                </xslo:otherwise>
1259
              </xslo:choose>
1260
            </xslo:if>
1261
            <xslo:value-of select="."/>
1262
          </xslo:if>
1263
        </xslo:for-each>
1264
      </xslo:variable>
1265
      <xslo:value-of select="normalize-space($raw_heading)"/>
1266
    </z:index>
1267
  </xslo:template>
1268
  <xslo:template mode="index_heading" match="marc:datafield[@tag='560']">
1269
    <z:index name="Place-see-also-from:w Place-see-also-from:p Place-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1270
      <xslo:variable name="raw_heading">
1271
        <xslo:for-each select="marc:subfield">
1272
          <xslo:if test="contains('abcdjxyz', @code)" name="Place-see-also-from:w Place-see-also-from:p Place-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1273
            <xslo:if test="position() &gt; 1">
1274
              <xslo:choose>
1275
                <xslo:when test="contains('jxyz', @code)">
1276
                  <xslo:text>--</xslo:text>
1277
                </xslo:when>
1278
                <xslo:otherwise>
1279
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1280
                </xslo:otherwise>
1281
              </xslo:choose>
1282
            </xslo:if>
1283
            <xslo:value-of select="."/>
1284
          </xslo:if>
1285
        </xslo:for-each>
1286
      </xslo:variable>
1287
      <xslo:value-of select="normalize-space($raw_heading)"/>
1288
    </z:index>
1289
  </xslo:template>
1290
  <xslo:template mode="index_heading" match="marc:datafield[@tag='760']">
1291
    <z:index name="Place-parallel:w Place-parallel:p Place-parallel:s Parallel:w Parallel:p Parallel:s">
1292
      <xslo:variable name="raw_heading">
1293
        <xslo:for-each select="marc:subfield">
1294
          <xslo:if test="contains('abcdjxyz', @code)" name="Place-parallel:w Place-parallel:p Place-parallel:s Parallel:w Parallel:p Parallel:s">
1295
            <xslo:if test="position() &gt; 1">
1296
              <xslo:choose>
1297
                <xslo:when test="contains('jxyz', @code)">
1298
                  <xslo:text>--</xslo:text>
1299
                </xslo:when>
1300
                <xslo:otherwise>
1301
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1302
                </xslo:otherwise>
1303
              </xslo:choose>
1304
            </xslo:if>
1305
            <xslo:value-of select="."/>
1306
          </xslo:if>
1307
        </xslo:for-each>
1308
      </xslo:variable>
1309
      <xslo:value-of select="normalize-space($raw_heading)"/>
1310
    </z:index>
1311
  </xslo:template>
1312
  <xslo:template mode="index_heading" match="marc:datafield[@tag='280']">
1313
    <z:index name="Form-heading:w Form-heading:p Form-heading:s Heading:w Heading:p Heading:s">
1314
      <xslo:variable name="raw_heading">
1315
        <xslo:for-each select="marc:subfield">
1316
          <xslo:if test="contains('ajxyz', @code)" name="Form-heading:w Form-heading:p Form-heading:s Heading:w Heading:p Heading:s">
1317
            <xslo:if test="position() &gt; 1">
1318
              <xslo:choose>
1319
                <xslo:when test="contains('jxyz', @code)">
1320
                  <xslo:text>--</xslo:text>
1321
                </xslo:when>
1322
                <xslo:otherwise>
1323
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1324
                </xslo:otherwise>
1325
              </xslo:choose>
1326
            </xslo:if>
1327
            <xslo:value-of select="."/>
1328
          </xslo:if>
1329
        </xslo:for-each>
1330
      </xslo:variable>
1331
      <xslo:value-of select="normalize-space($raw_heading)"/>
1332
    </z:index>
1333
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
1334
      <xslo:variable name="raw_heading">
1335
        <xslo:for-each select="marc:subfield">
1336
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
1337
            <xslo:if test="position() &gt; 1">
1338
              <xslo:choose>
1339
                <xslo:when test="contains('', @code)">
1340
                  <xslo:text>--</xslo:text>
1341
                </xslo:when>
1342
                <xslo:otherwise>
1343
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1344
                </xslo:otherwise>
1345
              </xslo:choose>
1346
            </xslo:if>
1347
            <xslo:value-of select="."/>
1348
          </xslo:if>
1349
        </xslo:for-each>
1350
      </xslo:variable>
1351
      <xslo:value-of select="normalize-space($raw_heading)"/>
1352
    </z:index>
1353
  </xslo:template>
1354
  <xslo:template mode="index_heading" match="marc:datafield[@tag='480']">
1355
    <z:index name="Form-see-from:w Form-see-from:p Form-see-from:s See-from:w See-from:p See-from:s">
1356
      <xslo:variable name="raw_heading">
1357
        <xslo:for-each select="marc:subfield">
1358
          <xslo:if test="contains('ajxyz', @code)" name="Form-see-from:w Form-see-from:p Form-see-from:s See-from:w See-from:p See-from:s">
1359
            <xslo:if test="position() &gt; 1">
1360
              <xslo:choose>
1361
                <xslo:when test="contains('jxyz', @code)">
1362
                  <xslo:text>--</xslo:text>
1363
                </xslo:when>
1364
                <xslo:otherwise>
1365
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1366
                </xslo:otherwise>
1367
              </xslo:choose>
1368
            </xslo:if>
1369
            <xslo:value-of select="."/>
1370
          </xslo:if>
1371
        </xslo:for-each>
1372
      </xslo:variable>
1373
      <xslo:value-of select="normalize-space($raw_heading)"/>
1374
    </z:index>
1375
  </xslo:template>
1376
  <xslo:template mode="index_heading" match="marc:datafield[@tag='580']">
1377
    <z:index name="Form-see-also-from:w Form-see-also-from:p Form-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1378
      <xslo:variable name="raw_heading">
1379
        <xslo:for-each select="marc:subfield">
1380
          <xslo:if test="contains('ajxyz', @code)" name="Form-see-also-from:w Form-see-also-from:p Form-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
1381
            <xslo:if test="position() &gt; 1">
1382
              <xslo:choose>
1383
                <xslo:when test="contains('jxyz', @code)">
1384
                  <xslo:text>--</xslo:text>
1385
                </xslo:when>
1386
                <xslo:otherwise>
1387
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1388
                </xslo:otherwise>
1389
              </xslo:choose>
1390
            </xslo:if>
1391
            <xslo:value-of select="."/>
1392
          </xslo:if>
1393
        </xslo:for-each>
1394
      </xslo:variable>
1395
      <xslo:value-of select="normalize-space($raw_heading)"/>
1396
    </z:index>
1397
  </xslo:template>
1398
  <xslo:template mode="index_heading" match="marc:datafield[@tag='780']">
1399
    <z:index name="Form-parallel:w Form-parallel:p Form-parallel:s Parallel:w Parallel:p Parallel:s">
1400
      <xslo:variable name="raw_heading">
1401
        <xslo:for-each select="marc:subfield">
1402
          <xslo:if test="contains('ajxyz', @code)" name="Form-parallel:w Form-parallel:p Form-parallel:s Parallel:w Parallel:p Parallel:s">
1403
            <xslo:if test="position() &gt; 1">
1404
              <xslo:choose>
1405
                <xslo:when test="contains('jxyz', @code)">
1406
                  <xslo:text>--</xslo:text>
1407
                </xslo:when>
1408
                <xslo:otherwise>
1409
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1410
                </xslo:otherwise>
1411
              </xslo:choose>
1412
            </xslo:if>
1413
            <xslo:value-of select="."/>
1414
          </xslo:if>
1415
        </xslo:for-each>
1416
      </xslo:variable>
1417
      <xslo:value-of select="normalize-space($raw_heading)"/>
1418
    </z:index>
1419
  </xslo:template>
1420
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='200']">
1421
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1422
      <xslo:variable name="raw_heading">
1423
        <xslo:for-each select="marc:subfield">
1424
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1425
            <xslo:if test="position() &gt; 1">
1426
              <xslo:choose>
1427
                <xslo:when test="contains('jxyz', @code)">
1428
                  <xslo:choose>
1429
                    <xslo:when test="@code = $general_subdivision_subfield">
1430
                      <xslo:text> generalsubdiv </xslo:text>
1431
                    </xslo:when>
1432
                    <xslo:when test="@code = $form_subdivision_subfield">
1433
                      <xslo:text> formsubdiv </xslo:text>
1434
                    </xslo:when>
1435
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1436
                      <xslo:text> chronologicalsubdiv </xslo:text>
1437
                    </xslo:when>
1438
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1439
                      <xslo:text> geographicsubdiv </xslo:text>
1440
                    </xslo:when>
1441
                  </xslo:choose>
1442
                </xslo:when>
1443
                <xslo:otherwise>
1444
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1445
                </xslo:otherwise>
1446
              </xslo:choose>
1447
            </xslo:if>
1448
            <xslo:call-template name="chopPunctuation">
1449
              <xslo:with-param name="chopString">
1450
                <xslo:value-of select="."/>
1451
              </xslo:with-param>
1452
            </xslo:call-template>
1453
          </xslo:if>
1454
        </xslo:for-each>
1455
      </xslo:variable>
1456
      <xslo:value-of select="normalize-space($raw_heading)"/>
1457
    </z:index>
1458
  </xslo:template>
1459
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='400']">
1460
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1461
      <xslo:variable name="raw_heading">
1462
        <xslo:for-each select="marc:subfield">
1463
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1464
            <xslo:if test="position() &gt; 1">
1465
              <xslo:choose>
1466
                <xslo:when test="contains('jxyz', @code)">
1467
                  <xslo:choose>
1468
                    <xslo:when test="@code = $general_subdivision_subfield">
1469
                      <xslo:text> generalsubdiv </xslo:text>
1470
                    </xslo:when>
1471
                    <xslo:when test="@code = $form_subdivision_subfield">
1472
                      <xslo:text> formsubdiv </xslo:text>
1473
                    </xslo:when>
1474
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1475
                      <xslo:text> chronologicalsubdiv </xslo:text>
1476
                    </xslo:when>
1477
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1478
                      <xslo:text> geographicsubdiv </xslo:text>
1479
                    </xslo:when>
1480
                  </xslo:choose>
1481
                </xslo:when>
1482
                <xslo:otherwise>
1483
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1484
                </xslo:otherwise>
1485
              </xslo:choose>
1486
            </xslo:if>
1487
            <xslo:call-template name="chopPunctuation">
1488
              <xslo:with-param name="chopString">
1489
                <xslo:value-of select="."/>
1490
              </xslo:with-param>
1491
            </xslo:call-template>
1492
          </xslo:if>
1493
        </xslo:for-each>
1494
      </xslo:variable>
1495
      <xslo:value-of select="normalize-space($raw_heading)"/>
1496
    </z:index>
1497
  </xslo:template>
1498
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='500']">
1499
    <z:index name="Match:w Match:p">
1500
      <xslo:variable name="raw_heading">
1501
        <xslo:for-each select="marc:subfield">
1502
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Match:w Match:p">
1503
            <xslo:if test="position() &gt; 1">
1504
              <xslo:choose>
1505
                <xslo:when test="contains('jxyz', @code)">
1506
                  <xslo:choose>
1507
                    <xslo:when test="@code = $general_subdivision_subfield">
1508
                      <xslo:text> generalsubdiv </xslo:text>
1509
                    </xslo:when>
1510
                    <xslo:when test="@code = $form_subdivision_subfield">
1511
                      <xslo:text> formsubdiv </xslo:text>
1512
                    </xslo:when>
1513
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1514
                      <xslo:text> chronologicalsubdiv </xslo:text>
1515
                    </xslo:when>
1516
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1517
                      <xslo:text> geographicsubdiv </xslo:text>
1518
                    </xslo:when>
1519
                  </xslo:choose>
1520
                </xslo:when>
1521
                <xslo:otherwise>
1522
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1523
                </xslo:otherwise>
1524
              </xslo:choose>
1525
            </xslo:if>
1526
            <xslo:call-template name="chopPunctuation">
1527
              <xslo:with-param name="chopString">
1528
                <xslo:value-of select="."/>
1529
              </xslo:with-param>
1530
            </xslo:call-template>
1531
          </xslo:if>
1532
        </xslo:for-each>
1533
      </xslo:variable>
1534
      <xslo:value-of select="normalize-space($raw_heading)"/>
1535
    </z:index>
1536
  </xslo:template>
1537
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='700']">
1538
    <z:index name="Match:w Match:p">
1539
      <xslo:variable name="raw_heading">
1540
        <xslo:for-each select="marc:subfield">
1541
          <xslo:if test="contains('abcdfgjxyz', @code)" name="Match:w Match:p">
1542
            <xslo:if test="position() &gt; 1">
1543
              <xslo:choose>
1544
                <xslo:when test="contains('jxyz', @code)">
1545
                  <xslo:choose>
1546
                    <xslo:when test="@code = $general_subdivision_subfield">
1547
                      <xslo:text> generalsubdiv </xslo:text>
1548
                    </xslo:when>
1549
                    <xslo:when test="@code = $form_subdivision_subfield">
1550
                      <xslo:text> formsubdiv </xslo:text>
1551
                    </xslo:when>
1552
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1553
                      <xslo:text> chronologicalsubdiv </xslo:text>
1554
                    </xslo:when>
1555
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1556
                      <xslo:text> geographicsubdiv </xslo:text>
1557
                    </xslo:when>
1558
                  </xslo:choose>
1559
                </xslo:when>
1560
                <xslo:otherwise>
1561
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1562
                </xslo:otherwise>
1563
              </xslo:choose>
1564
            </xslo:if>
1565
            <xslo:call-template name="chopPunctuation">
1566
              <xslo:with-param name="chopString">
1567
                <xslo:value-of select="."/>
1568
              </xslo:with-param>
1569
            </xslo:call-template>
1570
          </xslo:if>
1571
        </xslo:for-each>
1572
      </xslo:variable>
1573
      <xslo:value-of select="normalize-space($raw_heading)"/>
1574
    </z:index>
1575
  </xslo:template>
1576
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='210']">
1577
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1578
      <xslo:variable name="raw_heading">
1579
        <xslo:for-each select="marc:subfield">
1580
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1581
            <xslo:if test="position() &gt; 1">
1582
              <xslo:choose>
1583
                <xslo:when test="contains('jxyz', @code)">
1584
                  <xslo:choose>
1585
                    <xslo:when test="@code = $general_subdivision_subfield">
1586
                      <xslo:text> generalsubdiv </xslo:text>
1587
                    </xslo:when>
1588
                    <xslo:when test="@code = $form_subdivision_subfield">
1589
                      <xslo:text> formsubdiv </xslo:text>
1590
                    </xslo:when>
1591
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1592
                      <xslo:text> chronologicalsubdiv </xslo:text>
1593
                    </xslo:when>
1594
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1595
                      <xslo:text> geographicsubdiv </xslo:text>
1596
                    </xslo:when>
1597
                  </xslo:choose>
1598
                </xslo:when>
1599
                <xslo:otherwise>
1600
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1601
                </xslo:otherwise>
1602
              </xslo:choose>
1603
            </xslo:if>
1604
            <xslo:call-template name="chopPunctuation">
1605
              <xslo:with-param name="chopString">
1606
                <xslo:value-of select="."/>
1607
              </xslo:with-param>
1608
            </xslo:call-template>
1609
          </xslo:if>
1610
        </xslo:for-each>
1611
      </xslo:variable>
1612
      <xslo:value-of select="normalize-space($raw_heading)"/>
1613
    </z:index>
1614
  </xslo:template>
1615
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='410']">
1616
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1617
      <xslo:variable name="raw_heading">
1618
        <xslo:for-each select="marc:subfield">
1619
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1620
            <xslo:if test="position() &gt; 1">
1621
              <xslo:choose>
1622
                <xslo:when test="contains('jxyz', @code)">
1623
                  <xslo:choose>
1624
                    <xslo:when test="@code = $general_subdivision_subfield">
1625
                      <xslo:text> generalsubdiv </xslo:text>
1626
                    </xslo:when>
1627
                    <xslo:when test="@code = $form_subdivision_subfield">
1628
                      <xslo:text> formsubdiv </xslo:text>
1629
                    </xslo:when>
1630
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1631
                      <xslo:text> chronologicalsubdiv </xslo:text>
1632
                    </xslo:when>
1633
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1634
                      <xslo:text> geographicsubdiv </xslo:text>
1635
                    </xslo:when>
1636
                  </xslo:choose>
1637
                </xslo:when>
1638
                <xslo:otherwise>
1639
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1640
                </xslo:otherwise>
1641
              </xslo:choose>
1642
            </xslo:if>
1643
            <xslo:call-template name="chopPunctuation">
1644
              <xslo:with-param name="chopString">
1645
                <xslo:value-of select="."/>
1646
              </xslo:with-param>
1647
            </xslo:call-template>
1648
          </xslo:if>
1649
        </xslo:for-each>
1650
      </xslo:variable>
1651
      <xslo:value-of select="normalize-space($raw_heading)"/>
1652
    </z:index>
1653
  </xslo:template>
1654
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='510']">
1655
    <z:index name="Match:w Match:p">
1656
      <xslo:variable name="raw_heading">
1657
        <xslo:for-each select="marc:subfield">
1658
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Match:w Match:p">
1659
            <xslo:if test="position() &gt; 1">
1660
              <xslo:choose>
1661
                <xslo:when test="contains('jxyz', @code)">
1662
                  <xslo:choose>
1663
                    <xslo:when test="@code = $general_subdivision_subfield">
1664
                      <xslo:text> generalsubdiv </xslo:text>
1665
                    </xslo:when>
1666
                    <xslo:when test="@code = $form_subdivision_subfield">
1667
                      <xslo:text> formsubdiv </xslo:text>
1668
                    </xslo:when>
1669
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1670
                      <xslo:text> chronologicalsubdiv </xslo:text>
1671
                    </xslo:when>
1672
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1673
                      <xslo:text> geographicsubdiv </xslo:text>
1674
                    </xslo:when>
1675
                  </xslo:choose>
1676
                </xslo:when>
1677
                <xslo:otherwise>
1678
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1679
                </xslo:otherwise>
1680
              </xslo:choose>
1681
            </xslo:if>
1682
            <xslo:call-template name="chopPunctuation">
1683
              <xslo:with-param name="chopString">
1684
                <xslo:value-of select="."/>
1685
              </xslo:with-param>
1686
            </xslo:call-template>
1687
          </xslo:if>
1688
        </xslo:for-each>
1689
      </xslo:variable>
1690
      <xslo:value-of select="normalize-space($raw_heading)"/>
1691
    </z:index>
1692
  </xslo:template>
1693
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='710']">
1694
    <z:index name="Match:w Match:p">
1695
      <xslo:variable name="raw_heading">
1696
        <xslo:for-each select="marc:subfield">
1697
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Match:w Match:p">
1698
            <xslo:if test="position() &gt; 1">
1699
              <xslo:choose>
1700
                <xslo:when test="contains('jxyz', @code)">
1701
                  <xslo:choose>
1702
                    <xslo:when test="@code = $general_subdivision_subfield">
1703
                      <xslo:text> generalsubdiv </xslo:text>
1704
                    </xslo:when>
1705
                    <xslo:when test="@code = $form_subdivision_subfield">
1706
                      <xslo:text> formsubdiv </xslo:text>
1707
                    </xslo:when>
1708
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1709
                      <xslo:text> chronologicalsubdiv </xslo:text>
1710
                    </xslo:when>
1711
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1712
                      <xslo:text> geographicsubdiv </xslo:text>
1713
                    </xslo:when>
1714
                  </xslo:choose>
1715
                </xslo:when>
1716
                <xslo:otherwise>
1717
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1718
                </xslo:otherwise>
1719
              </xslo:choose>
1720
            </xslo:if>
1721
            <xslo:call-template name="chopPunctuation">
1722
              <xslo:with-param name="chopString">
1723
                <xslo:value-of select="."/>
1724
              </xslo:with-param>
1725
            </xslo:call-template>
1726
          </xslo:if>
1727
        </xslo:for-each>
1728
      </xslo:variable>
1729
      <xslo:value-of select="normalize-space($raw_heading)"/>
1730
    </z:index>
1731
  </xslo:template>
1732
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='215']">
1733
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1734
      <xslo:variable name="raw_heading">
1735
        <xslo:for-each select="marc:subfield">
1736
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1737
            <xslo:if test="position() &gt; 1">
1738
              <xslo:choose>
1739
                <xslo:when test="contains('jxyz', @code)">
1740
                  <xslo:choose>
1741
                    <xslo:when test="@code = $general_subdivision_subfield">
1742
                      <xslo:text> generalsubdiv </xslo:text>
1743
                    </xslo:when>
1744
                    <xslo:when test="@code = $form_subdivision_subfield">
1745
                      <xslo:text> formsubdiv </xslo:text>
1746
                    </xslo:when>
1747
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1748
                      <xslo:text> chronologicalsubdiv </xslo:text>
1749
                    </xslo:when>
1750
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1751
                      <xslo:text> geographicsubdiv </xslo:text>
1752
                    </xslo:when>
1753
                  </xslo:choose>
1754
                </xslo:when>
1755
                <xslo:otherwise>
1756
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1757
                </xslo:otherwise>
1758
              </xslo:choose>
1759
            </xslo:if>
1760
            <xslo:call-template name="chopPunctuation">
1761
              <xslo:with-param name="chopString">
1762
                <xslo:value-of select="."/>
1763
              </xslo:with-param>
1764
            </xslo:call-template>
1765
          </xslo:if>
1766
        </xslo:for-each>
1767
      </xslo:variable>
1768
      <xslo:value-of select="normalize-space($raw_heading)"/>
1769
    </z:index>
1770
  </xslo:template>
1771
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='415']">
1772
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1773
      <xslo:variable name="raw_heading">
1774
        <xslo:for-each select="marc:subfield">
1775
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1776
            <xslo:if test="position() &gt; 1">
1777
              <xslo:choose>
1778
                <xslo:when test="contains('jxyz', @code)">
1779
                  <xslo:choose>
1780
                    <xslo:when test="@code = $general_subdivision_subfield">
1781
                      <xslo:text> generalsubdiv </xslo:text>
1782
                    </xslo:when>
1783
                    <xslo:when test="@code = $form_subdivision_subfield">
1784
                      <xslo:text> formsubdiv </xslo:text>
1785
                    </xslo:when>
1786
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1787
                      <xslo:text> chronologicalsubdiv </xslo:text>
1788
                    </xslo:when>
1789
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1790
                      <xslo:text> geographicsubdiv </xslo:text>
1791
                    </xslo:when>
1792
                  </xslo:choose>
1793
                </xslo:when>
1794
                <xslo:otherwise>
1795
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1796
                </xslo:otherwise>
1797
              </xslo:choose>
1798
            </xslo:if>
1799
            <xslo:call-template name="chopPunctuation">
1800
              <xslo:with-param name="chopString">
1801
                <xslo:value-of select="."/>
1802
              </xslo:with-param>
1803
            </xslo:call-template>
1804
          </xslo:if>
1805
        </xslo:for-each>
1806
      </xslo:variable>
1807
      <xslo:value-of select="normalize-space($raw_heading)"/>
1808
    </z:index>
1809
  </xslo:template>
1810
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='515']">
1811
    <z:index name="Match:w Match:p">
1812
      <xslo:variable name="raw_heading">
1813
        <xslo:for-each select="marc:subfield">
1814
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p">
1815
            <xslo:if test="position() &gt; 1">
1816
              <xslo:choose>
1817
                <xslo:when test="contains('jxyz', @code)">
1818
                  <xslo:choose>
1819
                    <xslo:when test="@code = $general_subdivision_subfield">
1820
                      <xslo:text> generalsubdiv </xslo:text>
1821
                    </xslo:when>
1822
                    <xslo:when test="@code = $form_subdivision_subfield">
1823
                      <xslo:text> formsubdiv </xslo:text>
1824
                    </xslo:when>
1825
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1826
                      <xslo:text> chronologicalsubdiv </xslo:text>
1827
                    </xslo:when>
1828
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1829
                      <xslo:text> geographicsubdiv </xslo:text>
1830
                    </xslo:when>
1831
                  </xslo:choose>
1832
                </xslo:when>
1833
                <xslo:otherwise>
1834
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1835
                </xslo:otherwise>
1836
              </xslo:choose>
1837
            </xslo:if>
1838
            <xslo:call-template name="chopPunctuation">
1839
              <xslo:with-param name="chopString">
1840
                <xslo:value-of select="."/>
1841
              </xslo:with-param>
1842
            </xslo:call-template>
1843
          </xslo:if>
1844
        </xslo:for-each>
1845
      </xslo:variable>
1846
      <xslo:value-of select="normalize-space($raw_heading)"/>
1847
    </z:index>
1848
  </xslo:template>
1849
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='715']">
1850
    <z:index name="Match:w Match:p">
1851
      <xslo:variable name="raw_heading">
1852
        <xslo:for-each select="marc:subfield">
1853
          <xslo:if test="contains('abcdefgjxyz', @code)" name="Match:w Match:p">
1854
            <xslo:if test="position() &gt; 1">
1855
              <xslo:choose>
1856
                <xslo:when test="contains('jxyz', @code)">
1857
                  <xslo:choose>
1858
                    <xslo:when test="@code = $general_subdivision_subfield">
1859
                      <xslo:text> generalsubdiv </xslo:text>
1860
                    </xslo:when>
1861
                    <xslo:when test="@code = $form_subdivision_subfield">
1862
                      <xslo:text> formsubdiv </xslo:text>
1863
                    </xslo:when>
1864
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1865
                      <xslo:text> chronologicalsubdiv </xslo:text>
1866
                    </xslo:when>
1867
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1868
                      <xslo:text> geographicsubdiv </xslo:text>
1869
                    </xslo:when>
1870
                  </xslo:choose>
1871
                </xslo:when>
1872
                <xslo:otherwise>
1873
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1874
                </xslo:otherwise>
1875
              </xslo:choose>
1876
            </xslo:if>
1877
            <xslo:call-template name="chopPunctuation">
1878
              <xslo:with-param name="chopString">
1879
                <xslo:value-of select="."/>
1880
              </xslo:with-param>
1881
            </xslo:call-template>
1882
          </xslo:if>
1883
        </xslo:for-each>
1884
      </xslo:variable>
1885
      <xslo:value-of select="normalize-space($raw_heading)"/>
1886
    </z:index>
1887
  </xslo:template>
1888
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='216']">
1889
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1890
      <xslo:variable name="raw_heading">
1891
        <xslo:for-each select="marc:subfield">
1892
          <xslo:if test="contains('afcjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
1893
            <xslo:if test="position() &gt; 1">
1894
              <xslo:choose>
1895
                <xslo:when test="contains('jxyz', @code)">
1896
                  <xslo:choose>
1897
                    <xslo:when test="@code = $general_subdivision_subfield">
1898
                      <xslo:text> generalsubdiv </xslo:text>
1899
                    </xslo:when>
1900
                    <xslo:when test="@code = $form_subdivision_subfield">
1901
                      <xslo:text> formsubdiv </xslo:text>
1902
                    </xslo:when>
1903
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1904
                      <xslo:text> chronologicalsubdiv </xslo:text>
1905
                    </xslo:when>
1906
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1907
                      <xslo:text> geographicsubdiv </xslo:text>
1908
                    </xslo:when>
1909
                  </xslo:choose>
1910
                </xslo:when>
1911
                <xslo:otherwise>
1912
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1913
                </xslo:otherwise>
1914
              </xslo:choose>
1915
            </xslo:if>
1916
            <xslo:call-template name="chopPunctuation">
1917
              <xslo:with-param name="chopString">
1918
                <xslo:value-of select="."/>
1919
              </xslo:with-param>
1920
            </xslo:call-template>
1921
          </xslo:if>
1922
        </xslo:for-each>
1923
      </xslo:variable>
1924
      <xslo:value-of select="normalize-space($raw_heading)"/>
1925
    </z:index>
1926
  </xslo:template>
1927
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='416']">
1928
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1929
      <xslo:variable name="raw_heading">
1930
        <xslo:for-each select="marc:subfield">
1931
          <xslo:if test="contains('afcjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
1932
            <xslo:if test="position() &gt; 1">
1933
              <xslo:choose>
1934
                <xslo:when test="contains('jxyz', @code)">
1935
                  <xslo:choose>
1936
                    <xslo:when test="@code = $general_subdivision_subfield">
1937
                      <xslo:text> generalsubdiv </xslo:text>
1938
                    </xslo:when>
1939
                    <xslo:when test="@code = $form_subdivision_subfield">
1940
                      <xslo:text> formsubdiv </xslo:text>
1941
                    </xslo:when>
1942
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1943
                      <xslo:text> chronologicalsubdiv </xslo:text>
1944
                    </xslo:when>
1945
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1946
                      <xslo:text> geographicsubdiv </xslo:text>
1947
                    </xslo:when>
1948
                  </xslo:choose>
1949
                </xslo:when>
1950
                <xslo:otherwise>
1951
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1952
                </xslo:otherwise>
1953
              </xslo:choose>
1954
            </xslo:if>
1955
            <xslo:call-template name="chopPunctuation">
1956
              <xslo:with-param name="chopString">
1957
                <xslo:value-of select="."/>
1958
              </xslo:with-param>
1959
            </xslo:call-template>
1960
          </xslo:if>
1961
        </xslo:for-each>
1962
      </xslo:variable>
1963
      <xslo:value-of select="normalize-space($raw_heading)"/>
1964
    </z:index>
1965
  </xslo:template>
1966
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='516']">
1967
    <z:index name="Match:w Match:p">
1968
      <xslo:variable name="raw_heading">
1969
        <xslo:for-each select="marc:subfield">
1970
          <xslo:if test="contains('afcjxyz', @code)" name="Match:w Match:p">
1971
            <xslo:if test="position() &gt; 1">
1972
              <xslo:choose>
1973
                <xslo:when test="contains('jxyz', @code)">
1974
                  <xslo:choose>
1975
                    <xslo:when test="@code = $general_subdivision_subfield">
1976
                      <xslo:text> generalsubdiv </xslo:text>
1977
                    </xslo:when>
1978
                    <xslo:when test="@code = $form_subdivision_subfield">
1979
                      <xslo:text> formsubdiv </xslo:text>
1980
                    </xslo:when>
1981
                    <xslo:when test="@code = $chronological_subdivision_subfield">
1982
                      <xslo:text> chronologicalsubdiv </xslo:text>
1983
                    </xslo:when>
1984
                    <xslo:when test="@code = $geographic_subdivision_subfield">
1985
                      <xslo:text> geographicsubdiv </xslo:text>
1986
                    </xslo:when>
1987
                  </xslo:choose>
1988
                </xslo:when>
1989
                <xslo:otherwise>
1990
                  <xslo:value-of select="substring(' ', 1, 1)"/>
1991
                </xslo:otherwise>
1992
              </xslo:choose>
1993
            </xslo:if>
1994
            <xslo:call-template name="chopPunctuation">
1995
              <xslo:with-param name="chopString">
1996
                <xslo:value-of select="."/>
1997
              </xslo:with-param>
1998
            </xslo:call-template>
1999
          </xslo:if>
2000
        </xslo:for-each>
2001
      </xslo:variable>
2002
      <xslo:value-of select="normalize-space($raw_heading)"/>
2003
    </z:index>
2004
  </xslo:template>
2005
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='716']">
2006
    <z:index name="Match:w Match:p">
2007
      <xslo:variable name="raw_heading">
2008
        <xslo:for-each select="marc:subfield">
2009
          <xslo:if test="contains('afcjxyz', @code)" name="Match:w Match:p">
2010
            <xslo:if test="position() &gt; 1">
2011
              <xslo:choose>
2012
                <xslo:when test="contains('jxyz', @code)">
2013
                  <xslo:choose>
2014
                    <xslo:when test="@code = $general_subdivision_subfield">
2015
                      <xslo:text> generalsubdiv </xslo:text>
2016
                    </xslo:when>
2017
                    <xslo:when test="@code = $form_subdivision_subfield">
2018
                      <xslo:text> formsubdiv </xslo:text>
2019
                    </xslo:when>
2020
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2021
                      <xslo:text> chronologicalsubdiv </xslo:text>
2022
                    </xslo:when>
2023
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2024
                      <xslo:text> geographicsubdiv </xslo:text>
2025
                    </xslo:when>
2026
                  </xslo:choose>
2027
                </xslo:when>
2028
                <xslo:otherwise>
2029
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2030
                </xslo:otherwise>
2031
              </xslo:choose>
2032
            </xslo:if>
2033
            <xslo:call-template name="chopPunctuation">
2034
              <xslo:with-param name="chopString">
2035
                <xslo:value-of select="."/>
2036
              </xslo:with-param>
2037
            </xslo:call-template>
2038
          </xslo:if>
2039
        </xslo:for-each>
2040
      </xslo:variable>
2041
      <xslo:value-of select="normalize-space($raw_heading)"/>
2042
    </z:index>
2043
  </xslo:template>
2044
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='220']">
2045
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2046
      <xslo:variable name="raw_heading">
2047
        <xslo:for-each select="marc:subfield">
2048
          <xslo:if test="contains('afjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2049
            <xslo:if test="position() &gt; 1">
2050
              <xslo:choose>
2051
                <xslo:when test="contains('jxyz', @code)">
2052
                  <xslo:choose>
2053
                    <xslo:when test="@code = $general_subdivision_subfield">
2054
                      <xslo:text> generalsubdiv </xslo:text>
2055
                    </xslo:when>
2056
                    <xslo:when test="@code = $form_subdivision_subfield">
2057
                      <xslo:text> formsubdiv </xslo:text>
2058
                    </xslo:when>
2059
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2060
                      <xslo:text> chronologicalsubdiv </xslo:text>
2061
                    </xslo:when>
2062
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2063
                      <xslo:text> geographicsubdiv </xslo:text>
2064
                    </xslo:when>
2065
                  </xslo:choose>
2066
                </xslo:when>
2067
                <xslo:otherwise>
2068
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2069
                </xslo:otherwise>
2070
              </xslo:choose>
2071
            </xslo:if>
2072
            <xslo:call-template name="chopPunctuation">
2073
              <xslo:with-param name="chopString">
2074
                <xslo:value-of select="."/>
2075
              </xslo:with-param>
2076
            </xslo:call-template>
2077
          </xslo:if>
2078
        </xslo:for-each>
2079
      </xslo:variable>
2080
      <xslo:value-of select="normalize-space($raw_heading)"/>
2081
    </z:index>
2082
  </xslo:template>
2083
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='420']">
2084
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2085
      <xslo:variable name="raw_heading">
2086
        <xslo:for-each select="marc:subfield">
2087
          <xslo:if test="contains('afjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2088
            <xslo:if test="position() &gt; 1">
2089
              <xslo:choose>
2090
                <xslo:when test="contains('jxyz', @code)">
2091
                  <xslo:choose>
2092
                    <xslo:when test="@code = $general_subdivision_subfield">
2093
                      <xslo:text> generalsubdiv </xslo:text>
2094
                    </xslo:when>
2095
                    <xslo:when test="@code = $form_subdivision_subfield">
2096
                      <xslo:text> formsubdiv </xslo:text>
2097
                    </xslo:when>
2098
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2099
                      <xslo:text> chronologicalsubdiv </xslo:text>
2100
                    </xslo:when>
2101
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2102
                      <xslo:text> geographicsubdiv </xslo:text>
2103
                    </xslo:when>
2104
                  </xslo:choose>
2105
                </xslo:when>
2106
                <xslo:otherwise>
2107
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2108
                </xslo:otherwise>
2109
              </xslo:choose>
2110
            </xslo:if>
2111
            <xslo:call-template name="chopPunctuation">
2112
              <xslo:with-param name="chopString">
2113
                <xslo:value-of select="."/>
2114
              </xslo:with-param>
2115
            </xslo:call-template>
2116
          </xslo:if>
2117
        </xslo:for-each>
2118
      </xslo:variable>
2119
      <xslo:value-of select="normalize-space($raw_heading)"/>
2120
    </z:index>
2121
  </xslo:template>
2122
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='520']">
2123
    <z:index name="Match:w Match:p">
2124
      <xslo:variable name="raw_heading">
2125
        <xslo:for-each select="marc:subfield">
2126
          <xslo:if test="contains('afjxyz', @code)" name="Match:w Match:p">
2127
            <xslo:if test="position() &gt; 1">
2128
              <xslo:choose>
2129
                <xslo:when test="contains('jxyz', @code)">
2130
                  <xslo:choose>
2131
                    <xslo:when test="@code = $general_subdivision_subfield">
2132
                      <xslo:text> generalsubdiv </xslo:text>
2133
                    </xslo:when>
2134
                    <xslo:when test="@code = $form_subdivision_subfield">
2135
                      <xslo:text> formsubdiv </xslo:text>
2136
                    </xslo:when>
2137
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2138
                      <xslo:text> chronologicalsubdiv </xslo:text>
2139
                    </xslo:when>
2140
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2141
                      <xslo:text> geographicsubdiv </xslo:text>
2142
                    </xslo:when>
2143
                  </xslo:choose>
2144
                </xslo:when>
2145
                <xslo:otherwise>
2146
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2147
                </xslo:otherwise>
2148
              </xslo:choose>
2149
            </xslo:if>
2150
            <xslo:call-template name="chopPunctuation">
2151
              <xslo:with-param name="chopString">
2152
                <xslo:value-of select="."/>
2153
              </xslo:with-param>
2154
            </xslo:call-template>
2155
          </xslo:if>
2156
        </xslo:for-each>
2157
      </xslo:variable>
2158
      <xslo:value-of select="normalize-space($raw_heading)"/>
2159
    </z:index>
2160
  </xslo:template>
2161
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='720']">
2162
    <z:index name="Match:w Match:p">
2163
      <xslo:variable name="raw_heading">
2164
        <xslo:for-each select="marc:subfield">
2165
          <xslo:if test="contains('afjxyz', @code)" name="Match:w Match:p">
2166
            <xslo:if test="position() &gt; 1">
2167
              <xslo:choose>
2168
                <xslo:when test="contains('jxyz', @code)">
2169
                  <xslo:choose>
2170
                    <xslo:when test="@code = $general_subdivision_subfield">
2171
                      <xslo:text> generalsubdiv </xslo:text>
2172
                    </xslo:when>
2173
                    <xslo:when test="@code = $form_subdivision_subfield">
2174
                      <xslo:text> formsubdiv </xslo:text>
2175
                    </xslo:when>
2176
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2177
                      <xslo:text> chronologicalsubdiv </xslo:text>
2178
                    </xslo:when>
2179
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2180
                      <xslo:text> geographicsubdiv </xslo:text>
2181
                    </xslo:when>
2182
                  </xslo:choose>
2183
                </xslo:when>
2184
                <xslo:otherwise>
2185
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2186
                </xslo:otherwise>
2187
              </xslo:choose>
2188
            </xslo:if>
2189
            <xslo:call-template name="chopPunctuation">
2190
              <xslo:with-param name="chopString">
2191
                <xslo:value-of select="."/>
2192
              </xslo:with-param>
2193
            </xslo:call-template>
2194
          </xslo:if>
2195
        </xslo:for-each>
2196
      </xslo:variable>
2197
      <xslo:value-of select="normalize-space($raw_heading)"/>
2198
    </z:index>
2199
  </xslo:template>
2200
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='230']">
2201
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2202
      <xslo:variable name="raw_heading">
2203
        <xslo:for-each select="marc:subfield">
2204
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2205
            <xslo:if test="position() &gt; 1">
2206
              <xslo:choose>
2207
                <xslo:when test="contains('jxyz', @code)">
2208
                  <xslo:choose>
2209
                    <xslo:when test="@code = $general_subdivision_subfield">
2210
                      <xslo:text> generalsubdiv </xslo:text>
2211
                    </xslo:when>
2212
                    <xslo:when test="@code = $form_subdivision_subfield">
2213
                      <xslo:text> formsubdiv </xslo:text>
2214
                    </xslo:when>
2215
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2216
                      <xslo:text> chronologicalsubdiv </xslo:text>
2217
                    </xslo:when>
2218
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2219
                      <xslo:text> geographicsubdiv </xslo:text>
2220
                    </xslo:when>
2221
                  </xslo:choose>
2222
                </xslo:when>
2223
                <xslo:otherwise>
2224
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2225
                </xslo:otherwise>
2226
              </xslo:choose>
2227
            </xslo:if>
2228
            <xslo:call-template name="chopPunctuation">
2229
              <xslo:with-param name="chopString">
2230
                <xslo:value-of select="."/>
2231
              </xslo:with-param>
2232
            </xslo:call-template>
2233
          </xslo:if>
2234
        </xslo:for-each>
2235
      </xslo:variable>
2236
      <xslo:value-of select="normalize-space($raw_heading)"/>
2237
    </z:index>
2238
  </xslo:template>
2239
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='430']">
2240
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2241
      <xslo:variable name="raw_heading">
2242
        <xslo:for-each select="marc:subfield">
2243
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2244
            <xslo:if test="position() &gt; 1">
2245
              <xslo:choose>
2246
                <xslo:when test="contains('jxyz', @code)">
2247
                  <xslo:choose>
2248
                    <xslo:when test="@code = $general_subdivision_subfield">
2249
                      <xslo:text> generalsubdiv </xslo:text>
2250
                    </xslo:when>
2251
                    <xslo:when test="@code = $form_subdivision_subfield">
2252
                      <xslo:text> formsubdiv </xslo:text>
2253
                    </xslo:when>
2254
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2255
                      <xslo:text> chronologicalsubdiv </xslo:text>
2256
                    </xslo:when>
2257
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2258
                      <xslo:text> geographicsubdiv </xslo:text>
2259
                    </xslo:when>
2260
                  </xslo:choose>
2261
                </xslo:when>
2262
                <xslo:otherwise>
2263
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2264
                </xslo:otherwise>
2265
              </xslo:choose>
2266
            </xslo:if>
2267
            <xslo:call-template name="chopPunctuation">
2268
              <xslo:with-param name="chopString">
2269
                <xslo:value-of select="."/>
2270
              </xslo:with-param>
2271
            </xslo:call-template>
2272
          </xslo:if>
2273
        </xslo:for-each>
2274
      </xslo:variable>
2275
      <xslo:value-of select="normalize-space($raw_heading)"/>
2276
    </z:index>
2277
  </xslo:template>
2278
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='530']">
2279
    <z:index name="Match:w Match:p">
2280
      <xslo:variable name="raw_heading">
2281
        <xslo:for-each select="marc:subfield">
2282
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Match:w Match:p">
2283
            <xslo:if test="position() &gt; 1">
2284
              <xslo:choose>
2285
                <xslo:when test="contains('jxyz', @code)">
2286
                  <xslo:choose>
2287
                    <xslo:when test="@code = $general_subdivision_subfield">
2288
                      <xslo:text> generalsubdiv </xslo:text>
2289
                    </xslo:when>
2290
                    <xslo:when test="@code = $form_subdivision_subfield">
2291
                      <xslo:text> formsubdiv </xslo:text>
2292
                    </xslo:when>
2293
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2294
                      <xslo:text> chronologicalsubdiv </xslo:text>
2295
                    </xslo:when>
2296
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2297
                      <xslo:text> geographicsubdiv </xslo:text>
2298
                    </xslo:when>
2299
                  </xslo:choose>
2300
                </xslo:when>
2301
                <xslo:otherwise>
2302
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2303
                </xslo:otherwise>
2304
              </xslo:choose>
2305
            </xslo:if>
2306
            <xslo:call-template name="chopPunctuation">
2307
              <xslo:with-param name="chopString">
2308
                <xslo:value-of select="."/>
2309
              </xslo:with-param>
2310
            </xslo:call-template>
2311
          </xslo:if>
2312
        </xslo:for-each>
2313
      </xslo:variable>
2314
      <xslo:value-of select="normalize-space($raw_heading)"/>
2315
    </z:index>
2316
  </xslo:template>
2317
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='730']">
2318
    <z:index name="Match:w Match:p">
2319
      <xslo:variable name="raw_heading">
2320
        <xslo:for-each select="marc:subfield">
2321
          <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)" name="Match:w Match:p">
2322
            <xslo:if test="position() &gt; 1">
2323
              <xslo:choose>
2324
                <xslo:when test="contains('jxyz', @code)">
2325
                  <xslo:choose>
2326
                    <xslo:when test="@code = $general_subdivision_subfield">
2327
                      <xslo:text> generalsubdiv </xslo:text>
2328
                    </xslo:when>
2329
                    <xslo:when test="@code = $form_subdivision_subfield">
2330
                      <xslo:text> formsubdiv </xslo:text>
2331
                    </xslo:when>
2332
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2333
                      <xslo:text> chronologicalsubdiv </xslo:text>
2334
                    </xslo:when>
2335
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2336
                      <xslo:text> geographicsubdiv </xslo:text>
2337
                    </xslo:when>
2338
                  </xslo:choose>
2339
                </xslo:when>
2340
                <xslo:otherwise>
2341
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2342
                </xslo:otherwise>
2343
              </xslo:choose>
2344
            </xslo:if>
2345
            <xslo:call-template name="chopPunctuation">
2346
              <xslo:with-param name="chopString">
2347
                <xslo:value-of select="."/>
2348
              </xslo:with-param>
2349
            </xslo:call-template>
2350
          </xslo:if>
2351
        </xslo:for-each>
2352
      </xslo:variable>
2353
      <xslo:value-of select="normalize-space($raw_heading)"/>
2354
    </z:index>
2355
  </xslo:template>
2356
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='235']">
2357
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2358
      <xslo:variable name="raw_heading">
2359
        <xslo:for-each select="marc:subfield">
2360
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2361
            <xslo:if test="position() &gt; 1">
2362
              <xslo:choose>
2363
                <xslo:when test="contains('jxyz', @code)">
2364
                  <xslo:choose>
2365
                    <xslo:when test="@code = $general_subdivision_subfield">
2366
                      <xslo:text> generalsubdiv </xslo:text>
2367
                    </xslo:when>
2368
                    <xslo:when test="@code = $form_subdivision_subfield">
2369
                      <xslo:text> formsubdiv </xslo:text>
2370
                    </xslo:when>
2371
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2372
                      <xslo:text> chronologicalsubdiv </xslo:text>
2373
                    </xslo:when>
2374
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2375
                      <xslo:text> geographicsubdiv </xslo:text>
2376
                    </xslo:when>
2377
                  </xslo:choose>
2378
                </xslo:when>
2379
                <xslo:otherwise>
2380
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2381
                </xslo:otherwise>
2382
              </xslo:choose>
2383
            </xslo:if>
2384
            <xslo:call-template name="chopPunctuation">
2385
              <xslo:with-param name="chopString">
2386
                <xslo:value-of select="."/>
2387
              </xslo:with-param>
2388
            </xslo:call-template>
2389
          </xslo:if>
2390
        </xslo:for-each>
2391
      </xslo:variable>
2392
      <xslo:value-of select="normalize-space($raw_heading)"/>
2393
    </z:index>
2394
  </xslo:template>
2395
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='435']">
2396
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2397
      <xslo:variable name="raw_heading">
2398
        <xslo:for-each select="marc:subfield">
2399
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2400
            <xslo:if test="position() &gt; 1">
2401
              <xslo:choose>
2402
                <xslo:when test="contains('jxyz', @code)">
2403
                  <xslo:choose>
2404
                    <xslo:when test="@code = $general_subdivision_subfield">
2405
                      <xslo:text> generalsubdiv </xslo:text>
2406
                    </xslo:when>
2407
                    <xslo:when test="@code = $form_subdivision_subfield">
2408
                      <xslo:text> formsubdiv </xslo:text>
2409
                    </xslo:when>
2410
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2411
                      <xslo:text> chronologicalsubdiv </xslo:text>
2412
                    </xslo:when>
2413
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2414
                      <xslo:text> geographicsubdiv </xslo:text>
2415
                    </xslo:when>
2416
                  </xslo:choose>
2417
                </xslo:when>
2418
                <xslo:otherwise>
2419
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2420
                </xslo:otherwise>
2421
              </xslo:choose>
2422
            </xslo:if>
2423
            <xslo:call-template name="chopPunctuation">
2424
              <xslo:with-param name="chopString">
2425
                <xslo:value-of select="."/>
2426
              </xslo:with-param>
2427
            </xslo:call-template>
2428
          </xslo:if>
2429
        </xslo:for-each>
2430
      </xslo:variable>
2431
      <xslo:value-of select="normalize-space($raw_heading)"/>
2432
    </z:index>
2433
  </xslo:template>
2434
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='535']">
2435
    <z:index name="Match:w Match:p">
2436
      <xslo:variable name="raw_heading">
2437
        <xslo:for-each select="marc:subfield">
2438
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Match:w Match:p">
2439
            <xslo:if test="position() &gt; 1">
2440
              <xslo:choose>
2441
                <xslo:when test="contains('jxyz', @code)">
2442
                  <xslo:choose>
2443
                    <xslo:when test="@code = $general_subdivision_subfield">
2444
                      <xslo:text> generalsubdiv </xslo:text>
2445
                    </xslo:when>
2446
                    <xslo:when test="@code = $form_subdivision_subfield">
2447
                      <xslo:text> formsubdiv </xslo:text>
2448
                    </xslo:when>
2449
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2450
                      <xslo:text> chronologicalsubdiv </xslo:text>
2451
                    </xslo:when>
2452
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2453
                      <xslo:text> geographicsubdiv </xslo:text>
2454
                    </xslo:when>
2455
                  </xslo:choose>
2456
                </xslo:when>
2457
                <xslo:otherwise>
2458
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2459
                </xslo:otherwise>
2460
              </xslo:choose>
2461
            </xslo:if>
2462
            <xslo:call-template name="chopPunctuation">
2463
              <xslo:with-param name="chopString">
2464
                <xslo:value-of select="."/>
2465
              </xslo:with-param>
2466
            </xslo:call-template>
2467
          </xslo:if>
2468
        </xslo:for-each>
2469
      </xslo:variable>
2470
      <xslo:value-of select="normalize-space($raw_heading)"/>
2471
    </z:index>
2472
  </xslo:template>
2473
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='735']">
2474
    <z:index name="Match:w Match:p">
2475
      <xslo:variable name="raw_heading">
2476
        <xslo:for-each select="marc:subfield">
2477
          <xslo:if test="contains('abekmrsuwjxyz', @code)" name="Match:w Match:p">
2478
            <xslo:if test="position() &gt; 1">
2479
              <xslo:choose>
2480
                <xslo:when test="contains('jxyz', @code)">
2481
                  <xslo:choose>
2482
                    <xslo:when test="@code = $general_subdivision_subfield">
2483
                      <xslo:text> generalsubdiv </xslo:text>
2484
                    </xslo:when>
2485
                    <xslo:when test="@code = $form_subdivision_subfield">
2486
                      <xslo:text> formsubdiv </xslo:text>
2487
                    </xslo:when>
2488
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2489
                      <xslo:text> chronologicalsubdiv </xslo:text>
2490
                    </xslo:when>
2491
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2492
                      <xslo:text> geographicsubdiv </xslo:text>
2493
                    </xslo:when>
2494
                  </xslo:choose>
2495
                </xslo:when>
2496
                <xslo:otherwise>
2497
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2498
                </xslo:otherwise>
2499
              </xslo:choose>
2500
            </xslo:if>
2501
            <xslo:call-template name="chopPunctuation">
2502
              <xslo:with-param name="chopString">
2503
                <xslo:value-of select="."/>
2504
              </xslo:with-param>
2505
            </xslo:call-template>
2506
          </xslo:if>
2507
        </xslo:for-each>
2508
      </xslo:variable>
2509
      <xslo:value-of select="normalize-space($raw_heading)"/>
2510
    </z:index>
2511
  </xslo:template>
2512
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='240']">
2513
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2514
      <xslo:variable name="raw_heading">
2515
        <xslo:for-each select="marc:subfield">
2516
          <xslo:if test="contains('atjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2517
            <xslo:if test="position() &gt; 1">
2518
              <xslo:choose>
2519
                <xslo:when test="contains('jxyz', @code)">
2520
                  <xslo:choose>
2521
                    <xslo:when test="@code = $general_subdivision_subfield">
2522
                      <xslo:text> generalsubdiv </xslo:text>
2523
                    </xslo:when>
2524
                    <xslo:when test="@code = $form_subdivision_subfield">
2525
                      <xslo:text> formsubdiv </xslo:text>
2526
                    </xslo:when>
2527
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2528
                      <xslo:text> chronologicalsubdiv </xslo:text>
2529
                    </xslo:when>
2530
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2531
                      <xslo:text> geographicsubdiv </xslo:text>
2532
                    </xslo:when>
2533
                  </xslo:choose>
2534
                </xslo:when>
2535
                <xslo:otherwise>
2536
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2537
                </xslo:otherwise>
2538
              </xslo:choose>
2539
            </xslo:if>
2540
            <xslo:call-template name="chopPunctuation">
2541
              <xslo:with-param name="chopString">
2542
                <xslo:value-of select="."/>
2543
              </xslo:with-param>
2544
            </xslo:call-template>
2545
          </xslo:if>
2546
        </xslo:for-each>
2547
      </xslo:variable>
2548
      <xslo:value-of select="normalize-space($raw_heading)"/>
2549
    </z:index>
2550
  </xslo:template>
2551
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='440']">
2552
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2553
      <xslo:variable name="raw_heading">
2554
        <xslo:for-each select="marc:subfield">
2555
          <xslo:if test="contains('atjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2556
            <xslo:if test="position() &gt; 1">
2557
              <xslo:choose>
2558
                <xslo:when test="contains('jxyz', @code)">
2559
                  <xslo:choose>
2560
                    <xslo:when test="@code = $general_subdivision_subfield">
2561
                      <xslo:text> generalsubdiv </xslo:text>
2562
                    </xslo:when>
2563
                    <xslo:when test="@code = $form_subdivision_subfield">
2564
                      <xslo:text> formsubdiv </xslo:text>
2565
                    </xslo:when>
2566
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2567
                      <xslo:text> chronologicalsubdiv </xslo:text>
2568
                    </xslo:when>
2569
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2570
                      <xslo:text> geographicsubdiv </xslo:text>
2571
                    </xslo:when>
2572
                  </xslo:choose>
2573
                </xslo:when>
2574
                <xslo:otherwise>
2575
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2576
                </xslo:otherwise>
2577
              </xslo:choose>
2578
            </xslo:if>
2579
            <xslo:call-template name="chopPunctuation">
2580
              <xslo:with-param name="chopString">
2581
                <xslo:value-of select="."/>
2582
              </xslo:with-param>
2583
            </xslo:call-template>
2584
          </xslo:if>
2585
        </xslo:for-each>
2586
      </xslo:variable>
2587
      <xslo:value-of select="normalize-space($raw_heading)"/>
2588
    </z:index>
2589
  </xslo:template>
2590
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='540']">
2591
    <z:index name="Match:w Match:p">
2592
      <xslo:variable name="raw_heading">
2593
        <xslo:for-each select="marc:subfield">
2594
          <xslo:if test="contains('atjxyz', @code)" name="Match:w Match:p">
2595
            <xslo:if test="position() &gt; 1">
2596
              <xslo:choose>
2597
                <xslo:when test="contains('jxyz', @code)">
2598
                  <xslo:choose>
2599
                    <xslo:when test="@code = $general_subdivision_subfield">
2600
                      <xslo:text> generalsubdiv </xslo:text>
2601
                    </xslo:when>
2602
                    <xslo:when test="@code = $form_subdivision_subfield">
2603
                      <xslo:text> formsubdiv </xslo:text>
2604
                    </xslo:when>
2605
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2606
                      <xslo:text> chronologicalsubdiv </xslo:text>
2607
                    </xslo:when>
2608
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2609
                      <xslo:text> geographicsubdiv </xslo:text>
2610
                    </xslo:when>
2611
                  </xslo:choose>
2612
                </xslo:when>
2613
                <xslo:otherwise>
2614
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2615
                </xslo:otherwise>
2616
              </xslo:choose>
2617
            </xslo:if>
2618
            <xslo:call-template name="chopPunctuation">
2619
              <xslo:with-param name="chopString">
2620
                <xslo:value-of select="."/>
2621
              </xslo:with-param>
2622
            </xslo:call-template>
2623
          </xslo:if>
2624
        </xslo:for-each>
2625
      </xslo:variable>
2626
      <xslo:value-of select="normalize-space($raw_heading)"/>
2627
    </z:index>
2628
  </xslo:template>
2629
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='740']">
2630
    <z:index name="Match:w Match:p">
2631
      <xslo:variable name="raw_heading">
2632
        <xslo:for-each select="marc:subfield">
2633
          <xslo:if test="contains('atjxyz', @code)" name="Match:w Match:p">
2634
            <xslo:if test="position() &gt; 1">
2635
              <xslo:choose>
2636
                <xslo:when test="contains('jxyz', @code)">
2637
                  <xslo:choose>
2638
                    <xslo:when test="@code = $general_subdivision_subfield">
2639
                      <xslo:text> generalsubdiv </xslo:text>
2640
                    </xslo:when>
2641
                    <xslo:when test="@code = $form_subdivision_subfield">
2642
                      <xslo:text> formsubdiv </xslo:text>
2643
                    </xslo:when>
2644
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2645
                      <xslo:text> chronologicalsubdiv </xslo:text>
2646
                    </xslo:when>
2647
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2648
                      <xslo:text> geographicsubdiv </xslo:text>
2649
                    </xslo:when>
2650
                  </xslo:choose>
2651
                </xslo:when>
2652
                <xslo:otherwise>
2653
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2654
                </xslo:otherwise>
2655
              </xslo:choose>
2656
            </xslo:if>
2657
            <xslo:call-template name="chopPunctuation">
2658
              <xslo:with-param name="chopString">
2659
                <xslo:value-of select="."/>
2660
              </xslo:with-param>
2661
            </xslo:call-template>
2662
          </xslo:if>
2663
        </xslo:for-each>
2664
      </xslo:variable>
2665
      <xslo:value-of select="normalize-space($raw_heading)"/>
2666
    </z:index>
2667
  </xslo:template>
2668
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='250']">
2669
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2670
      <xslo:variable name="raw_heading">
2671
        <xslo:for-each select="marc:subfield">
2672
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2673
            <xslo:if test="position() &gt; 1">
2674
              <xslo:choose>
2675
                <xslo:when test="contains('jxyz', @code)">
2676
                  <xslo:choose>
2677
                    <xslo:when test="@code = $general_subdivision_subfield">
2678
                      <xslo:text> generalsubdiv </xslo:text>
2679
                    </xslo:when>
2680
                    <xslo:when test="@code = $form_subdivision_subfield">
2681
                      <xslo:text> formsubdiv </xslo:text>
2682
                    </xslo:when>
2683
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2684
                      <xslo:text> chronologicalsubdiv </xslo:text>
2685
                    </xslo:when>
2686
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2687
                      <xslo:text> geographicsubdiv </xslo:text>
2688
                    </xslo:when>
2689
                  </xslo:choose>
2690
                </xslo:when>
2691
                <xslo:otherwise>
2692
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2693
                </xslo:otherwise>
2694
              </xslo:choose>
2695
            </xslo:if>
2696
            <xslo:call-template name="chopPunctuation">
2697
              <xslo:with-param name="chopString">
2698
                <xslo:value-of select="."/>
2699
              </xslo:with-param>
2700
            </xslo:call-template>
2701
          </xslo:if>
2702
        </xslo:for-each>
2703
      </xslo:variable>
2704
      <xslo:value-of select="normalize-space($raw_heading)"/>
2705
    </z:index>
2706
  </xslo:template>
2707
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='450']">
2708
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2709
      <xslo:variable name="raw_heading">
2710
        <xslo:for-each select="marc:subfield">
2711
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2712
            <xslo:if test="position() &gt; 1">
2713
              <xslo:choose>
2714
                <xslo:when test="contains('jxyz', @code)">
2715
                  <xslo:choose>
2716
                    <xslo:when test="@code = $general_subdivision_subfield">
2717
                      <xslo:text> generalsubdiv </xslo:text>
2718
                    </xslo:when>
2719
                    <xslo:when test="@code = $form_subdivision_subfield">
2720
                      <xslo:text> formsubdiv </xslo:text>
2721
                    </xslo:when>
2722
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2723
                      <xslo:text> chronologicalsubdiv </xslo:text>
2724
                    </xslo:when>
2725
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2726
                      <xslo:text> geographicsubdiv </xslo:text>
2727
                    </xslo:when>
2728
                  </xslo:choose>
2729
                </xslo:when>
2730
                <xslo:otherwise>
2731
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2732
                </xslo:otherwise>
2733
              </xslo:choose>
2734
            </xslo:if>
2735
            <xslo:call-template name="chopPunctuation">
2736
              <xslo:with-param name="chopString">
2737
                <xslo:value-of select="."/>
2738
              </xslo:with-param>
2739
            </xslo:call-template>
2740
          </xslo:if>
2741
        </xslo:for-each>
2742
      </xslo:variable>
2743
      <xslo:value-of select="normalize-space($raw_heading)"/>
2744
    </z:index>
2745
  </xslo:template>
2746
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='550']">
2747
    <z:index name="Match:w Match:p">
2748
      <xslo:variable name="raw_heading">
2749
        <xslo:for-each select="marc:subfield">
2750
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p">
2751
            <xslo:if test="position() &gt; 1">
2752
              <xslo:choose>
2753
                <xslo:when test="contains('jxyz', @code)">
2754
                  <xslo:choose>
2755
                    <xslo:when test="@code = $general_subdivision_subfield">
2756
                      <xslo:text> generalsubdiv </xslo:text>
2757
                    </xslo:when>
2758
                    <xslo:when test="@code = $form_subdivision_subfield">
2759
                      <xslo:text> formsubdiv </xslo:text>
2760
                    </xslo:when>
2761
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2762
                      <xslo:text> chronologicalsubdiv </xslo:text>
2763
                    </xslo:when>
2764
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2765
                      <xslo:text> geographicsubdiv </xslo:text>
2766
                    </xslo:when>
2767
                  </xslo:choose>
2768
                </xslo:when>
2769
                <xslo:otherwise>
2770
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2771
                </xslo:otherwise>
2772
              </xslo:choose>
2773
            </xslo:if>
2774
            <xslo:call-template name="chopPunctuation">
2775
              <xslo:with-param name="chopString">
2776
                <xslo:value-of select="."/>
2777
              </xslo:with-param>
2778
            </xslo:call-template>
2779
          </xslo:if>
2780
        </xslo:for-each>
2781
      </xslo:variable>
2782
      <xslo:value-of select="normalize-space($raw_heading)"/>
2783
    </z:index>
2784
  </xslo:template>
2785
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='750']">
2786
    <z:index name="Match:w Match:p">
2787
      <xslo:variable name="raw_heading">
2788
        <xslo:for-each select="marc:subfield">
2789
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p">
2790
            <xslo:if test="position() &gt; 1">
2791
              <xslo:choose>
2792
                <xslo:when test="contains('jxyz', @code)">
2793
                  <xslo:choose>
2794
                    <xslo:when test="@code = $general_subdivision_subfield">
2795
                      <xslo:text> generalsubdiv </xslo:text>
2796
                    </xslo:when>
2797
                    <xslo:when test="@code = $form_subdivision_subfield">
2798
                      <xslo:text> formsubdiv </xslo:text>
2799
                    </xslo:when>
2800
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2801
                      <xslo:text> chronologicalsubdiv </xslo:text>
2802
                    </xslo:when>
2803
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2804
                      <xslo:text> geographicsubdiv </xslo:text>
2805
                    </xslo:when>
2806
                  </xslo:choose>
2807
                </xslo:when>
2808
                <xslo:otherwise>
2809
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2810
                </xslo:otherwise>
2811
              </xslo:choose>
2812
            </xslo:if>
2813
            <xslo:call-template name="chopPunctuation">
2814
              <xslo:with-param name="chopString">
2815
                <xslo:value-of select="."/>
2816
              </xslo:with-param>
2817
            </xslo:call-template>
2818
          </xslo:if>
2819
        </xslo:for-each>
2820
      </xslo:variable>
2821
      <xslo:value-of select="normalize-space($raw_heading)"/>
2822
    </z:index>
2823
  </xslo:template>
2824
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='260']">
2825
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2826
      <xslo:variable name="raw_heading">
2827
        <xslo:for-each select="marc:subfield">
2828
          <xslo:if test="contains('abcdjxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2829
            <xslo:if test="position() &gt; 1">
2830
              <xslo:choose>
2831
                <xslo:when test="contains('jxyz', @code)">
2832
                  <xslo:choose>
2833
                    <xslo:when test="@code = $general_subdivision_subfield">
2834
                      <xslo:text> generalsubdiv </xslo:text>
2835
                    </xslo:when>
2836
                    <xslo:when test="@code = $form_subdivision_subfield">
2837
                      <xslo:text> formsubdiv </xslo:text>
2838
                    </xslo:when>
2839
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2840
                      <xslo:text> chronologicalsubdiv </xslo:text>
2841
                    </xslo:when>
2842
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2843
                      <xslo:text> geographicsubdiv </xslo:text>
2844
                    </xslo:when>
2845
                  </xslo:choose>
2846
                </xslo:when>
2847
                <xslo:otherwise>
2848
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2849
                </xslo:otherwise>
2850
              </xslo:choose>
2851
            </xslo:if>
2852
            <xslo:call-template name="chopPunctuation">
2853
              <xslo:with-param name="chopString">
2854
                <xslo:value-of select="."/>
2855
              </xslo:with-param>
2856
            </xslo:call-template>
2857
          </xslo:if>
2858
        </xslo:for-each>
2859
      </xslo:variable>
2860
      <xslo:value-of select="normalize-space($raw_heading)"/>
2861
    </z:index>
2862
  </xslo:template>
2863
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='460']">
2864
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2865
      <xslo:variable name="raw_heading">
2866
        <xslo:for-each select="marc:subfield">
2867
          <xslo:if test="contains('abcdjxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
2868
            <xslo:if test="position() &gt; 1">
2869
              <xslo:choose>
2870
                <xslo:when test="contains('jxyz', @code)">
2871
                  <xslo:choose>
2872
                    <xslo:when test="@code = $general_subdivision_subfield">
2873
                      <xslo:text> generalsubdiv </xslo:text>
2874
                    </xslo:when>
2875
                    <xslo:when test="@code = $form_subdivision_subfield">
2876
                      <xslo:text> formsubdiv </xslo:text>
2877
                    </xslo:when>
2878
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2879
                      <xslo:text> chronologicalsubdiv </xslo:text>
2880
                    </xslo:when>
2881
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2882
                      <xslo:text> geographicsubdiv </xslo:text>
2883
                    </xslo:when>
2884
                  </xslo:choose>
2885
                </xslo:when>
2886
                <xslo:otherwise>
2887
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2888
                </xslo:otherwise>
2889
              </xslo:choose>
2890
            </xslo:if>
2891
            <xslo:call-template name="chopPunctuation">
2892
              <xslo:with-param name="chopString">
2893
                <xslo:value-of select="."/>
2894
              </xslo:with-param>
2895
            </xslo:call-template>
2896
          </xslo:if>
2897
        </xslo:for-each>
2898
      </xslo:variable>
2899
      <xslo:value-of select="normalize-space($raw_heading)"/>
2900
    </z:index>
2901
  </xslo:template>
2902
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='560']">
2903
    <z:index name="Match:w Match:p">
2904
      <xslo:variable name="raw_heading">
2905
        <xslo:for-each select="marc:subfield">
2906
          <xslo:if test="contains('abcdjxyz', @code)" name="Match:w Match:p">
2907
            <xslo:if test="position() &gt; 1">
2908
              <xslo:choose>
2909
                <xslo:when test="contains('jxyz', @code)">
2910
                  <xslo:choose>
2911
                    <xslo:when test="@code = $general_subdivision_subfield">
2912
                      <xslo:text> generalsubdiv </xslo:text>
2913
                    </xslo:when>
2914
                    <xslo:when test="@code = $form_subdivision_subfield">
2915
                      <xslo:text> formsubdiv </xslo:text>
2916
                    </xslo:when>
2917
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2918
                      <xslo:text> chronologicalsubdiv </xslo:text>
2919
                    </xslo:when>
2920
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2921
                      <xslo:text> geographicsubdiv </xslo:text>
2922
                    </xslo:when>
2923
                  </xslo:choose>
2924
                </xslo:when>
2925
                <xslo:otherwise>
2926
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2927
                </xslo:otherwise>
2928
              </xslo:choose>
2929
            </xslo:if>
2930
            <xslo:call-template name="chopPunctuation">
2931
              <xslo:with-param name="chopString">
2932
                <xslo:value-of select="."/>
2933
              </xslo:with-param>
2934
            </xslo:call-template>
2935
          </xslo:if>
2936
        </xslo:for-each>
2937
      </xslo:variable>
2938
      <xslo:value-of select="normalize-space($raw_heading)"/>
2939
    </z:index>
2940
  </xslo:template>
2941
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='760']">
2942
    <z:index name="Match:w Match:p">
2943
      <xslo:variable name="raw_heading">
2944
        <xslo:for-each select="marc:subfield">
2945
          <xslo:if test="contains('abcdjxyz', @code)" name="Match:w Match:p">
2946
            <xslo:if test="position() &gt; 1">
2947
              <xslo:choose>
2948
                <xslo:when test="contains('jxyz', @code)">
2949
                  <xslo:choose>
2950
                    <xslo:when test="@code = $general_subdivision_subfield">
2951
                      <xslo:text> generalsubdiv </xslo:text>
2952
                    </xslo:when>
2953
                    <xslo:when test="@code = $form_subdivision_subfield">
2954
                      <xslo:text> formsubdiv </xslo:text>
2955
                    </xslo:when>
2956
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2957
                      <xslo:text> chronologicalsubdiv </xslo:text>
2958
                    </xslo:when>
2959
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2960
                      <xslo:text> geographicsubdiv </xslo:text>
2961
                    </xslo:when>
2962
                  </xslo:choose>
2963
                </xslo:when>
2964
                <xslo:otherwise>
2965
                  <xslo:value-of select="substring(' ', 1, 1)"/>
2966
                </xslo:otherwise>
2967
              </xslo:choose>
2968
            </xslo:if>
2969
            <xslo:call-template name="chopPunctuation">
2970
              <xslo:with-param name="chopString">
2971
                <xslo:value-of select="."/>
2972
              </xslo:with-param>
2973
            </xslo:call-template>
2974
          </xslo:if>
2975
        </xslo:for-each>
2976
      </xslo:variable>
2977
      <xslo:value-of select="normalize-space($raw_heading)"/>
2978
    </z:index>
2979
  </xslo:template>
2980
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='280']">
2981
    <z:index name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2982
      <xslo:variable name="raw_heading">
2983
        <xslo:for-each select="marc:subfield">
2984
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p Match-heading:w Match-heading:p Match-heading:s">
2985
            <xslo:if test="position() &gt; 1">
2986
              <xslo:choose>
2987
                <xslo:when test="contains('jxyz', @code)">
2988
                  <xslo:choose>
2989
                    <xslo:when test="@code = $general_subdivision_subfield">
2990
                      <xslo:text> generalsubdiv </xslo:text>
2991
                    </xslo:when>
2992
                    <xslo:when test="@code = $form_subdivision_subfield">
2993
                      <xslo:text> formsubdiv </xslo:text>
2994
                    </xslo:when>
2995
                    <xslo:when test="@code = $chronological_subdivision_subfield">
2996
                      <xslo:text> chronologicalsubdiv </xslo:text>
2997
                    </xslo:when>
2998
                    <xslo:when test="@code = $geographic_subdivision_subfield">
2999
                      <xslo:text> geographicsubdiv </xslo:text>
3000
                    </xslo:when>
3001
                  </xslo:choose>
3002
                </xslo:when>
3003
                <xslo:otherwise>
3004
                  <xslo:value-of select="substring(' ', 1, 1)"/>
3005
                </xslo:otherwise>
3006
              </xslo:choose>
3007
            </xslo:if>
3008
            <xslo:call-template name="chopPunctuation">
3009
              <xslo:with-param name="chopString">
3010
                <xslo:value-of select="."/>
3011
              </xslo:with-param>
3012
            </xslo:call-template>
3013
          </xslo:if>
3014
        </xslo:for-each>
3015
      </xslo:variable>
3016
      <xslo:value-of select="normalize-space($raw_heading)"/>
3017
    </z:index>
3018
  </xslo:template>
3019
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='480']">
3020
    <z:index name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
3021
      <xslo:variable name="raw_heading">
3022
        <xslo:for-each select="marc:subfield">
3023
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p Match-heading-see-from:w Match-heading-see-from:p Match-heading-see-from:s">
3024
            <xslo:if test="position() &gt; 1">
3025
              <xslo:choose>
3026
                <xslo:when test="contains('jxyz', @code)">
3027
                  <xslo:choose>
3028
                    <xslo:when test="@code = $general_subdivision_subfield">
3029
                      <xslo:text> generalsubdiv </xslo:text>
3030
                    </xslo:when>
3031
                    <xslo:when test="@code = $form_subdivision_subfield">
3032
                      <xslo:text> formsubdiv </xslo:text>
3033
                    </xslo:when>
3034
                    <xslo:when test="@code = $chronological_subdivision_subfield">
3035
                      <xslo:text> chronologicalsubdiv </xslo:text>
3036
                    </xslo:when>
3037
                    <xslo:when test="@code = $geographic_subdivision_subfield">
3038
                      <xslo:text> geographicsubdiv </xslo:text>
3039
                    </xslo:when>
3040
                  </xslo:choose>
3041
                </xslo:when>
3042
                <xslo:otherwise>
3043
                  <xslo:value-of select="substring(' ', 1, 1)"/>
3044
                </xslo:otherwise>
3045
              </xslo:choose>
3046
            </xslo:if>
3047
            <xslo:call-template name="chopPunctuation">
3048
              <xslo:with-param name="chopString">
3049
                <xslo:value-of select="."/>
3050
              </xslo:with-param>
3051
            </xslo:call-template>
3052
          </xslo:if>
3053
        </xslo:for-each>
3054
      </xslo:variable>
3055
      <xslo:value-of select="normalize-space($raw_heading)"/>
3056
    </z:index>
3057
  </xslo:template>
3058
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='580']">
3059
    <z:index name="Match:w Match:p">
3060
      <xslo:variable name="raw_heading">
3061
        <xslo:for-each select="marc:subfield">
3062
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p">
3063
            <xslo:if test="position() &gt; 1">
3064
              <xslo:choose>
3065
                <xslo:when test="contains('jxyz', @code)">
3066
                  <xslo:choose>
3067
                    <xslo:when test="@code = $general_subdivision_subfield">
3068
                      <xslo:text> generalsubdiv </xslo:text>
3069
                    </xslo:when>
3070
                    <xslo:when test="@code = $form_subdivision_subfield">
3071
                      <xslo:text> formsubdiv </xslo:text>
3072
                    </xslo:when>
3073
                    <xslo:when test="@code = $chronological_subdivision_subfield">
3074
                      <xslo:text> chronologicalsubdiv </xslo:text>
3075
                    </xslo:when>
3076
                    <xslo:when test="@code = $geographic_subdivision_subfield">
3077
                      <xslo:text> geographicsubdiv </xslo:text>
3078
                    </xslo:when>
3079
                  </xslo:choose>
3080
                </xslo:when>
3081
                <xslo:otherwise>
3082
                  <xslo:value-of select="substring(' ', 1, 1)"/>
3083
                </xslo:otherwise>
3084
              </xslo:choose>
3085
            </xslo:if>
3086
            <xslo:call-template name="chopPunctuation">
3087
              <xslo:with-param name="chopString">
3088
                <xslo:value-of select="."/>
3089
              </xslo:with-param>
3090
            </xslo:call-template>
3091
          </xslo:if>
3092
        </xslo:for-each>
3093
      </xslo:variable>
3094
      <xslo:value-of select="normalize-space($raw_heading)"/>
3095
    </z:index>
3096
  </xslo:template>
3097
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='780']">
3098
    <z:index name="Match:w Match:p">
3099
      <xslo:variable name="raw_heading">
3100
        <xslo:for-each select="marc:subfield">
3101
          <xslo:if test="contains('ajxyz', @code)" name="Match:w Match:p">
3102
            <xslo:if test="position() &gt; 1">
3103
              <xslo:choose>
3104
                <xslo:when test="contains('jxyz', @code)">
3105
                  <xslo:choose>
3106
                    <xslo:when test="@code = $general_subdivision_subfield">
3107
                      <xslo:text> generalsubdiv </xslo:text>
3108
                    </xslo:when>
3109
                    <xslo:when test="@code = $form_subdivision_subfield">
3110
                      <xslo:text> formsubdiv </xslo:text>
3111
                    </xslo:when>
3112
                    <xslo:when test="@code = $chronological_subdivision_subfield">
3113
                      <xslo:text> chronologicalsubdiv </xslo:text>
3114
                    </xslo:when>
3115
                    <xslo:when test="@code = $geographic_subdivision_subfield">
3116
                      <xslo:text> geographicsubdiv </xslo:text>
3117
                    </xslo:when>
3118
                  </xslo:choose>
3119
                </xslo:when>
3120
                <xslo:otherwise>
3121
                  <xslo:value-of select="substring(' ', 1, 1)"/>
3122
                </xslo:otherwise>
3123
              </xslo:choose>
3124
            </xslo:if>
3125
            <xslo:call-template name="chopPunctuation">
3126
              <xslo:with-param name="chopString">
3127
                <xslo:value-of select="."/>
3128
              </xslo:with-param>
3129
            </xslo:call-template>
3130
          </xslo:if>
3131
        </xslo:for-each>
3132
      </xslo:variable>
3133
      <xslo:value-of select="normalize-space($raw_heading)"/>
3134
    </z:index>
3135
  </xslo:template>
3136
  <xslo:variable name="form_subdivision_subfield">j</xslo:variable>
3137
  <xslo:variable name="general_subdivision_subfield">x</xslo:variable>
3138
  <xslo:variable name="geographic_subdivision_subfield">y</xslo:variable>
3139
  <xslo:variable name="chronological_subdivision_subfield">z</xslo:variable>
649
  <xslo:template mode="index_all" match="text()">
3140
  <xslo:template mode="index_all" match="text()">
650
    <z:index name="Any:w Any:p">
3141
    <z:index name="Any:w Any:p">
651
      <xslo:value-of select="."/>
3142
      <xslo:value-of select="."/>
652
- 

Return to bug 18017