# HG changeset patch # User robcast # Date 1361291157 -3600 # Node ID 4f84a635a820948050a82aa0ed797eb427eee5df # Parent 6423240583fbb16267629c9e5e280af4abc57c1d read metadata from page1.jpg.meta also without file-tag. diff -r 6423240583fb -r 4f84a635a820 common/src/main/java/digilib/io/ImageFileSet.java --- a/common/src/main/java/digilib/io/ImageFileSet.java Tue Feb 19 17:24:37 2013 +0100 +++ b/common/src/main/java/digilib/io/ImageFileSet.java Tue Feb 19 17:25:57 2013 +0100 @@ -296,7 +296,12 @@ if (meta == null) { return; } + // file meta should be inside file tag fileMeta = meta.get(name); + if (fileMeta == null) { + // or there is only a meta tag + fileMeta = meta.get(""); + } } catch (Exception e) { Logger.getLogger(this.getClass()).warn("error reading file .meta", e); }