Skip to content

Commit 5616ae8

Browse files
committed
Add how to set an empty namespace (#552)
The MARC21 namespace is checked by default. Sometimes there is MARC21 data without the proper namespace or none namespace at all. To make the handler run in such cases the namespace must be explicitly set as parameter to match the namespace used in the data. The @description describes how to set an empty namespace if the namespace is missing. Ignoring the namepace at all can be done only via JAVA-API by setting it to null.
1 parent 0d73713 commit 5616ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Markus Michael Geipel
3333
*
3434
*/
35-
@Description("A marc xml reader")
35+
@Description("A MARC XML reader. To read marc data without namespace specification set option `namespace=\"\"`")
3636
@In(XmlReceiver.class)
3737
@Out(StreamReceiver.class)
3838
@FluxCommand("handle-marcxml")
@@ -63,7 +63,7 @@ public MarcXmlHandler() {
6363
*
6464
* <strong>Default value: {@value #NAMESPACE}</strong>
6565
*
66-
* @param namespace the namespace
66+
* @param namespace the namespace. Set to null if namespace shouldn't be checked.
6767
*/
6868
public void setNamespace(final String namespace) {
6969
this.namespace = namespace;

0 commit comments

Comments
 (0)