~ralf-claussnitzer-deactivatedaccount/goobi-production/1.10.x

« back to all changes in this revision

Viewing changes to Goobi/src/de/sub/goobi/metadaten/copier/MetadataPathSelector.java

  • Committer: Matthias Ronge
  • Date: 2014-11-14 09:34:01 UTC
  • mto: This revision was merged to the branch mainline in revision 528.
  • Revision ID: git-v1:be1df1d1fd14b3f67cb1726ace3c66d8d5c5240f
Execute copyData.onExport also during AutomaticDmsExportWithoutHibernate

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
                                                + " because it isn’t allowed by the rule set.");
286
286
                        } catch (TypeNotAllowedForParentException e) {
287
287
                                throw new UnreachableCodeException("TypeNotAllowedForParentException is never thrown"); // see https://github.com/goobi/goobi-ugh/issues/2
 
288
                        } catch (Exception e) {
 
289
                                // copy rule failed, skip it
 
290
                                LOG.debug(
 
291
                                                "Cannot create structural element " + docStructType + " as child of "
 
292
                                                                + (logicalNode.getType() != null ? logicalNode.getType().getName() : "without type")
 
293
                                                                + ": Accessing the rule set failed with exception: "
 
294
                                                                + (e.getMessage() != null ? e.getMessage() : e.getClass().getSimpleName()), e);
 
295
                                return;
288
296
                        }
289
297
                }
290
298
                selector.createOrOverwrite(data, subnode, value);