Mercurial > hg > openmind
changeset 118:d275e1b99bce
remove is_autograph="no" values from XML dump.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 02 Sep 2019 18:01:06 +0200 |
parents | 2db6271a0663 |
children | 4eac7c57e593 |
files | src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java Tue Aug 27 18:06:46 2019 +0200 +++ b/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java Mon Sep 02 18:01:06 2019 +0200 @@ -333,6 +333,11 @@ for (Attribute att : entity.getAttributes()) { // skip empty attributes if (StringUtils.isEmpty(att.getValue())) continue; + // skip special attributes + if (att.getName().equals("is_autograph")) { + // skip non-yes values + if (!att.getValue().equals("yes")) continue; + } // update stats updateAttStats(att, attStats); // write xml