====== Building A Plugin ====== VuFind uses the [[http://smarty.php.net/|Smarty Template Engine]] to control the HTML templates. Smarty has the ability to create plugins to be intergrated in with the templates. If you would like to create a Plugin to enhance VuFind - for example a SQL Query to your ILS Database for additional data on the Record View Page or a new query to the Solr data store - you could simply create a PHP file that lives within the /web/interface/plugins directory. Please follow the [[http://smarty.php.net/manual/en/plugins.php|Smarty Documentation]] on how to create a plugin. Here is an arbitrary example of a plugin that interacts with the Solr data store: filename: /web/interface/plugins/function.showqauthors.php raw = false; // Do not return Raw XML data (use array) $result = $solr->query('authorStr:Q*'); // Run Search // Create Output $html = "\n"; // Return Output return $html; } ?>