# HG changeset patch # User Robert Casties # Date 1563375076 -7200 # Node ID 8013b12cecf7aa6d75c3487f846cf65d19910236 # Parent bdd1c3fc0897557137377a66a3082e78f637db71 fix .json extension on imported digitalizations. diff -r bdd1c3fc0897 -r 8013b12cecf7 src/main/java/org/mpi/openmind/scripts/DivaImportHttp.java --- a/src/main/java/org/mpi/openmind/scripts/DivaImportHttp.java Tue Jul 09 07:30:50 2019 +0200 +++ b/src/main/java/org/mpi/openmind/scripts/DivaImportHttp.java Wed Jul 17 16:51:16 2019 +0200 @@ -103,10 +103,10 @@ //System.out.println(" exists: "+res); } else { // no existing DIGITALIZATION - create new Entity - System.out.println(" create: "+filename); + System.out.println(" create: "+digiName); Entity digi = new Entity(Node.TYPE_ABOX, DIGITALIZATION, false); - digi.setOwnValue(filename); - digi.addAttribute(new Attribute("name", "text", filename)); + digi.setOwnValue(digiName); + digi.addAttribute(new Attribute("name", "text", digiName)); digi.addAttribute(new Attribute("num_files", "text", "100")); // add to list saveList.add(digi);