Skip to content

Commit

Permalink
Add how to set an empty namespace (#552)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dr0i committed Jul 16, 2024
1 parent 0d73713 commit 5616ae8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Markus Michael Geipel
*
*/
@Description("A marc xml reader")
@Description("A MARC XML reader. To read marc data without namespace specification set option `namespace=\"\"`")
@In(XmlReceiver.class)
@Out(StreamReceiver.class)
@FluxCommand("handle-marcxml")
Expand Down Expand Up @@ -63,7 +63,7 @@ public MarcXmlHandler() {
*
* <strong>Default value: {@value #NAMESPACE}</strong>
*
* @param namespace the namespace
* @param namespace the namespace. Set to null if namespace shouldn't be checked.
*/
public void setNamespace(final String namespace) {
this.namespace = namespace;
Expand Down

0 comments on commit 5616ae8

Please sign in to comment.