|
959 | 959 | </df> |
960 | 960 |
|
961 | 961 | <df tag="382"> |
962 | | - <context xpath="bf:Work/bf:musicMedium/bf:MusicMedium[bflc:readMarc382]"> |
| 962 | + <context xpath="bf:Work/bf:ensemble/bf:Ensemble|bf:Work/bf:musicMedium/bf:MusicMedium[bflc:readMarc382]"> |
963 | 963 | <ind1 default="0"> |
964 | 964 | <switch> |
965 | 965 | <case test="bf:status/@rdf:resource='http://id.loc.gov/vocabulary/mstatus/part' or |
966 | 966 | bf:status/bf:Status/@rdf:about='http://id.loc.gov/vocabulary/mstatus/part' or |
967 | 967 | translate(bf:status/bf:Status/rdfs:label,$upper,$lower)='partial'">1</case> |
968 | 968 | </switch> |
969 | 969 | </ind1> |
970 | | - <ind2 default=" "/> |
| 970 | + <ind2 default="1"/> |
971 | 971 | <sf code="3" chopPunct="true" repeatable="false"> |
972 | 972 | <select xpath="bflc:appliesTo/bflc:AppliesTo/rdfs:label"/> |
973 | 973 | </sf> |
|
981 | 981 | </case> |
982 | 982 | </switch> |
983 | 983 | </var> |
984 | | - <transform> |
985 | | - <xsl:call-template name="tReadMarc382"> |
986 | | - <xsl:with-param name="pString" select="substring($v382data, 6)"/> |
987 | | - </xsl:call-template> |
988 | | - </transform> |
| 984 | + <switch> |
| 985 | + <case test="$v382data != ''"> |
| 986 | + <transform> |
| 987 | + <xsl:call-template name="tReadMarc382"> |
| 988 | + <xsl:with-param name="pString" select="substring($v382data, 6)"/> |
| 989 | + </xsl:call-template> |
| 990 | + </transform> |
| 991 | + </case> |
| 992 | + <case test="default"> |
| 993 | + <select xpath="bf:mediumComponent/bf:MediumComponent[bf:mediumOfPerformance/*/rdfs:label]"> |
| 994 | + <switch> |
| 995 | + <case test="bf:mediumComponentQualifier//@rdf:*[1] = 'http://id.loc.gov/vocabulary/medcompqual/solo'"> |
| 996 | + <sf code="b" chopPunct="true"><select xpath="bf:mediumOfPerformance/*/rdfs:label"/></sf> |
| 997 | + </case> |
| 998 | + <case test="default"> |
| 999 | + <sf code="a" chopPunct="true"><select xpath="bf:mediumOfPerformance/*/rdfs:label"/></sf> |
| 1000 | + </case> |
| 1001 | + </switch> |
| 1002 | + <sf code="n" chopPunct="true" repeatable="false"> |
| 1003 | + <select xpath="bf:count"/> |
| 1004 | + </sf> |
| 1005 | + <select xpath="bf:note/bf:Note[rdf:type/@rdf:resource='http://id.loc.gov/vocabulary/mnotetype/alternative']/rdfs:label"> |
| 1006 | + <sf code="p" chopPunct="true" repeatable="false"><select xpath="." /></sf> |
| 1007 | + </select> |
| 1008 | + <select xpath="bf:note/bf:Note[rdf:type/@rdf:resource='http://id.loc.gov/vocabulary/mnotetype/doubling']/rdfs:label"> |
| 1009 | + <sf code="d" chopPunct="true" repeatable="false"><select xpath="." /></sf> |
| 1010 | + </select> |
| 1011 | + <sf code="v" chopPunct="true" repeatable="false"> |
| 1012 | + <select xpath="bf:note/bf:Note[not(rdf:type)]/rdfs:label"/> |
| 1013 | + </sf> |
| 1014 | + </select> |
| 1015 | + <switch> |
| 1016 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/ensemble']"> |
| 1017 | + <sf code="t"> |
| 1018 | + <transform><xsl:value-of select="'1'" /></transform> |
| 1019 | + </sf> |
| 1020 | + </case> |
| 1021 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/soloind']"> |
| 1022 | + <sf code="s"> |
| 1023 | + <transform><xsl:value-of select="'1'" /></transform> |
| 1024 | + </sf> |
| 1025 | + </case> |
| 1026 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/duo']"> |
| 1027 | + <sf code="s"> |
| 1028 | + <transform><xsl:value-of select="'2'" /></transform> |
| 1029 | + </sf> |
| 1030 | + </case> |
| 1031 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/trio']"> |
| 1032 | + <sf code="s"> |
| 1033 | + <transform><xsl:value-of select="'3'" /></transform> |
| 1034 | + </sf> |
| 1035 | + </case> |
| 1036 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/quartet']"> |
| 1037 | + <sf code="s"> |
| 1038 | + <transform><xsl:value-of select="'4'" /></transform> |
| 1039 | + </sf> |
| 1040 | + </case> |
| 1041 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/quintet']"> |
| 1042 | + <sf code="s"> |
| 1043 | + <transform><xsl:value-of select="'5'" /></transform> |
| 1044 | + </sf> |
| 1045 | + </case> |
| 1046 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/sextet']"> |
| 1047 | + <sf code="s"> |
| 1048 | + <transform><xsl:value-of select="'6'" /></transform> |
| 1049 | + </sf> |
| 1050 | + </case> |
| 1051 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/septet']"> |
| 1052 | + <sf code="s"> |
| 1053 | + <transform><xsl:value-of select="'7'" /></transform> |
| 1054 | + </sf> |
| 1055 | + </case> |
| 1056 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/octet']"> |
| 1057 | + <sf code="s"> |
| 1058 | + <transform><xsl:value-of select="'8'" /></transform> |
| 1059 | + </sf> |
| 1060 | + </case> |
| 1061 | + <case test="bf:ensembleSize//@rdf:*[. = 'http://id.loc.gov/vocabulary/ensemblesize/nonet']"> |
| 1062 | + <sf code="s"> |
| 1063 | + <transform><xsl:value-of select="'9'" /></transform> |
| 1064 | + </sf> |
| 1065 | + </case> |
| 1066 | + </switch> |
| 1067 | + <switch> |
| 1068 | + <case test="bf:mediumComponent/bf:MediumComponent/bf:mediumOfPerformance//@rdf:*[contains(., 'authorities/performanceMediums')] or |
| 1069 | + bf:mediumComponent/bf:MediumComponent/bf:mediumOfPerformance//bf:source//@rdf:*[contains(., 'authorities/performanceMediums')] or |
| 1070 | + bf:mediumComponent/bf:MediumComponent/bf:mediumOfPerformance//bf:source//bf:code[. = 'lcmpt']"> |
| 1071 | + <sf code="2"> |
| 1072 | + <transform><xsl:value-of select="'lcmpt'" /></transform> |
| 1073 | + </sf> |
| 1074 | + </case> |
| 1075 | + </switch> |
| 1076 | + </case> |
| 1077 | + </switch> |
989 | 1078 | </context> |
990 | 1079 | </df> |
991 | 1080 |
|
|
1016 | 1105 | </case> |
1017 | 1106 | </switch> |
1018 | 1107 |
|
| 1108 | + <df tag="383" lang-xpath="."> |
| 1109 | + <context xpath="bf:Work/bf:identifiedBy/bf:SerialNumber[rdf:value] | |
| 1110 | + bf:Work/bf:identifiedBy/bf:OpusNumber[rdf:value] | |
| 1111 | + bf:Work/bf:identifiedBy/bf:ThematicCatalogNumber[rdf:value] "> |
| 1112 | + <ind1 default = " "/> |
| 1113 | + <ind2 default = " "/> |
| 1114 | + <sf code="3" chopPunct="true" repeatable="false"> |
| 1115 | + <select xpath="bflc:appliesTo/bflc:AppliesTo/rdfs:label"/> |
| 1116 | + </sf> |
| 1117 | + <switch> |
| 1118 | + <case test="local-name() = 'SerialNumber'"> |
| 1119 | + <sf code="a" chopPunct="true"><select xpath="rdf:value"/></sf> |
| 1120 | + </case> |
| 1121 | + <case test="local-name() = 'OpusNumber'"> |
| 1122 | + <sf code="b" chopPunct="true"><select xpath="rdf:value"/></sf> |
| 1123 | + <sf code="e" chopPunct="true"><select xpath="bf:source//bf:code"/></sf> |
| 1124 | + </case> |
| 1125 | + <case test="local-name() = 'ThematicCatalogNumber'"> |
| 1126 | + <sf code="c" chopPunct="true"><select xpath="rdf:value"/></sf> |
| 1127 | + <sf code="d" chopPunct="true"><select xpath="bf:source//bf:code"/></sf> |
| 1128 | + <sf code="2" chopPunct="true"><transform><xsl:value-of select="'mlati'" /></transform></sf> |
| 1129 | + </case> |
| 1130 | + </switch> |
| 1131 | + </context> |
| 1132 | + </df> |
| 1133 | + |
1019 | 1134 | <df tag="384" lang-xpath="."> |
1020 | | - <context xpath="bf:Work/bf:musicKey"> |
| 1135 | + <context xpath="bf:Work/bf:musicKey|bf:Work/bf:keyMode/bf:KeyMode/rdfs:label"> |
1021 | 1136 | <ind1 default = " "/> |
1022 | 1137 | <ind2 default = " "/> |
| 1138 | + <sf code="3" chopPunct="true"><select xpath="parent::bf:KeyMode/bflc:appliesTo/bflc:AppliesTo/rdfs:label"/></sf> |
1023 | 1139 | <sf code="a" chopPunct="true"><select xpath="."/></sf> |
1024 | 1140 | </context> |
1025 | 1141 | </df> |
|
0 commit comments