# HG changeset patch # User robcast # Date 1361291157 -3600 # Node ID b65408f1b2311a4944c29f026914d05ee422b003 # Parent 09090aab5ccd0acd85a153878c53376e78d95354 read metadata from page1.jpg.meta also without file-tag. diff -r 09090aab5ccd -r b65408f1b231 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); }