changeset 109:8013b12cecf7

fix .json extension on imported digitalizations.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 17 Jul 2019 16:51:16 +0200
parents bdd1c3fc0897
children 484be3266e54
files src/main/java/org/mpi/openmind/scripts/DivaImportHttp.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);