Replies: 1 comment 2 replies
-
What kind of records are you using? DefaultRecord is an abstract base class that is not literally instantiated anywhere. If you extend it, you will not change any behavior, because the behavior you want to change is being used by a different subclass of DefaultRecord. Most likely, you actually want to extend SolrDefault for your purposes… but if you’re working with non-Solr-based records, or records using a more specific driver (e.g. SolrMarc), you may need to extend something different to override the XML behavior. And if you want to override the behavior across multiple record types, you may need to extend multiple classes and use a trait to share custom behavior between them. I hope this helps, but please let me know if you still have questions or need more help figuring out the best strategy! |
Beta Was this translation helpful? Give feedback.
-
I want to override \VuFind\RecordDriver\DefaultRecord::getXML
But this class doesn't have Factory and isn't defined in PluginManager
How to create a plugin for override this class?
Beta Was this translation helpful? Give feedback.
All reactions