From: Demian K. <dem...@vi...> - 2013-02-22 19:38:10
|
To override code, you need to use a custom module rather than the local directory -- the custom module gives you your own namespace in which to write code, and your own module.config.php where you can register your own objects in place of the default ones in the VuFind module. It's a bit more overhead than just replacing a file in a local directory (alas, given the nature of PHP, this was the best we could do), but it should meet your needs. For more details, see: http://vufind.org/wiki/vufind2:customizing_vufind_2.0#modules If you still have questions, feel free to ask them here. - Demian ________________________________ From: Brad Busenius [bbu...@uc...] Sent: Friday, February 22, 2013 2:29 PM To: vuf...@li... Subject: Re: [VuFind-Tech] OAI import oddnesses Yeah, I'm curios if it is possible to override the horizon.php file by creating a copy in /local/module/VuFind/src/VuFind/ILS/Driver. On my first attempt it appears I cannot. Is the local directory only for config files or will it work for other files as well? Thanks! Brad On 2/22/13 9:57 AM, Tod Olson wrote: I think you're quite right about not exploding on semicolons. *If* we VuFind::explode at all, it should be on " -- ". Just to clarify something, as we're still getting used to the PHP and it's coming up in other contexts: if we want to locally override module/VuFind/src/VuFind/XSLT/Import/VuFind.php while testing the bug fix, can we just drop in a local/module/VuFind/src/VuFind/XSLT/Import/VuFind.php? -Tod On Feb 22, 2013, at 9:01 AM, Demian Katz <dem...@vi...><mailto:dem...@vi...> wrote: Instead of DOMDocument::createElement() better use: Createelement('parts')->appendChild(new DOMText($part)) Creating a new DOMText does encode the ampersand. Thanks for figuring this out, David! Tod, do you want to send me a patch to commit to master based on David's observations? In the long term, I think you don't want to be exploding subject headings on semicolons (that's probably an artifact from some other metadata arrangement), but it would be nice to fix this bug while we're thinking about it. Let me know if you need any more action on my part! thanks, Demian ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Vufind-tech mailing list Vuf...@li...<mailto:Vuf...@li...> https://lists.sourceforge.net/lists/listinfo/vufind-tech |