Lines 1101-1110
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1101 |
</z:index> |
1101 |
</z:index> |
1102 |
</xslo:template> |
1102 |
</xslo:template> |
1103 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='100']"> |
1103 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='100']"> |
1104 |
<z:index name="Match-heading:p Match-heading:s"> |
1104 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1105 |
<xslo:variable name="raw_heading"> |
1105 |
<xslo:variable name="raw_heading"> |
1106 |
<xslo:for-each select="marc:subfield"> |
1106 |
<xslo:for-each select="marc:subfield"> |
1107 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match-heading:p Match-heading:s"> |
1107 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1108 |
<xslo:if test="position() > 1"> |
1108 |
<xslo:if test="position() > 1"> |
1109 |
<xslo:choose> |
1109 |
<xslo:choose> |
1110 |
<xslo:when test="contains('vxyz', @code)"> |
1110 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1128-1134
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1128 |
</xslo:otherwise> |
1128 |
</xslo:otherwise> |
1129 |
</xslo:choose> |
1129 |
</xslo:choose> |
1130 |
</xslo:if> |
1130 |
</xslo:if> |
1131 |
<xslo:value-of select="."/> |
1131 |
<xslo:call-template name="chopPunctuation"> |
|
|
1132 |
<xslo:with-param name="chopString"> |
1133 |
<xslo:value-of select="."/> |
1134 |
</xslo:with-param> |
1135 |
</xslo:call-template> |
1132 |
</xslo:if> |
1136 |
</xslo:if> |
1133 |
</xslo:for-each> |
1137 |
</xslo:for-each> |
1134 |
</xslo:variable> |
1138 |
</xslo:variable> |
Lines 1136-1145
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1136 |
</z:index> |
1140 |
</z:index> |
1137 |
</xslo:template> |
1141 |
</xslo:template> |
1138 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='400']"> |
1142 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='400']"> |
1139 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1143 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1140 |
<xslo:variable name="raw_heading"> |
1144 |
<xslo:variable name="raw_heading"> |
1141 |
<xslo:for-each select="marc:subfield"> |
1145 |
<xslo:for-each select="marc:subfield"> |
1142 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1146 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1143 |
<xslo:if test="position() > 1"> |
1147 |
<xslo:if test="position() > 1"> |
1144 |
<xslo:choose> |
1148 |
<xslo:choose> |
1145 |
<xslo:when test="contains('vxyz', @code)"> |
1149 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1163-1169
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1163 |
</xslo:otherwise> |
1167 |
</xslo:otherwise> |
1164 |
</xslo:choose> |
1168 |
</xslo:choose> |
1165 |
</xslo:if> |
1169 |
</xslo:if> |
1166 |
<xslo:value-of select="."/> |
1170 |
<xslo:call-template name="chopPunctuation"> |
|
|
1171 |
<xslo:with-param name="chopString"> |
1172 |
<xslo:value-of select="."/> |
1173 |
</xslo:with-param> |
1174 |
</xslo:call-template> |
1175 |
</xslo:if> |
1176 |
</xslo:for-each> |
1177 |
</xslo:variable> |
1178 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1179 |
</z:index> |
1180 |
</xslo:template> |
1181 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='500']"> |
1182 |
<z:index name="Match:w Match:p"> |
1183 |
<xslo:variable name="raw_heading"> |
1184 |
<xslo:for-each select="marc:subfield"> |
1185 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p"> |
1186 |
<xslo:if test="position() > 1"> |
1187 |
<xslo:choose> |
1188 |
<xslo:when test="contains('vxyz', @code)"> |
1189 |
<xslo:choose> |
1190 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1191 |
<xslo:text> generalsubdiv </xslo:text> |
1192 |
</xslo:when> |
1193 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1194 |
<xslo:text> formsubdiv </xslo:text> |
1195 |
</xslo:when> |
1196 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1197 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1198 |
</xslo:when> |
1199 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1200 |
<xslo:text> geographicsubdiv </xslo:text> |
1201 |
</xslo:when> |
1202 |
</xslo:choose> |
1203 |
</xslo:when> |
1204 |
<xslo:otherwise> |
1205 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1206 |
</xslo:otherwise> |
1207 |
</xslo:choose> |
1208 |
</xslo:if> |
1209 |
<xslo:call-template name="chopPunctuation"> |
1210 |
<xslo:with-param name="chopString"> |
1211 |
<xslo:value-of select="."/> |
1212 |
</xslo:with-param> |
1213 |
</xslo:call-template> |
1167 |
</xslo:if> |
1214 |
</xslo:if> |
1168 |
</xslo:for-each> |
1215 |
</xslo:for-each> |
1169 |
</xslo:variable> |
1216 |
</xslo:variable> |
Lines 1171-1180
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1171 |
</z:index> |
1218 |
</z:index> |
1172 |
</xslo:template> |
1219 |
</xslo:template> |
1173 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='110']"> |
1220 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='110']"> |
1174 |
<z:index name="Match-heading:p Match-heading:s"> |
1221 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1175 |
<xslo:variable name="raw_heading"> |
1222 |
<xslo:variable name="raw_heading"> |
1176 |
<xslo:for-each select="marc:subfield"> |
1223 |
<xslo:for-each select="marc:subfield"> |
1177 |
<xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match-heading:p Match-heading:s"> |
1224 |
<xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1178 |
<xslo:if test="position() > 1"> |
1225 |
<xslo:if test="position() > 1"> |
1179 |
<xslo:choose> |
1226 |
<xslo:choose> |
1180 |
<xslo:when test="contains('vxyz', @code)"> |
1227 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1198-1204
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1198 |
</xslo:otherwise> |
1245 |
</xslo:otherwise> |
1199 |
</xslo:choose> |
1246 |
</xslo:choose> |
1200 |
</xslo:if> |
1247 |
</xslo:if> |
1201 |
<xslo:value-of select="."/> |
1248 |
<xslo:call-template name="chopPunctuation"> |
|
|
1249 |
<xslo:with-param name="chopString"> |
1250 |
<xslo:value-of select="."/> |
1251 |
</xslo:with-param> |
1252 |
</xslo:call-template> |
1202 |
</xslo:if> |
1253 |
</xslo:if> |
1203 |
</xslo:for-each> |
1254 |
</xslo:for-each> |
1204 |
</xslo:variable> |
1255 |
</xslo:variable> |
Lines 1206-1215
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1206 |
</z:index> |
1257 |
</z:index> |
1207 |
</xslo:template> |
1258 |
</xslo:template> |
1208 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='410']"> |
1259 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='410']"> |
1209 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1260 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1210 |
<xslo:variable name="raw_heading"> |
1261 |
<xslo:variable name="raw_heading"> |
1211 |
<xslo:for-each select="marc:subfield"> |
1262 |
<xslo:for-each select="marc:subfield"> |
1212 |
<xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1263 |
<xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1213 |
<xslo:if test="position() > 1"> |
1264 |
<xslo:if test="position() > 1"> |
1214 |
<xslo:choose> |
1265 |
<xslo:choose> |
1215 |
<xslo:when test="contains('vxyz', @code)"> |
1266 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1233-1239
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1233 |
</xslo:otherwise> |
1284 |
</xslo:otherwise> |
1234 |
</xslo:choose> |
1285 |
</xslo:choose> |
1235 |
</xslo:if> |
1286 |
</xslo:if> |
1236 |
<xslo:value-of select="."/> |
1287 |
<xslo:call-template name="chopPunctuation"> |
|
|
1288 |
<xslo:with-param name="chopString"> |
1289 |
<xslo:value-of select="."/> |
1290 |
</xslo:with-param> |
1291 |
</xslo:call-template> |
1292 |
</xslo:if> |
1293 |
</xslo:for-each> |
1294 |
</xslo:variable> |
1295 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1296 |
</z:index> |
1297 |
</xslo:template> |
1298 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='510']"> |
1299 |
<z:index name="Match:w Match:p"> |
1300 |
<xslo:variable name="raw_heading"> |
1301 |
<xslo:for-each select="marc:subfield"> |
1302 |
<xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p"> |
1303 |
<xslo:if test="position() > 1"> |
1304 |
<xslo:choose> |
1305 |
<xslo:when test="contains('vxyz', @code)"> |
1306 |
<xslo:choose> |
1307 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1308 |
<xslo:text> generalsubdiv </xslo:text> |
1309 |
</xslo:when> |
1310 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1311 |
<xslo:text> formsubdiv </xslo:text> |
1312 |
</xslo:when> |
1313 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1314 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1315 |
</xslo:when> |
1316 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1317 |
<xslo:text> geographicsubdiv </xslo:text> |
1318 |
</xslo:when> |
1319 |
</xslo:choose> |
1320 |
</xslo:when> |
1321 |
<xslo:otherwise> |
1322 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1323 |
</xslo:otherwise> |
1324 |
</xslo:choose> |
1325 |
</xslo:if> |
1326 |
<xslo:call-template name="chopPunctuation"> |
1327 |
<xslo:with-param name="chopString"> |
1328 |
<xslo:value-of select="."/> |
1329 |
</xslo:with-param> |
1330 |
</xslo:call-template> |
1237 |
</xslo:if> |
1331 |
</xslo:if> |
1238 |
</xslo:for-each> |
1332 |
</xslo:for-each> |
1239 |
</xslo:variable> |
1333 |
</xslo:variable> |
Lines 1241-1250
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1241 |
</z:index> |
1335 |
</z:index> |
1242 |
</xslo:template> |
1336 |
</xslo:template> |
1243 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='111']"> |
1337 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='111']"> |
1244 |
<z:index name="Match-heading:p Match-heading:s"> |
1338 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1245 |
<xslo:variable name="raw_heading"> |
1339 |
<xslo:variable name="raw_heading"> |
1246 |
<xslo:for-each select="marc:subfield"> |
1340 |
<xslo:for-each select="marc:subfield"> |
1247 |
<xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match-heading:p Match-heading:s"> |
1341 |
<xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1248 |
<xslo:if test="position() > 1"> |
1342 |
<xslo:if test="position() > 1"> |
1249 |
<xslo:choose> |
1343 |
<xslo:choose> |
1250 |
<xslo:when test="contains('vxyz', @code)"> |
1344 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1268-1274
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1268 |
</xslo:otherwise> |
1362 |
</xslo:otherwise> |
1269 |
</xslo:choose> |
1363 |
</xslo:choose> |
1270 |
</xslo:if> |
1364 |
</xslo:if> |
1271 |
<xslo:value-of select="."/> |
1365 |
<xslo:call-template name="chopPunctuation"> |
|
|
1366 |
<xslo:with-param name="chopString"> |
1367 |
<xslo:value-of select="."/> |
1368 |
</xslo:with-param> |
1369 |
</xslo:call-template> |
1272 |
</xslo:if> |
1370 |
</xslo:if> |
1273 |
</xslo:for-each> |
1371 |
</xslo:for-each> |
1274 |
</xslo:variable> |
1372 |
</xslo:variable> |
Lines 1276-1285
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1276 |
</z:index> |
1374 |
</z:index> |
1277 |
</xslo:template> |
1375 |
</xslo:template> |
1278 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='411']"> |
1376 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='411']"> |
1279 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1377 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1280 |
<xslo:variable name="raw_heading"> |
1378 |
<xslo:variable name="raw_heading"> |
1281 |
<xslo:for-each select="marc:subfield"> |
1379 |
<xslo:for-each select="marc:subfield"> |
1282 |
<xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1380 |
<xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1283 |
<xslo:if test="position() > 1"> |
1381 |
<xslo:if test="position() > 1"> |
1284 |
<xslo:choose> |
1382 |
<xslo:choose> |
1285 |
<xslo:when test="contains('vxyz', @code)"> |
1383 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1303-1309
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1303 |
</xslo:otherwise> |
1401 |
</xslo:otherwise> |
1304 |
</xslo:choose> |
1402 |
</xslo:choose> |
1305 |
</xslo:if> |
1403 |
</xslo:if> |
1306 |
<xslo:value-of select="."/> |
1404 |
<xslo:call-template name="chopPunctuation"> |
|
|
1405 |
<xslo:with-param name="chopString"> |
1406 |
<xslo:value-of select="."/> |
1407 |
</xslo:with-param> |
1408 |
</xslo:call-template> |
1409 |
</xslo:if> |
1410 |
</xslo:for-each> |
1411 |
</xslo:variable> |
1412 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1413 |
</z:index> |
1414 |
</xslo:template> |
1415 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='511']"> |
1416 |
<z:index name="Match:w Match:p"> |
1417 |
<xslo:variable name="raw_heading"> |
1418 |
<xslo:for-each select="marc:subfield"> |
1419 |
<xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p"> |
1420 |
<xslo:if test="position() > 1"> |
1421 |
<xslo:choose> |
1422 |
<xslo:when test="contains('vxyz', @code)"> |
1423 |
<xslo:choose> |
1424 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1425 |
<xslo:text> generalsubdiv </xslo:text> |
1426 |
</xslo:when> |
1427 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1428 |
<xslo:text> formsubdiv </xslo:text> |
1429 |
</xslo:when> |
1430 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1431 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1432 |
</xslo:when> |
1433 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1434 |
<xslo:text> geographicsubdiv </xslo:text> |
1435 |
</xslo:when> |
1436 |
</xslo:choose> |
1437 |
</xslo:when> |
1438 |
<xslo:otherwise> |
1439 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1440 |
</xslo:otherwise> |
1441 |
</xslo:choose> |
1442 |
</xslo:if> |
1443 |
<xslo:call-template name="chopPunctuation"> |
1444 |
<xslo:with-param name="chopString"> |
1445 |
<xslo:value-of select="."/> |
1446 |
</xslo:with-param> |
1447 |
</xslo:call-template> |
1307 |
</xslo:if> |
1448 |
</xslo:if> |
1308 |
</xslo:for-each> |
1449 |
</xslo:for-each> |
1309 |
</xslo:variable> |
1450 |
</xslo:variable> |
Lines 1311-1320
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1311 |
</z:index> |
1452 |
</z:index> |
1312 |
</xslo:template> |
1453 |
</xslo:template> |
1313 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='130']"> |
1454 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='130']"> |
1314 |
<z:index name="Match-heading:p Match-heading:s"> |
1455 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1315 |
<xslo:variable name="raw_heading"> |
1456 |
<xslo:variable name="raw_heading"> |
1316 |
<xslo:for-each select="marc:subfield"> |
1457 |
<xslo:for-each select="marc:subfield"> |
1317 |
<xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match-heading:p Match-heading:s"> |
1458 |
<xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1318 |
<xslo:if test="position() > 1"> |
1459 |
<xslo:if test="position() > 1"> |
1319 |
<xslo:choose> |
1460 |
<xslo:choose> |
1320 |
<xslo:when test="contains('vxyz', @code)"> |
1461 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1338-1344
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1338 |
</xslo:otherwise> |
1479 |
</xslo:otherwise> |
1339 |
</xslo:choose> |
1480 |
</xslo:choose> |
1340 |
</xslo:if> |
1481 |
</xslo:if> |
1341 |
<xslo:value-of select="."/> |
1482 |
<xslo:call-template name="chopPunctuation"> |
|
|
1483 |
<xslo:with-param name="chopString"> |
1484 |
<xslo:value-of select="."/> |
1485 |
</xslo:with-param> |
1486 |
</xslo:call-template> |
1342 |
</xslo:if> |
1487 |
</xslo:if> |
1343 |
</xslo:for-each> |
1488 |
</xslo:for-each> |
1344 |
</xslo:variable> |
1489 |
</xslo:variable> |
Lines 1346-1355
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1346 |
</z:index> |
1491 |
</z:index> |
1347 |
</xslo:template> |
1492 |
</xslo:template> |
1348 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='430']"> |
1493 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='430']"> |
1349 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1494 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1350 |
<xslo:variable name="raw_heading"> |
1495 |
<xslo:variable name="raw_heading"> |
1351 |
<xslo:for-each select="marc:subfield"> |
1496 |
<xslo:for-each select="marc:subfield"> |
1352 |
<xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1497 |
<xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1353 |
<xslo:if test="position() > 1"> |
1498 |
<xslo:if test="position() > 1"> |
1354 |
<xslo:choose> |
1499 |
<xslo:choose> |
1355 |
<xslo:when test="contains('vxyz', @code)"> |
1500 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1373-1379
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1373 |
</xslo:otherwise> |
1518 |
</xslo:otherwise> |
1374 |
</xslo:choose> |
1519 |
</xslo:choose> |
1375 |
</xslo:if> |
1520 |
</xslo:if> |
1376 |
<xslo:value-of select="."/> |
1521 |
<xslo:call-template name="chopPunctuation"> |
|
|
1522 |
<xslo:with-param name="chopString"> |
1523 |
<xslo:value-of select="."/> |
1524 |
</xslo:with-param> |
1525 |
</xslo:call-template> |
1526 |
</xslo:if> |
1527 |
</xslo:for-each> |
1528 |
</xslo:variable> |
1529 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1530 |
</z:index> |
1531 |
</xslo:template> |
1532 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='530']"> |
1533 |
<z:index name="Match:w Match:p"> |
1534 |
<xslo:variable name="raw_heading"> |
1535 |
<xslo:for-each select="marc:subfield"> |
1536 |
<xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p"> |
1537 |
<xslo:if test="position() > 1"> |
1538 |
<xslo:choose> |
1539 |
<xslo:when test="contains('vxyz', @code)"> |
1540 |
<xslo:choose> |
1541 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1542 |
<xslo:text> generalsubdiv </xslo:text> |
1543 |
</xslo:when> |
1544 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1545 |
<xslo:text> formsubdiv </xslo:text> |
1546 |
</xslo:when> |
1547 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1548 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1549 |
</xslo:when> |
1550 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1551 |
<xslo:text> geographicsubdiv </xslo:text> |
1552 |
</xslo:when> |
1553 |
</xslo:choose> |
1554 |
</xslo:when> |
1555 |
<xslo:otherwise> |
1556 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1557 |
</xslo:otherwise> |
1558 |
</xslo:choose> |
1559 |
</xslo:if> |
1560 |
<xslo:call-template name="chopPunctuation"> |
1561 |
<xslo:with-param name="chopString"> |
1562 |
<xslo:value-of select="."/> |
1563 |
</xslo:with-param> |
1564 |
</xslo:call-template> |
1377 |
</xslo:if> |
1565 |
</xslo:if> |
1378 |
</xslo:for-each> |
1566 |
</xslo:for-each> |
1379 |
</xslo:variable> |
1567 |
</xslo:variable> |
Lines 1381-1390
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1381 |
</z:index> |
1569 |
</z:index> |
1382 |
</xslo:template> |
1570 |
</xslo:template> |
1383 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='148']"> |
1571 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='148']"> |
1384 |
<z:index name="Match-heading:p Match-heading:s"> |
1572 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1385 |
<xslo:variable name="raw_heading"> |
1573 |
<xslo:variable name="raw_heading"> |
1386 |
<xslo:for-each select="marc:subfield"> |
1574 |
<xslo:for-each select="marc:subfield"> |
1387 |
<xslo:if test="contains('avxyz', @code)" name="Match-heading:p Match-heading:s"> |
1575 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1388 |
<xslo:if test="position() > 1"> |
1576 |
<xslo:if test="position() > 1"> |
1389 |
<xslo:choose> |
1577 |
<xslo:choose> |
1390 |
<xslo:when test="contains('vxyz', @code)"> |
1578 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1408-1414
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1408 |
</xslo:otherwise> |
1596 |
</xslo:otherwise> |
1409 |
</xslo:choose> |
1597 |
</xslo:choose> |
1410 |
</xslo:if> |
1598 |
</xslo:if> |
1411 |
<xslo:value-of select="."/> |
1599 |
<xslo:call-template name="chopPunctuation"> |
|
|
1600 |
<xslo:with-param name="chopString"> |
1601 |
<xslo:value-of select="."/> |
1602 |
</xslo:with-param> |
1603 |
</xslo:call-template> |
1412 |
</xslo:if> |
1604 |
</xslo:if> |
1413 |
</xslo:for-each> |
1605 |
</xslo:for-each> |
1414 |
</xslo:variable> |
1606 |
</xslo:variable> |
Lines 1416-1425
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1416 |
</z:index> |
1608 |
</z:index> |
1417 |
</xslo:template> |
1609 |
</xslo:template> |
1418 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='448']"> |
1610 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='448']"> |
1419 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1611 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1420 |
<xslo:variable name="raw_heading"> |
1612 |
<xslo:variable name="raw_heading"> |
1421 |
<xslo:for-each select="marc:subfield"> |
1613 |
<xslo:for-each select="marc:subfield"> |
1422 |
<xslo:if test="contains('avxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1614 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1423 |
<xslo:if test="position() > 1"> |
1615 |
<xslo:if test="position() > 1"> |
1424 |
<xslo:choose> |
1616 |
<xslo:choose> |
1425 |
<xslo:when test="contains('vxyz', @code)"> |
1617 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1443-1449
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1443 |
</xslo:otherwise> |
1635 |
</xslo:otherwise> |
1444 |
</xslo:choose> |
1636 |
</xslo:choose> |
1445 |
</xslo:if> |
1637 |
</xslo:if> |
1446 |
<xslo:value-of select="."/> |
1638 |
<xslo:call-template name="chopPunctuation"> |
|
|
1639 |
<xslo:with-param name="chopString"> |
1640 |
<xslo:value-of select="."/> |
1641 |
</xslo:with-param> |
1642 |
</xslo:call-template> |
1643 |
</xslo:if> |
1644 |
</xslo:for-each> |
1645 |
</xslo:variable> |
1646 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1647 |
</z:index> |
1648 |
</xslo:template> |
1649 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='548']"> |
1650 |
<z:index name="Match:w Match:p"> |
1651 |
<xslo:variable name="raw_heading"> |
1652 |
<xslo:for-each select="marc:subfield"> |
1653 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p"> |
1654 |
<xslo:if test="position() > 1"> |
1655 |
<xslo:choose> |
1656 |
<xslo:when test="contains('vxyz', @code)"> |
1657 |
<xslo:choose> |
1658 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1659 |
<xslo:text> generalsubdiv </xslo:text> |
1660 |
</xslo:when> |
1661 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1662 |
<xslo:text> formsubdiv </xslo:text> |
1663 |
</xslo:when> |
1664 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1665 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1666 |
</xslo:when> |
1667 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1668 |
<xslo:text> geographicsubdiv </xslo:text> |
1669 |
</xslo:when> |
1670 |
</xslo:choose> |
1671 |
</xslo:when> |
1672 |
<xslo:otherwise> |
1673 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1674 |
</xslo:otherwise> |
1675 |
</xslo:choose> |
1676 |
</xslo:if> |
1677 |
<xslo:call-template name="chopPunctuation"> |
1678 |
<xslo:with-param name="chopString"> |
1679 |
<xslo:value-of select="."/> |
1680 |
</xslo:with-param> |
1681 |
</xslo:call-template> |
1447 |
</xslo:if> |
1682 |
</xslo:if> |
1448 |
</xslo:for-each> |
1683 |
</xslo:for-each> |
1449 |
</xslo:variable> |
1684 |
</xslo:variable> |
Lines 1451-1460
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1451 |
</z:index> |
1686 |
</z:index> |
1452 |
</xslo:template> |
1687 |
</xslo:template> |
1453 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='150']"> |
1688 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='150']"> |
1454 |
<z:index name="Match-heading:p Match-heading:s"> |
1689 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1455 |
<xslo:variable name="raw_heading"> |
1690 |
<xslo:variable name="raw_heading"> |
1456 |
<xslo:for-each select="marc:subfield"> |
1691 |
<xslo:for-each select="marc:subfield"> |
1457 |
<xslo:if test="contains('abvxyz', @code)" name="Match-heading:p Match-heading:s"> |
1692 |
<xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1458 |
<xslo:if test="position() > 1"> |
1693 |
<xslo:if test="position() > 1"> |
1459 |
<xslo:choose> |
1694 |
<xslo:choose> |
1460 |
<xslo:when test="contains('vxyz', @code)"> |
1695 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1478-1484
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1478 |
</xslo:otherwise> |
1713 |
</xslo:otherwise> |
1479 |
</xslo:choose> |
1714 |
</xslo:choose> |
1480 |
</xslo:if> |
1715 |
</xslo:if> |
1481 |
<xslo:value-of select="."/> |
1716 |
<xslo:call-template name="chopPunctuation"> |
|
|
1717 |
<xslo:with-param name="chopString"> |
1718 |
<xslo:value-of select="."/> |
1719 |
</xslo:with-param> |
1720 |
</xslo:call-template> |
1482 |
</xslo:if> |
1721 |
</xslo:if> |
1483 |
</xslo:for-each> |
1722 |
</xslo:for-each> |
1484 |
</xslo:variable> |
1723 |
</xslo:variable> |
Lines 1486-1495
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1486 |
</z:index> |
1725 |
</z:index> |
1487 |
</xslo:template> |
1726 |
</xslo:template> |
1488 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='450']"> |
1727 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='450']"> |
1489 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1728 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1490 |
<xslo:variable name="raw_heading"> |
1729 |
<xslo:variable name="raw_heading"> |
1491 |
<xslo:for-each select="marc:subfield"> |
1730 |
<xslo:for-each select="marc:subfield"> |
1492 |
<xslo:if test="contains('abvxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1731 |
<xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1493 |
<xslo:if test="position() > 1"> |
1732 |
<xslo:if test="position() > 1"> |
1494 |
<xslo:choose> |
1733 |
<xslo:choose> |
1495 |
<xslo:when test="contains('vxyz', @code)"> |
1734 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1513-1519
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1513 |
</xslo:otherwise> |
1752 |
</xslo:otherwise> |
1514 |
</xslo:choose> |
1753 |
</xslo:choose> |
1515 |
</xslo:if> |
1754 |
</xslo:if> |
1516 |
<xslo:value-of select="."/> |
1755 |
<xslo:call-template name="chopPunctuation"> |
|
|
1756 |
<xslo:with-param name="chopString"> |
1757 |
<xslo:value-of select="."/> |
1758 |
</xslo:with-param> |
1759 |
</xslo:call-template> |
1760 |
</xslo:if> |
1761 |
</xslo:for-each> |
1762 |
</xslo:variable> |
1763 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1764 |
</z:index> |
1765 |
</xslo:template> |
1766 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='550']"> |
1767 |
<z:index name="Match:w Match:p"> |
1768 |
<xslo:variable name="raw_heading"> |
1769 |
<xslo:for-each select="marc:subfield"> |
1770 |
<xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p"> |
1771 |
<xslo:if test="position() > 1"> |
1772 |
<xslo:choose> |
1773 |
<xslo:when test="contains('vxyz', @code)"> |
1774 |
<xslo:choose> |
1775 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1776 |
<xslo:text> generalsubdiv </xslo:text> |
1777 |
</xslo:when> |
1778 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1779 |
<xslo:text> formsubdiv </xslo:text> |
1780 |
</xslo:when> |
1781 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1782 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1783 |
</xslo:when> |
1784 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1785 |
<xslo:text> geographicsubdiv </xslo:text> |
1786 |
</xslo:when> |
1787 |
</xslo:choose> |
1788 |
</xslo:when> |
1789 |
<xslo:otherwise> |
1790 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1791 |
</xslo:otherwise> |
1792 |
</xslo:choose> |
1793 |
</xslo:if> |
1794 |
<xslo:call-template name="chopPunctuation"> |
1795 |
<xslo:with-param name="chopString"> |
1796 |
<xslo:value-of select="."/> |
1797 |
</xslo:with-param> |
1798 |
</xslo:call-template> |
1517 |
</xslo:if> |
1799 |
</xslo:if> |
1518 |
</xslo:for-each> |
1800 |
</xslo:for-each> |
1519 |
</xslo:variable> |
1801 |
</xslo:variable> |
Lines 1521-1530
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1521 |
</z:index> |
1803 |
</z:index> |
1522 |
</xslo:template> |
1804 |
</xslo:template> |
1523 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='151']"> |
1805 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='151']"> |
1524 |
<z:index name="Match-heading:p Match-heading:s"> |
1806 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1525 |
<xslo:variable name="raw_heading"> |
1807 |
<xslo:variable name="raw_heading"> |
1526 |
<xslo:for-each select="marc:subfield"> |
1808 |
<xslo:for-each select="marc:subfield"> |
1527 |
<xslo:if test="contains('avxyz', @code)" name="Match-heading:p Match-heading:s"> |
1809 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1528 |
<xslo:if test="position() > 1"> |
1810 |
<xslo:if test="position() > 1"> |
1529 |
<xslo:choose> |
1811 |
<xslo:choose> |
1530 |
<xslo:when test="contains('vxyz', @code)"> |
1812 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1548-1554
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1548 |
</xslo:otherwise> |
1830 |
</xslo:otherwise> |
1549 |
</xslo:choose> |
1831 |
</xslo:choose> |
1550 |
</xslo:if> |
1832 |
</xslo:if> |
1551 |
<xslo:value-of select="."/> |
1833 |
<xslo:call-template name="chopPunctuation"> |
|
|
1834 |
<xslo:with-param name="chopString"> |
1835 |
<xslo:value-of select="."/> |
1836 |
</xslo:with-param> |
1837 |
</xslo:call-template> |
1552 |
</xslo:if> |
1838 |
</xslo:if> |
1553 |
</xslo:for-each> |
1839 |
</xslo:for-each> |
1554 |
</xslo:variable> |
1840 |
</xslo:variable> |
Lines 1556-1565
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1556 |
</z:index> |
1842 |
</z:index> |
1557 |
</xslo:template> |
1843 |
</xslo:template> |
1558 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='451']"> |
1844 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='451']"> |
1559 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1845 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1560 |
<xslo:variable name="raw_heading"> |
1846 |
<xslo:variable name="raw_heading"> |
1561 |
<xslo:for-each select="marc:subfield"> |
1847 |
<xslo:for-each select="marc:subfield"> |
1562 |
<xslo:if test="contains('avxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1848 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1563 |
<xslo:if test="position() > 1"> |
1849 |
<xslo:if test="position() > 1"> |
1564 |
<xslo:choose> |
1850 |
<xslo:choose> |
1565 |
<xslo:when test="contains('vxyz', @code)"> |
1851 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1583-1589
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1583 |
</xslo:otherwise> |
1869 |
</xslo:otherwise> |
1584 |
</xslo:choose> |
1870 |
</xslo:choose> |
1585 |
</xslo:if> |
1871 |
</xslo:if> |
1586 |
<xslo:value-of select="."/> |
1872 |
<xslo:call-template name="chopPunctuation"> |
|
|
1873 |
<xslo:with-param name="chopString"> |
1874 |
<xslo:value-of select="."/> |
1875 |
</xslo:with-param> |
1876 |
</xslo:call-template> |
1877 |
</xslo:if> |
1878 |
</xslo:for-each> |
1879 |
</xslo:variable> |
1880 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1881 |
</z:index> |
1882 |
</xslo:template> |
1883 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='551']"> |
1884 |
<z:index name="Match:w Match:p"> |
1885 |
<xslo:variable name="raw_heading"> |
1886 |
<xslo:for-each select="marc:subfield"> |
1887 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p"> |
1888 |
<xslo:if test="position() > 1"> |
1889 |
<xslo:choose> |
1890 |
<xslo:when test="contains('vxyz', @code)"> |
1891 |
<xslo:choose> |
1892 |
<xslo:when test="@code = $general_subdivision_subfield"> |
1893 |
<xslo:text> generalsubdiv </xslo:text> |
1894 |
</xslo:when> |
1895 |
<xslo:when test="@code = $form_subdivision_subfield"> |
1896 |
<xslo:text> formsubdiv </xslo:text> |
1897 |
</xslo:when> |
1898 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
1899 |
<xslo:text> chronologicalsubdiv </xslo:text> |
1900 |
</xslo:when> |
1901 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
1902 |
<xslo:text> geographicsubdiv </xslo:text> |
1903 |
</xslo:when> |
1904 |
</xslo:choose> |
1905 |
</xslo:when> |
1906 |
<xslo:otherwise> |
1907 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1908 |
</xslo:otherwise> |
1909 |
</xslo:choose> |
1910 |
</xslo:if> |
1911 |
<xslo:call-template name="chopPunctuation"> |
1912 |
<xslo:with-param name="chopString"> |
1913 |
<xslo:value-of select="."/> |
1914 |
</xslo:with-param> |
1915 |
</xslo:call-template> |
1587 |
</xslo:if> |
1916 |
</xslo:if> |
1588 |
</xslo:for-each> |
1917 |
</xslo:for-each> |
1589 |
</xslo:variable> |
1918 |
</xslo:variable> |
Lines 1591-1600
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1591 |
</z:index> |
1920 |
</z:index> |
1592 |
</xslo:template> |
1921 |
</xslo:template> |
1593 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='155']"> |
1922 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='155']"> |
1594 |
<z:index name="Match-heading:p Match-heading:s"> |
1923 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1595 |
<xslo:variable name="raw_heading"> |
1924 |
<xslo:variable name="raw_heading"> |
1596 |
<xslo:for-each select="marc:subfield"> |
1925 |
<xslo:for-each select="marc:subfield"> |
1597 |
<xslo:if test="contains('avxyz', @code)" name="Match-heading:p Match-heading:s"> |
1926 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s"> |
1598 |
<xslo:if test="position() > 1"> |
1927 |
<xslo:if test="position() > 1"> |
1599 |
<xslo:choose> |
1928 |
<xslo:choose> |
1600 |
<xslo:when test="contains('vxyz', @code)"> |
1929 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1618-1624
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1618 |
</xslo:otherwise> |
1947 |
</xslo:otherwise> |
1619 |
</xslo:choose> |
1948 |
</xslo:choose> |
1620 |
</xslo:if> |
1949 |
</xslo:if> |
1621 |
<xslo:value-of select="."/> |
1950 |
<xslo:call-template name="chopPunctuation"> |
|
|
1951 |
<xslo:with-param name="chopString"> |
1952 |
<xslo:value-of select="."/> |
1953 |
</xslo:with-param> |
1954 |
</xslo:call-template> |
1622 |
</xslo:if> |
1955 |
</xslo:if> |
1623 |
</xslo:for-each> |
1956 |
</xslo:for-each> |
1624 |
</xslo:variable> |
1957 |
</xslo:variable> |
Lines 1626-1635
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1626 |
</z:index> |
1959 |
</z:index> |
1627 |
</xslo:template> |
1960 |
</xslo:template> |
1628 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='455']"> |
1961 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='455']"> |
1629 |
<z:index name="Match-heading-see-from:p Match-heading-see-from:s"> |
1962 |
<z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1630 |
<xslo:variable name="raw_heading"> |
1963 |
<xslo:variable name="raw_heading"> |
1631 |
<xslo:for-each select="marc:subfield"> |
1964 |
<xslo:for-each select="marc:subfield"> |
1632 |
<xslo:if test="contains('avxyz', @code)" name="Match-heading-see-from:p Match-heading-see-from:s"> |
1965 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s"> |
1633 |
<xslo:if test="position() > 1"> |
1966 |
<xslo:if test="position() > 1"> |
1634 |
<xslo:choose> |
1967 |
<xslo:choose> |
1635 |
<xslo:when test="contains('vxyz', @code)"> |
1968 |
<xslo:when test="contains('vxyz', @code)"> |
Lines 1653-1659
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1653 |
</xslo:otherwise> |
1986 |
</xslo:otherwise> |
1654 |
</xslo:choose> |
1987 |
</xslo:choose> |
1655 |
</xslo:if> |
1988 |
</xslo:if> |
1656 |
<xslo:value-of select="."/> |
1989 |
<xslo:call-template name="chopPunctuation"> |
|
|
1990 |
<xslo:with-param name="chopString"> |
1991 |
<xslo:value-of select="."/> |
1992 |
</xslo:with-param> |
1993 |
</xslo:call-template> |
1994 |
</xslo:if> |
1995 |
</xslo:for-each> |
1996 |
</xslo:variable> |
1997 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1998 |
</z:index> |
1999 |
</xslo:template> |
2000 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='555']"> |
2001 |
<z:index name="Match:w Match:p"> |
2002 |
<xslo:variable name="raw_heading"> |
2003 |
<xslo:for-each select="marc:subfield"> |
2004 |
<xslo:if test="contains('avxyz', @code)" name="Match:w Match:p"> |
2005 |
<xslo:if test="position() > 1"> |
2006 |
<xslo:choose> |
2007 |
<xslo:when test="contains('vxyz', @code)"> |
2008 |
<xslo:choose> |
2009 |
<xslo:when test="@code = $general_subdivision_subfield"> |
2010 |
<xslo:text> generalsubdiv </xslo:text> |
2011 |
</xslo:when> |
2012 |
<xslo:when test="@code = $form_subdivision_subfield"> |
2013 |
<xslo:text> formsubdiv </xslo:text> |
2014 |
</xslo:when> |
2015 |
<xslo:when test="@code = $chronological_subdivision_subfield"> |
2016 |
<xslo:text> chronologicalsubdiv </xslo:text> |
2017 |
</xslo:when> |
2018 |
<xslo:when test="@code = $geographic_subdivision_subfield"> |
2019 |
<xslo:text> geographicsubdiv </xslo:text> |
2020 |
</xslo:when> |
2021 |
</xslo:choose> |
2022 |
</xslo:when> |
2023 |
<xslo:otherwise> |
2024 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
2025 |
</xslo:otherwise> |
2026 |
</xslo:choose> |
2027 |
</xslo:if> |
2028 |
<xslo:call-template name="chopPunctuation"> |
2029 |
<xslo:with-param name="chopString"> |
2030 |
<xslo:value-of select="."/> |
2031 |
</xslo:with-param> |
2032 |
</xslo:call-template> |
1657 |
</xslo:if> |
2033 |
</xslo:if> |
1658 |
</xslo:for-each> |
2034 |
</xslo:for-each> |
1659 |
</xslo:variable> |
2035 |
</xslo:variable> |
Lines 1688-1694
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1688 |
</xslo:otherwise> |
2064 |
</xslo:otherwise> |
1689 |
</xslo:choose> |
2065 |
</xslo:choose> |
1690 |
</xslo:if> |
2066 |
</xslo:if> |
1691 |
<xslo:value-of select="."/> |
2067 |
<xslo:call-template name="chopPunctuation"> |
|
|
2068 |
<xslo:with-param name="chopString"> |
2069 |
<xslo:value-of select="."/> |
2070 |
</xslo:with-param> |
2071 |
</xslo:call-template> |
1692 |
</xslo:if> |
2072 |
</xslo:if> |
1693 |
</xslo:for-each> |
2073 |
</xslo:for-each> |
1694 |
</xslo:variable> |
2074 |
</xslo:variable> |
Lines 1723-1729
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1723 |
</xslo:otherwise> |
2103 |
</xslo:otherwise> |
1724 |
</xslo:choose> |
2104 |
</xslo:choose> |
1725 |
</xslo:if> |
2105 |
</xslo:if> |
1726 |
<xslo:value-of select="."/> |
2106 |
<xslo:call-template name="chopPunctuation"> |
|
|
2107 |
<xslo:with-param name="chopString"> |
2108 |
<xslo:value-of select="."/> |
2109 |
</xslo:with-param> |
2110 |
</xslo:call-template> |
1727 |
</xslo:if> |
2111 |
</xslo:if> |
1728 |
</xslo:for-each> |
2112 |
</xslo:for-each> |
1729 |
</xslo:variable> |
2113 |
</xslo:variable> |
Lines 1758-1764
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1758 |
</xslo:otherwise> |
2142 |
</xslo:otherwise> |
1759 |
</xslo:choose> |
2143 |
</xslo:choose> |
1760 |
</xslo:if> |
2144 |
</xslo:if> |
1761 |
<xslo:value-of select="."/> |
2145 |
<xslo:call-template name="chopPunctuation"> |
|
|
2146 |
<xslo:with-param name="chopString"> |
2147 |
<xslo:value-of select="."/> |
2148 |
</xslo:with-param> |
2149 |
</xslo:call-template> |
1762 |
</xslo:if> |
2150 |
</xslo:if> |
1763 |
</xslo:for-each> |
2151 |
</xslo:for-each> |
1764 |
</xslo:variable> |
2152 |
</xslo:variable> |
Lines 1793-1799
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1793 |
</xslo:otherwise> |
2181 |
</xslo:otherwise> |
1794 |
</xslo:choose> |
2182 |
</xslo:choose> |
1795 |
</xslo:if> |
2183 |
</xslo:if> |
1796 |
<xslo:value-of select="."/> |
2184 |
<xslo:call-template name="chopPunctuation"> |
|
|
2185 |
<xslo:with-param name="chopString"> |
2186 |
<xslo:value-of select="."/> |
2187 |
</xslo:with-param> |
2188 |
</xslo:call-template> |
1797 |
</xslo:if> |
2189 |
</xslo:if> |
1798 |
</xslo:for-each> |
2190 |
</xslo:for-each> |
1799 |
</xslo:variable> |
2191 |
</xslo:variable> |
Lines 1828-1834
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1828 |
</xslo:otherwise> |
2220 |
</xslo:otherwise> |
1829 |
</xslo:choose> |
2221 |
</xslo:choose> |
1830 |
</xslo:if> |
2222 |
</xslo:if> |
1831 |
<xslo:value-of select="."/> |
2223 |
<xslo:call-template name="chopPunctuation"> |
|
|
2224 |
<xslo:with-param name="chopString"> |
2225 |
<xslo:value-of select="."/> |
2226 |
</xslo:with-param> |
2227 |
</xslo:call-template> |
1832 |
</xslo:if> |
2228 |
</xslo:if> |
1833 |
</xslo:for-each> |
2229 |
</xslo:for-each> |
1834 |
</xslo:variable> |
2230 |
</xslo:variable> |
Lines 1863-1869
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1863 |
</xslo:otherwise> |
2259 |
</xslo:otherwise> |
1864 |
</xslo:choose> |
2260 |
</xslo:choose> |
1865 |
</xslo:if> |
2261 |
</xslo:if> |
1866 |
<xslo:value-of select="."/> |
2262 |
<xslo:call-template name="chopPunctuation"> |
|
|
2263 |
<xslo:with-param name="chopString"> |
2264 |
<xslo:value-of select="."/> |
2265 |
</xslo:with-param> |
2266 |
</xslo:call-template> |
1867 |
</xslo:if> |
2267 |
</xslo:if> |
1868 |
</xslo:for-each> |
2268 |
</xslo:for-each> |
1869 |
</xslo:variable> |
2269 |
</xslo:variable> |
Lines 1898-1904
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1898 |
</xslo:otherwise> |
2298 |
</xslo:otherwise> |
1899 |
</xslo:choose> |
2299 |
</xslo:choose> |
1900 |
</xslo:if> |
2300 |
</xslo:if> |
1901 |
<xslo:value-of select="."/> |
2301 |
<xslo:call-template name="chopPunctuation"> |
|
|
2302 |
<xslo:with-param name="chopString"> |
2303 |
<xslo:value-of select="."/> |
2304 |
</xslo:with-param> |
2305 |
</xslo:call-template> |
1902 |
</xslo:if> |
2306 |
</xslo:if> |
1903 |
</xslo:for-each> |
2307 |
</xslo:for-each> |
1904 |
</xslo:variable> |
2308 |
</xslo:variable> |
Lines 1933-1939
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1933 |
</xslo:otherwise> |
2337 |
</xslo:otherwise> |
1934 |
</xslo:choose> |
2338 |
</xslo:choose> |
1935 |
</xslo:if> |
2339 |
</xslo:if> |
1936 |
<xslo:value-of select="."/> |
2340 |
<xslo:call-template name="chopPunctuation"> |
|
|
2341 |
<xslo:with-param name="chopString"> |
2342 |
<xslo:value-of select="."/> |
2343 |
</xslo:with-param> |
2344 |
</xslo:call-template> |
1937 |
</xslo:if> |
2345 |
</xslo:if> |
1938 |
</xslo:for-each> |
2346 |
</xslo:for-each> |
1939 |
</xslo:variable> |
2347 |
</xslo:variable> |
Lines 1999-2002
authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
Link Here
|
1999 |
<xslo:value-of select="."/> |
2407 |
<xslo:value-of select="."/> |
2000 |
</z:index> |
2408 |
</z:index> |
2001 |
</xslo:template> |
2409 |
</xslo:template> |
|
|
2410 |
<xslo:template name="chopPunctuation"> |
2411 |
<xslo:param name="chopString"/> |
2412 |
<xslo:variable name="length" select="string-length($chopString)"/> |
2413 |
<xslo:choose> |
2414 |
<xslo:when test="$length=0"/> |
2415 |
<xslo:when test="contains('-,.:=;!%/', substring($chopString,$length,1))"> |
2416 |
<xslo:call-template name="chopPunctuation"> |
2417 |
<xslo:with-param name="chopString" select="substring($chopString,1,$length - 1)"/> |
2418 |
</xslo:call-template> |
2419 |
</xslo:when> |
2420 |
<xslo:when test="not($chopString)"/> |
2421 |
<xslo:otherwise> |
2422 |
<xslo:value-of select="$chopString"/> |
2423 |
</xslo:otherwise> |
2424 |
</xslo:choose> |
2425 |
<xslo:text/> |
2426 |
</xslo:template> |
2002 |
</xslo:stylesheet> |
2427 |
</xslo:stylesheet> |