-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some catalogue specific elements do not work properly #14
Comments
The same happens with core specific enhancements: #13 |
Did you specified the local version with |
qa-catalogue/catalogues/hbz.sh Line 14 in 275f9cf
|
Thanks! It seems OK. The next step would be to write a unit test. If you could add a file with about 1-2 MARCXML records into |
@TobiasNx Thanks! I wrote a unit test against these 3 files, but I was not able to reproduce the error. I found another error though: the I can not push the test against HBZ files because I do not have the necessary permission, so I put the code here. Please add it to // add this line to the import section
import java.util.stream.Collectors;
// put it after the last test method
@Test
public void validate_whenHbz() throws Exception {
clearOutput(outputDir, outputFiles);
ValidatorCli processor = new ValidatorCli(new String[]{
"--schemaType", "MARC21",
"--marcVersion", "HBZ",
"--marcxml",
"--outputDir", outputDir,
"--fixAlma",
"--ignorableRecords", "DEL$a=Y",
"--ignorableFields", "964,940,941,942,944,945,946,947,948,949,950,951,952,955,956,957,958,959,966,967,970,971,972,973,974,975,976,977,978,978,979",
"--details",
"--trimId",
"--summary",
TestUtils.getPath("marcxml/990082522550206441_missing_validation_custom_subfield_9_core_710.xml"),
TestUtils.getPath("marcxml/990171082050206441_missing_validation_custom_ind2_9_core_246.xml"),
TestUtils.getPath("marcxml/991000922029706482_missing_subfield_validation_t_in_customfield_GKT.xml"),
});
RecordIterator iterator = new RecordIterator(processor);
iterator.setProcessWithErrors(true);
iterator.start();
List<String> lines = getFileLines("issue-summary.csv");
assertEquals(3, lines.size());
List<String> undefinedFields = lines.stream()
.filter(line -> line.contains("undefined field"))
.collect(Collectors.toList());
assertEquals(0, undefinedFields.size());
// Pattern pattern = Pattern.compile("^\\d+,952,\\d+,\\d+,undefined field");
// assertTrue(pattern.matcher(undefinedFields.get(0)).find());
} |
@Phu2 will take care of it. |
No exceptions found. These are the last 20 lines of processing our whole basedump containing >27 mio records:
|
Now you have write access (pending invitation). |
@pkiraly Updated |
|
This is what the pkiraly#525 fixes. Now I have write permission, so I will fix it today in this branch. |
@TobiasNx I pushed the changes. You can try it again. |
See: #17
|
Some of the changes in GKT and other hbz specific elements with letters do not validate properly even if they are configured:
qa-catalogue/src/main/java/de/gwdg/metadataqa/marc/definition/tags/hbztags/TagGKT.java
Lines 55 to 64 in 275f9cf
The text was updated successfully, but these errors were encountered: