Skip to content

Commit

Permalink
Apply suggested changes by @pkiraly
Browse files Browse the repository at this point in the history
See: pkiraly#503 (comment)

Co-authored-by: Peter Kiraly <[email protected]>
  • Loading branch information
TobiasNx and pkiraly committed Aug 21, 2024
1 parent 06d732b commit a7eea66
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void initialize() {
setSubfieldsWithCardinality(
"a", "Created by subfield", "R",
"b", "Create date subfield", "R",
"c", "Updated by subfield",
"c", "Updated by subfield", "R",
"d", "Update date subfield", "R",
"e", "Library name subfield", "R",
"f", "Location name subfield", "R",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void initialize() {
setSubfieldsWithCardinality(
"a", "Created by subfield", "R",
"b", "Create date subfield", "R",
"c", "Updated by subfield",
"c", "Updated by subfield", "R",
"d", "Update date subfield", "R",
"e", "Suppress from publishing subfield", "R",
"f", "Originating system subfield", "R",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void testPatternMatchingWithSubfield() {
List<String> definitions = UseCase.E02.getDataElelemntsNormalized();
assertEquals(11, definitions.size());
assertEquals(
List.of("110$e", "111$e", "100$e", "700$e", "710$e", "711$e", "720$e", "751$e", "752$e", "775$e", "788$e"),
List.of("100$e", "110$e", "111$e", "700$e", "710$e", "711$e", "720$e", "751$e", "752$e", "775$e", "788$e"),
definitions);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public void testStatistics() {
assertEquals( 229, statistics.get(DataElementType.coreFields));
assertEquals( 184, statistics.get(DataElementType.coreIndicators));
assertEquals(2667, statistics.get(DataElementType.coreSubfields));
assertEquals( 262, statistics.get(DataElementType.localFields));
assertEquals( 264, statistics.get(DataElementType.localFields));
assertEquals( 30, statistics.get(DataElementType.localIndicators));
assertEquals(2005, statistics.get(DataElementType.localSubfields));
assertEquals(5595, statistics.total());
assertEquals(2024, statistics.get(DataElementType.localSubfields));
assertEquals(5616, statistics.total());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void testListTag() {
MarcVersion version = Utils.getVersion(tag);
DataFieldDefinition definition = TagDefinitionLoader.load(
tag.getSimpleName().replace("Tag", ""), version);
assertNotNull("The definition for tag " + tag.getCanonicalName() + " should not be null", definition);
assertEquals(tag.getSimpleName() + " should have the same tag", "Tag" + definition.getTag(), tag.getSimpleName());

assertEquals(version, definition.getMarcVersion());
Expand Down

0 comments on commit a7eea66

Please sign in to comment.