Mercurial > hg > digilib-old
comparison common/src/main/java/digilib/io/ImageFileSet.java @ 1156:4f84a635a820
read metadata from page1.jpg.meta also without file-tag.
author | robcast |
---|---|
date | Tue, 19 Feb 2013 17:25:57 +0100 |
parents | 7779b37d1d05 |
children |
comparison
equal
deleted
inserted
replaced
1155:6423240583fb | 1156:4f84a635a820 |
---|---|
294 // read meta file | 294 // read meta file |
295 Map<String, MetadataMap> meta = ml.loadURL(mf.getAbsolutePath()); | 295 Map<String, MetadataMap> meta = ml.loadURL(mf.getAbsolutePath()); |
296 if (meta == null) { | 296 if (meta == null) { |
297 return; | 297 return; |
298 } | 298 } |
299 // file meta should be inside file tag | |
299 fileMeta = meta.get(name); | 300 fileMeta = meta.get(name); |
301 if (fileMeta == null) { | |
302 // or there is only a meta tag | |
303 fileMeta = meta.get(""); | |
304 } | |
300 } catch (Exception e) { | 305 } catch (Exception e) { |
301 Logger.getLogger(this.getClass()).warn("error reading file .meta", e); | 306 Logger.getLogger(this.getClass()).warn("error reading file .meta", e); |
302 } | 307 } |
303 } | 308 } |
304 } | 309 } |