====== Building A Module ====== ===== Current Modules ===== ^ Module ^ Notes ^ | Search | Provides core search functionality | | Record | Provides a web page for each record | | MyResearch | A portal for users to save and organize resources in a central location | | Help | Provides context sensitive help for the users | | Author | Provides a web page for each author and harvests biographical information from Wikipedia | | OAI | Provides an OAI content provider service to allow for harvesting of records | ===== Building Custom Modules ===== Modules are very easy to build. All you need to do to integrate your code with the system is to create a directory under the web/services directory with the name of the module. Each page then has it's own PHP file with a class that extends the Action class. Each page, known as an action, should mimic the Action class by implementing a method called 'launch'. Your module can make use of the underlying Solr Data Repository by including the SOLR.php file found in the web/sys directory. The class is instantiated with the path to the Solr Repository Your module can also take advantage of the configuration file found in the web/conf directory. You can simply state global $configArray; To access the array of configuration options in your method. Here is a shell for an action class: setPageTitle('My Action'); $interface->setTemplate('myaction.tpl'); // Do Something Here $interface->display('layout.tpl'); } } ?>