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
We can use the default namespace by only defining it in the table class and then override the table class in all the gems we override.
We can add a method to update the namespace of all the child classes, something like apply_namespace("new-namespace"). It will look through all the serializable classes in the current object, recursively in all the children, and update their namespaces to new-namespace. We can also make to check for the namespaces overridden by mapping rules like map_element :th, to: :th, namespace: 'random-namespace' and update those as well based on a parameter.
The oasis-etm gem implements the OASIS ETM table structure, but NISO JATS uses a different namespace for the same structure.
How can we override the namespace?
Original:
Inside the
niso-jats
gem:We clearly do not want to manually define a second set of classes, so either:
Maybe the first solution is cleaner.
This is blocking:
The text was updated successfully, but these errors were encountered: