changeset 1156:4f84a635a820

read metadata from page1.jpg.meta also without file-tag.
author robcast
date Tue, 19 Feb 2013 17:25:57 +0100
parents 6423240583fb
children 7a4f27ee087f
files common/src/main/java/digilib/io/ImageFileSet.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 			}