You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlHandler.java
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
* @author Markus Michael Geipel
33
33
*
34
34
*/
35
-
@Description("A MARC XML reader. To read marc data without namespace specification set option `namespace=\"\"`")
35
+
@Description("A MARC XML reader. To read marc data without namespace specification set option `namespace=\"\"`. To ignore namespace specification set option `ignorenamespace=\"true\".")
36
36
@In(XmlReceiver.class)
37
37
@Out(StreamReceiver.class)
38
38
@FluxCommand("handle-marcxml")
@@ -51,6 +51,7 @@ public final class MarcXmlHandler extends DefaultXmlPipe<StreamReceiver> {
51
51
privateStringcurrentTag = "";
52
52
privateStringnamespace = NAMESPACE;
53
53
privateStringBuilderbuilder = newStringBuilder();
54
+
privatebooleanignoreNamespace;
54
55
55
56
/**
56
57
* Creates an instance of {@link MarcXmlHandler}.
@@ -70,8 +71,19 @@ public void setNamespace(final String namespace) {
70
71
this.namespace = namespace;
71
72
}
72
73
74
+
/**
75
+
* Sets whether to ignore the namespace.
76
+
*
77
+
* <strong>Default value: false</strong>
78
+
*
79
+
* @param ignoreNamespace true if the namespace should be ignored
0 commit comments