From: HL <fre...@gm...> - 2017-06-21 20:53:07
|
Thank's Demian, I'd like to override some functions of the OAI/Server class in order to add some extra metadata stuff required by my oai-clients. So I presume extend+override functions is the way to go. However I would like to avoid messing in the VuFind's Source tree since the tendency now-days is to refresh from git often! Regards, Harry On 21/06/2017 11:38 μμ, Demian Katz wrote: > What are you trying to do, exactly? The staticroute generator will add a new route to your module, but the OAI/Server route already exists. (Routes are just how VuFind maps URLs to controller code). Are you actually trying to extend a class or change a controller behavior? Hopefully if you tell me a little more about what you are trying to achieve, I can help you get there. :-) > > - Demian > > -----Original Message----- > From: HL [mailto:fre...@gm...] > Sent: Wednesday, June 21, 2017 4:09 PM > To: vuf...@li... > Subject: [VuFind-General] Extending a static route class > > Dear list, > > I am trying to extend and override the OAI/Server Class with the static route approach in my MyModule module. > > php public/index.php generate staticroute OAI/Server MyModule > > but with no results, > > What is the correct approach? > > Regards, > > Harry. > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7C917e045776a04d6894ff08d4b8e17dd8%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636336725866316135&sdata=Iz3ZA23GUNBxUICeig6sNDMb%2BVz64IxmnOeRnflT8iQ%3D&reserved=0 > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-general&data=02%7C01%7Cdemian.katz%40villanova.edu%7C917e045776a04d6894ff08d4b8e17dd8%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636336725866316135&sdata=IwxhHDj72Xfj6doRuiRUGO8JiVfM1muproEvwqIkzf4%3D&reserved=0 |