tripal_pub_help.tpl.php 5.6 KB

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