tripal_pub_admin.tpl.php 6.0 KB

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