Skip to content

Commit

Permalink
issue #75: add tag WII
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Dec 19, 2020
1 parent b513020 commit d08d383
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
690, 692, 852$a (code list), 859, 909, 916, 917, 945, 950, 954, 955, 957, 959, 960,
961, 962, 963, 964, 966, 968, 970, 975, 976, 979, 980, 985, 990, 992, 996, 997,
A02, AQN, BGT, BUF, CFI, CNF, DGM, DRT, EST, EXP, FFP, FIN, LAS, LCS, LDO, LEO, LET,
MIS, MNI, MPX, NEG, NID, OBJ, OHC, ONS, ONX, PLR, RSC, SRC, SSD, TOC, UNO, VIT
MIS, MNI, MPX, NEG, NID, OBJ, OHC, ONS, ONX, PLR, RSC, SRC, SSD, TOC, UNO, VIT, WII
- new general parameters
- ignorableFields
- ignorableRecords
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ public void prepareBaseline() {
processFunctions(indicator.getFrbrFunctions(), fieldTag.getTag() + "$" + indicator.getIndicatorFlag());
}

for (SubfieldDefinition subfield : fieldTag.getSubfields()) {
if (isCore) coreSubfields++; else localSubfields++;
processFunctions(subfield.getFrbrFunctions(), fieldTag.getTag() + "$" + subfield.getCode());
}
if (fieldTag.getSubfields() != null)
for (SubfieldDefinition subfield : fieldTag.getSubfields()) {
if (isCore) coreSubfields++; else localSubfields++;
processFunctions(subfield.getFrbrFunctions(), fieldTag.getTag() + "$" + subfield.getCode());
}
} catch (NoSuchMethodException
| IllegalAccessException
| InvocationTargetException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ public void test() throws Exception {
MarcRecord record = MarcFactory.createFromMarc4j(marc4jRecord);
analysis.processRecord(record, 1);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ public void test() {
}
}

for (SubfieldDefinition subfield : fieldTag.getSubfields()) {
functions = subfield.getFrbrFunctions();
if (functions != null) {
// System.err.printf("%s$%s: %s%n", fieldTag.getTag(), subfield.getCode(), StringUtils.join(functions));
for (FRBRFunction function : functions) {
count(function, counter);
if (fieldTag.getSubfields() != null)
for (SubfieldDefinition subfield : fieldTag.getSubfields()) {
functions = subfield.getFrbrFunctions();
if (functions != null) {
// System.err.printf("%s$%s: %s%n", fieldTag.getTag(), subfield.getCode(), StringUtils.join(functions));
for (FRBRFunction function : functions) {
count(function, counter);
}
}
}
}


} catch (NoSuchMethodException
| IllegalAccessException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void testListTag() {
List<Class<? extends DataFieldDefinition>> tags = MarcTagLister.listTags();
assertNotNull(tags);
assertNotEquals(0, tags.size());
assertEquals(398, tags.size());
assertEquals(399, tags.size());
assertEquals("Tag010", tags.get(0).getSimpleName());
Map<String, Integer> versionCounter = new HashMap<>();
Map<MarcVersion, Integer> versionCounter2 = new HashMap<>();
Expand Down

0 comments on commit d08d383

Please sign in to comment.