@@ -1013,10 +1013,10 @@ private static Promise<Result> transformAndIndex(String id, JsonNode jsonBody)
1013
1013
1014
1014
private static JsonNode transformStrapiToLobid (JsonNode jsonBody )
1015
1015
throws IOException , FileNotFoundException , RecognitionException {
1016
- File input = new File ("conf/output/test-output- strapi.json" );
1017
- File output = new File ("conf/output/test-output-0 .json" );
1016
+ File input = new File ("conf/output/single- strapi-to-lobid-input .json" );
1017
+ File output = new File ("conf/output/single-strapi-to-lobid-output .json" );
1018
1018
Files .write (Paths .get (input .getAbsolutePath ()), jsonBody .toString ().getBytes (Charset .forName (UTF_8 )));
1019
- ETL .main (new String [] {"conf/rpb-test- titel-to-lobid.flux" });
1019
+ ETL .main (new String [] {"conf/rpb-titel-single-strapi -to-lobid.flux" });
1020
1020
String result = Files .readAllLines (Paths .get (output .getAbsolutePath ())).stream ().collect (Collectors .joining ("\n " ));
1021
1021
return Json .parse (result );
1022
1022
}
@@ -1051,10 +1051,10 @@ private static Promise<JsonNode> addToHebisData(JsonNode transformedJson) {
1051
1051
1052
1052
private static JsonNode transformHebisToLobid (String xmlBody )
1053
1053
throws IOException , FileNotFoundException , RecognitionException {
1054
- File input = new File ("conf/output/test-output- hebis.xml" );
1055
- File output = new File ("conf/output/test-output-0 .json" );
1054
+ File input = new File ("conf/output/single- hebis-to-lobid-input .xml" );
1055
+ File output = new File ("conf/output/single-hebis-to-lobid-output .json" );
1056
1056
Files .write (Paths .get (input .getAbsolutePath ()), xmlBody .getBytes ());
1057
- ETL .main (new String [] {"conf/rpb-test- titel-hebis-to-lobid.flux" });
1057
+ ETL .main (new String [] {"conf/rpb-titel-single -hebis-to-lobid.flux" });
1058
1058
String result = Files .readAllLines (Paths .get (output .getAbsolutePath ())).stream ().collect (Collectors .joining ("\n " ));
1059
1059
return Json .parse (result );
1060
1060
}
0 commit comments