tripal_pub_admin.tpl.php 6.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <br /><h3>Tripal Publication Quick Links</h3>
  2. <ul>
  3. <li><?php print l('Search for Publications', 'find/publications') ?></li>
  4. <li><?php print l('Configuration', 'admin/tripal/tripal_pub/configuration') ?></li>
  5. <li><?php print l('Sync Publications', 'admin/tripal/tripal_pub/sync') ?></li>
  6. <li><?php print l('List of Importers', 'admin/tripal/tripal_pub/import_list') ?></li>
  7. <li><?php print l('Add a New Importer', 'admin/tripal/tripal_pub/import/new') ?></li>
  8. </ul>
  9. <h3>Module Description:</h3>
  10. <p>The Tripal Publication Module provides the functionality for adding, editing, deleting viewing and bulk
  11. importing of publications. This module additionally provides a search tool for finding publications that have
  12. been added to Chado database.
  13. </p>
  14. <h3>Setup Instructions:</h3>
  15. <ol>
  16. <li><p><b>Set Permissions</b>: The publication module supports the Drupal user permissions interface for
  17. controlling access to publication content and functions. These permissions include viewing,
  18. creating, editing or administering of
  19. publications. The default is that only the original site administrator has these
  20. permissions. You can <a href="<?php print url('admin/user/roles') ?>">add roles</a> for classifying users,
  21. <a href="<?php print url('admin/user/user') ?>">assign users to roles</a> and
  22. <a href="<?php print url('admin/user/permissions') ?>">assign permissions</a> for the publication content to
  23. those roles. For a simple setup, allow anonymous users access to view publication content and
  24. allow the site administrator all other permissions.</p></li>
  25. <li><p><b>Sync Publications</b>: If you already have publications in your Chado database, or you loaded them
  26. through a means other than Tripal, and you want those publications to appear on your site then you will need
  27. to "sync" them with Drupal. Use the <?php print l('sync publications', 'admin/tripal/tripal_pub/sync') ?>
  28. page to sync all publications.</p></li>
  29. <li><p><b>Configure the Search Behavior</b>: Before allowing site visitors to search for publications
  30. visit the <?php print l('configuration page', 'admin/tripal/tripal_pub/configuration') ?> to disable or enable
  31. fields for searching. Tripal uses its own ontology for storing publication information in Chado, and all
  32. child terms of the "Publication Details" are made available for searching. However, some of these
  33. may not be desired for searching and can be disabled.</p></li>
  34. <li><p><b>AGL Importer</b>: Initially, the Tripal publication module supports creating publication
  35. importers using PubMed and the USDA National Agricultural Library (AGL). The AGL database uses
  36. a Z39.50 protocol for querying and therefore Tripal requires the 'YAZ' library to connect. Before
  37. you can query AGL you must install the YAZ library and the PHP YAZ library. The following steps can
  38. be used on an Ubuntu 12.04 server to intall the necessary pre-requisites:
  39. <ol>
  40. <li>Install the YAZ libraries: sudo apt-get install yaz libyaz4-dev</li>
  41. <li>Install the PHP YAZ extension: sudo pecl install yaz</li>
  42. <li>Add the text 'extesion=yaz.so' to the appropriate php.ini file (e.g. /etc/php5/apache2filter/php.ini)</li>
  43. <li>Restart the webserver</li>
  44. </ol>
  45. </p></li>
  46. <li><p><b>Automate Importers:</b> Site administrators can <?php print l('create publication importers', 'admin/tripal/tripal_pub/import/new') ?>
  47. that can be used to query remote databases (e.g. PubMed) and import publications into this database.
  48. After creation of importers you can automate import of publications into
  49. the site by creating a cron job with a <?php print l('Drush', "http://drupal.org/project/drush")?> command. The
  50. cron job can be setup to run the importers periodically. The following
  51. is an example entry, added to the 'root' crontab, that would run importers on a weekly bases (Friday at 9am): <br>
  52. <pre>0 9 * * 5 su - [web user] -c 'cd [drupal install path]; drush -l http://[site url] tpubs-import --report=[email]'
  53. </pre>
  54. Where:<br>
  55. [web user] is the name of the user on the system under which the web server runs</br>
  56. [drupal install path] is the location where drupal is installed</br>
  57. [site url] is the URL path for the site </br>
  58. [email] is the email address of the person who should receive an HTML report of the publications added. Separate multiple emails with a comma (no spaces).</br>
  59. The --report=Y option indicates that an HTML style report should be generated listing the publications
  60. that were added. If this options is not used then no report is generated.
  61. </p></li>
  62. </ol>
  63. <h3>Features of this Module:</h3>
  64. <ul>
  65. <li><p><b>Add/Edit/Delete Publications</b>: Publications can be maually added <?php l('here', 'node/add/chado-pub') ?>.
  66. Once added, publications can be modified or deleted by clicking the Edit tab at the top of a publication page.</p></li>
  67. <li><p><b>Publication Search Tool</b>: A <?php print l('search tool','find/publications') ?> is provided for
  68. finding publications. Unlike most default search tools for Tripal, this tool does not rely on Drupal Views</p></li>
  69. <li><p><b>Bulk Import of Publications</b>: Site administrators can <?php print l('add a new publication importer', 'admin/tripal/tripal_pub/import/new') ?>
  70. which provides a set of search terms for querying a remote publication database (e.g. PubMed). Publications
  71. that matche the search terms can be imported when the publication import cron command is executed. The
  72. cron command can be executed using the Drush command: drush tpubs-import. This drush command can be added
  73. as a system-wide cron (in the same way the Tripal jobs cron is implemented) to be executed on a periodic basis.
  74. This will allow the site to import publications which have been newly added to remote databases and which
  75. are relative to the site. Site administrators can <?php print l('see the list of importers', 'admin/tripal/tripal_pub/import_list') ?>
  76. and edit, disable or delete the importers.</p></li>
  77. </ul>