Jelajahi Sumber

Made administration paths consistent and added module descriptions/help to new tripal admins for all modules except feature

laceysanderson 14 tahun lalu
induk
melakukan
a0a61c372e

+ 21 - 0
tripal_analysis/tripal_analysis.admin.inc

@@ -3,6 +3,27 @@
 // Copyright 2009 Clemson University
 //
 
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_analysis_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  $text .= '<p>TODO: Basic Description of this module including mention/link to the chado module</p>';
+
+  $text .= '<h3>Post Installation Instructions:</h3>';
+  $text .= '<p>TODO: Describe any post installation intructions here. You shouldalways include setting user permissions.</p>';
+  
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  $text .= '<p>TODO: Discuss the Features of this module including links. Some features to consider are creating content, details pages/node content, editing/deleteing, basic listings and vies integration. See admin/tripal/tripal_stock for an example.</p>';
+  
+  return $text;
+}
+
 /*******************************************************************************
  * Administration page callbacks for the Tripal Analysis module
  * We have defined a hook_get_settings() function. When a sub-module

+ 9 - 0
tripal_analysis/tripal_analysis.module

@@ -59,6 +59,15 @@ function tripal_analysis_menu() {
 	// Tripal Analysis administrative settings
 	$items['admin/tripal/tripal_analysis'] = array(
       'title' => 'Analyses',
+      'description' => 'Basic Description of Tripal Analysis Module Functionality.',
+      'page callback' => 'tripal_analysis_module_description_page',
+      'access arguments' => array('administer site configuration'),
+      'type' => MENU_NORMAL_ITEM,
+      'file' => 'tripal_analysis.admin.inc',
+	);
+	
+	$items['admin/tripal/tripal_analysis/configuration'] = array(
+      'title' => 'Configuration',
       'description' => 'Settings for the displays of analysis results.',
       'page callback' => 'drupal_get_form',
       'page arguments' => array('tripal_analysis_admin'),

+ 33 - 4
tripal_cv/tripal_cv.module

@@ -27,6 +27,14 @@ function tripal_cv_init(){
 function tripal_cv_menu() {
    $items = array();
 
+  $items['admin/tripal/tripal_cv'] = array(
+    'title' => 'Controlled Vocabularies',
+    'description' => 'Basic Description of Tripal CV Module Functionality',
+    'page callback' => 'tripal_cv_module_description_page',
+    'access arguments' => array('administer site configuration'),
+    'type' => MENU_NORMAL_ITEM,
+  );
+
    $items['admin/tripal/tripal_cv/cvtermpath'] = array(
      'title' => 'Update Chado cvtermpath tables',
      'description' => 'The Chado cvtermpath table provides lineage for terms and is  useful for quickly finding any ancestor parent of a term.  However, this table must be populated.  This page allows for populating of this table one vocabulary at a time',
@@ -36,22 +44,22 @@ function tripal_cv_menu() {
      'type' => MENU_NORMAL_ITEM,
    );
 
-   $items['admin/tripal/tripal_cv'] = array(
-     'title' => 'Controlled Vocabulary Management',
+   $items['admin/tripal/tripal_cv/edit_cv'] = array(
+     'title' => 'Update/Delete Controlled Vocabulary',
      'description' => 'Manage controlled vocabularies/ontolgoies in Chado ',
      'page callback' => 'tripal_cv_admin_page',
      'access arguments' => array('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
 
-   $items['admin/tripal/tripal_cv/new'] = array(
+   $items['admin/tripal/tripal_cv/add_cv'] = array(
      'title' => 'Add a Controlled Vocabulary',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('tripal_cv_add_form'),
      'access arguments' => array('access administration pages'),
      'type' => MENU_NORMAL_ITEM,
    );
-   $items['admin/tripal/tripal_cv/obo'] = array(
+   $items['admin/tripal/tripal_cv/obo_loader'] = array(
      'title' =>'Add/Update Ontology With OBO File',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('tripal_cv_obo_form'),
@@ -177,6 +185,27 @@ function tripal_cv_views_api() {
 	return array('api' => 2.0);
 }
 
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_cv_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  $text .= '<p>TODO: Basic Description of this module including mention/link to the chado module</p>';
+
+  $text .= '<h3>Post Installation Instructions:</h3>';
+  $text .= '<p>TODO: Describe any post installation intructions here. You shouldalways include setting user permissions.</p>';
+  
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  $text .= '<p>TODO: Discuss the Features of this module including links. Some features to consider are creating content, details pages/node content, editing/deleteing, basic listings and vies integration. See admin/tripal/tripal_stock for an example.</p>';
+  
+  return $text;
+}
+
 /*************************************************************************
 *
 */

+ 32 - 3
tripal_db/tripal_db.module

@@ -18,14 +18,22 @@ function tripal_db_menu() {
    $items = array();
 
    $items['admin/tripal/tripal_db'] = array(
-     'title' => 'External Database Management',
+     'title' => 'External Database References',
+     'description' => 'Basic Description of Tripal DB Module Functionality',
+     'page callback' => 'tripal_db_module_description_page',
+     'access arguments' => array('administer site configuration'),
+     'type' => MENU_NORMAL_ITEM,
+   );
+
+   $items['admin/tripal/tripal_db/edit_db'] = array(
+     'title' => 'Update/Delete Database References',
      'description' => 'Manage External Databases ',
      'page callback' => 'tripal_db_admin_page',
      'access arguments' => array('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
-
-   $items['admin/tripal/tripal_db/new'] = array(
+   
+   $items['admin/tripal/tripal_db/add_db'] = array(
      'title' => 'Add an External Database',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('tripal_db_form'),
@@ -66,6 +74,27 @@ function tripal_db_views_api() {
 	return array('api' => 2.0);
 }
 
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_db_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  $text .= '<p>TODO: Basic Description of this module including mention/link to the chado module</p>';
+
+  $text .= '<h3>Post Installation Instructions:</h3>';
+  $text .= '<p>TODO: Describe any post installation intructions here. You shouldalways include setting user permissions.</p>';
+  
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  $text .= '<p>TODO: Discuss the Features of this module including links. Some features to consider are creating content, details pages/node content, editing/deleteing, basic listings and vies integration. See admin/tripal/tripal_stock for an example.</p>';
+  
+  return $text;
+}
+
 /*************************************************************************
 *
 */

+ 30 - 0
tripal_library/tripal_library.module

@@ -90,12 +90,21 @@ function tripal_library_menu() {
    // The administative settings menu
    $items['admin/tripal/tripal_library'] = array(
       'title' => 'Libraries',
+      'description' => 'Basic Description of Tripal Library Module Functionality',
+      'page callback' => 'tripal_library_module_description_page',
+      'access arguments' => array('access administration pages'),
+      'type' => MENU_NORMAL_ITEM,
+   );
+   
+   $items['admin/tripal/tripal_library/configuration'] = array(
+      'title' => 'Configuration',
       'description' => 'Manage integration of Chado libraries including associated features.',
       'page callback' => 'drupal_get_form',
       'page arguments' => array('tripal_library_admin'),
       'access arguments' => array('access administration pages'),
       'type' => MENU_NORMAL_ITEM,
    );
+   
    // Synchronizing libraries from Chado to Drupal
    $items['chado_sync_libraries'] = array(
       'title' => t('Sync Data'),
@@ -158,6 +167,27 @@ function tripal_library_node_has_menu($type,$vid){
    }
 }
 
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_library_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  $text .= '<p>TODO: Basic Description of this module including mention/link to the chado module</p>';
+
+  $text .= '<h3>Post Installation Instructions:</h3>';
+  $text .= '<p>TODO: Describe any post installation intructions here. You shouldalways include setting user permissions.</p>';
+  
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  $text .= '<p>TODO: Discuss the Features of this module including links. Some features to consider are creating content, details pages/node content, editing/deleteing, basic listings and vies integration. See admin/tripal/tripal_stock for an example.</p>';
+  
+  return $text;
+}
+
 /*******************************************************************************
  * Administrative settings form
  */

+ 32 - 0
tripal_organism/tripal_organism.module

@@ -73,12 +73,22 @@ function tripal_organism_menu() {
    // the administative settings menu
    $items['admin/tripal/tripal_organism'] = array(
      'title' => 'Organisms',
+     'description' => 'Basic Description of Tripal Organism Module Functionality',
+     'page callback' => 'tripal_organism_module_description_page',
+     'access arguments' => array('administer site configuration'),
+     'type' => MENU_NORMAL_ITEM,
+   );
+   
+   $items['admin/tripal/tripal_organism/configuration'] = array(
+     'title' => 'Configuration',
      'description' => 'Manage integration of Chado organisms including associated features',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('tripal_organism_admin'),
      'access arguments' => array('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
+   
+   
   return $items;
 }
 /*******************************************************************************
@@ -120,6 +130,28 @@ function tripal_organism_perm(){
       'edit chado_organism content',
    );
 }
+
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_organism_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  $text .= '<p>TODO: Basic Description of this module including mention/link to the chado module</p>';
+
+  $text .= '<h3>Post Installation Instructions:</h3>';
+  $text .= '<p>TODO: Describe any post installation intructions here. You shouldalways include setting user permissions.</p>';
+  
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  $text .= '<p>TODO: Discuss the Features of this module including links. Some features to consider are creating content, details pages/node content, editing/deleteing, basic listings and vies integration. See admin/tripal/tripal_stock for an example.</p>';
+  
+  return $text;
+}
+
 /*******************************************************************************
  * Administrative settings for chado_orgnism
  */

+ 69 - 0
tripal_stock/tripal_stock-administration.inc

@@ -1,6 +1,75 @@
 <?php
 // $Id$
 
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_stock_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  //================================================================================
+  $text .= '<p>The Tripal Stock Module provides functionality for adding, editing, deleting and accessing chado stocks. The stock module was designed to store information about stock collections in a laboratory. What is called a stock could also be called a strain or an accession. There is a lot in common between a Drosophila stock and a Saccharomyces strain and an Arabidopsis line. They all come from some taxon, have genotypes, physical locations in the lab, some conceivable relationship with a publication, some conceivable relationship with a sequence feature (such as a transgene), and could be described by some ontology term. For more information about the chado Stock Module <a href="http://gmod.org/wiki/Chado_Stock_Module">see the GMOD Wiki Page</a></p>';
+  
+  $text .= '<h3>Post Installation Steps:</h3>';
+  //================================================================================
+  $text .= '<p>Since at the time of this modules developement there is no accepted ontology for describing stocks, their properties and relationships, this module allows you to select the controlled vocabularies (CVs) in your Chado Database you would like to govern these data.</p>';
+  $text .= '<b>To Set the Controlled Vocabularies for Stocks:</b>';
+    $text .= '<ol>';
+      $text .= '<li>Ensure your Controlled Vocabulary is in Chado</li>';
+      $text .= '<ol type="i">';
+        $text .= '<li>Load your Ontology into Chado using the <a href="tripal_cv/ontology_loader">Tripal Ontology Loader</a></li>';
+        $text .= '<li> Create your ontology from scratch by first <a href="tripal_cv/add_cv">creating a controlled vocabulary</a> and then <a href="tripal_cv/add_cvterm">adding terms to it</a>.</li>';
+      $text .= '</ol>';
+    $text .= '<li>Then go to the <a href="tripal_stock/configuration">Configuration Page for Stocks</a> and, in the "Set Stock Controlled Vocabularies" Fieldset, select the Controlled Vocaulary name for Stock Types, Stock Properties and Stock Relationship Types.</li>';
+      $text .= '<ol type="i">';
+        $text .= '<li>Stock Types: When you are creating stocks, the type of each stock must be indicated. This might include "DNA extraction", "Individual Plant/Animal" or even "Progeny Population".</li>';
+        $text .= '<li>Stock Properties: This module also allows you to assign properties to any stock. Each property has a type and a value where type is required an value is not. Therefore, if you want to say that a stock was grown at 23 degrees Celcius then the Type would be "temperature grown at" and the value would be 23 degrees Celcius. As such the Stock Properties controlled vocabulary might include "temperature grown at", "diet", "extraction date", "stock location", etc.</li>';
+        $text .= '<li>Stock Relationship Types: You can also specify relationships between stocks. For example, a stock of type="DNA extraction" (Stock 1a) is related to the stock of type="Individual Plant/Animal" (Stock 1) that it was extracted from. Thus you might specify the relationship Stock 1 is the source material for Stock 1a where the relationship type is "is the source material for". As such Stock Relationship Types might include "is the source material for", "is maternal parent of", "is individual of population", etc.</li>';
+      $text .= '</ol>';
+    $text .= '</ol>';
+  
+  $text .= '<p>This module also provides <b>User Permissions</b> to control which users or groups of users (roles) can view/access stock content (access chado_stock content), create stocks (create chado_stock content), edit or delete stocks (edit chado_stock content or delete chado_stock content). The default is that only the original administration account has these permissions. To allow additional users/roles any combination of the above permissions:</p>';
+  $text .= '<ol>';
+    $text .= '<li><a href="../user/roles">Add Roles</a> to provide permissions to. For example, you might want a "View Tripal Stock Content" and a "Manage Tripal Stock Content" Role. If you only want to provide permissions based on whether the user is logged in (authenticated) or not (anonymous) then you don\'t need to create roles.</li>';
+    $text .= '<li><a href="../user/permissions">Assign permissions</a> to roles. Specically focus on those mentioned above, then for each permission add a checkmark to the rolw (columns) that you want to have this permission.</li>';
+    $text .= '<li><a href="../user/user">Assign Users Roles</a>. This is what gives a given user the set of permissions associated with a given role. Notice that you can assign more than one role to a user and that each user is "Authenticated" by default. A user has permission is any of his/her roles have that permission.</li>';
+  $text .= '</ol>';
+  
+  $text .= '<p>Another important step, <b>if you chado database already contains stocks, is to sync\' Chado with Drupal</b>. This creates Drupal Content including detail pages for each stock (known as nodes in Drupal). To sync\' Chado with Drupal simply go to the <a href="tripal_stock/configuration">Configuration Page for Stocks</a> and in the "Sync Stocks" Fieldset select the Organisms whose associated stocks you would like to sync. If this list doesn\'t contain an organism which you know is in Chado go to the Organism Configuration Page and make sure it is sync\'d with Drupal.</p>';
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  //================================================================================
+  $text .= '<b><a href="../../node/add/chado_stock">Create a Generic Stock:</a></b>';
+  $text .= '<p>This allows you to create content in your drupal and chado for a stock (only the unique stock identifier is duplicated). A Generic Stock must have a unique name, a type and an organism. In addition, you can optionally supply a more human-readable name, a primary database reference and even a short description. The Create Generic Stock form is a multistep form with the first step creating the Basic stock (stored in the stock table). All the remaining steps are optional and descriptions of each follow:</p>';
+      $text .= '<ol type="i">';
+        $text .= '<li>The Next Step is to Add Properties to the newly created stock. Properties allow you to specify additional details about a given stock. Since the types of properties you can add are goverened by a controlled vocaulary that you can create, you have complete control over what additional properties you want to allow.</li>';
+        $text .= '<li>Then you can Add External Database References. A Database Reference can be thought of as a synonym for the current stock where you want to specify a source for that synonym. The source would then be thought of as the database where a database can either be online and provide automatic linking out to the synonymous record or offline and simply be a text name of the source. To create a database reference with a given source you must first add the database to chado <a href="tripal_db/add_db">here</a>.</li>';
+        $text .= '<li>Finally you can Add Relationships between Stocks. This allows you to specify, for example, the source material of a stock or one of it\'s parents. To create a relationship between your newly added stock and another stock, the other stock must first be created as this one was. Also, since the types of relationships is governed by a controlled vocabulary, just like with properties you have complete control over which relationships you want to allow. Once you click "Finish" you will be re-directed to the Details Page of the new Stock.</li>';
+      $text .= '</ol>';
+      
+  $text .= '<b>Details Page of a Stock:</b>';
+  $text .= '<p>Each stock get\'s it\'s own page on this website. This page is meant to give an overall picture of the stock including listing the basic details, as well as, all properties, database references and relationships. To understand where it is -All page content in Drupal is known as a node and is given a unique identifier or nid. Thus every drupal page has a path of node/<nid>. You can get to the Details page for a given stock from either of the stock listings described below.</p>';
+  $text .= '<p>If you want to customize the look of the stock Details page simply copy the PHP/HTML template node-chado_stock.tpl.php from theme_tripal to the base theme you are currently using. Then edit it as desired. There are plans to integrate this details page with Drupal Panels which will provide a much more user-friendly and no-programming-needed method to customize this page.</p>';
+  
+  $text .= '<b>Adding/Updating/Deleting Stocks and their Properties, Database References and Relationships:</b>';
+  $text .= '<p>The Stock Details Page also acts as a landing pad for updating/deleting stocks. To <b>update a stock</b>, go to the stocks details page and click on the Edit tab near the top of the page. This tab will only be visable if you have permission to edit chado stock content (See post installation steps above for information on setting user permissions. If you want to <b>delete a stock</b>, click the Edit tab and then near the bottom of the form, click the Delete button. This will delete the entire stock including it\'s properties, database references and any relationships including it.</p>';
+  $text .= '<p>To <b>update/delete a given property of a stock</b>, click the "Edit Properties" Tab near the top of the stock details page. This form provides a listing of all existing properties for the given stock with form elements allowing you to change their value. After editing the properties you wanted to, simply click the "Update Properties" button to update all the properties for that stock. To delete a given property simply click the "Delete" Button beside the property you want to delete. You cannot undo this action! To <b>add a property to the given stock</b> simply fill out the "Add Property" form at the bottom of the "Edit Properties" Tab.</p>';
+  $text .= '<p><b>Adding, updating and deleting Database References and Relationships</b> for a given stock is exactly the same as the method for properties. To edit Database References, click the "Edit DB References" tab and to add/edit/update stock relationships, click the "Edit Relationships" tab.</p>';
+  
+  $text .= '<b><a href="../../stocks">Basic Listing of Stocks:</a></b>';
+  $text .= '<p>This module also provides a basic listing of all stocks currently sync\'d with Drupal. To access this listing, there should be a Stocks Primary Menu item which links you to <a href="../../stocks">this page</a>. This page lists each stock on it\'s own row and provides a link to each stock by clicking on it\'s name. Currently there is no way to customize this listing.</p>';
+  
+  $text .= '<b><a href="../build/views/">Flexible Listing of Stocks using Drupal Views:</a></b>';
+  $text .= '<p>In order to access a more flexible listing of stocks you must first install the <a href="http://drupal.org/project/views">Drupal Views2 module</a>. You should then be able to access the default views <a href="../build/views/">here</a>. Essentially, Views is a module which allows you to create custom SQL queries completely through the web interface without knowing SQL. Furthermore, it also does some formatting of the results allowing you to display them as HTML lists, tables or grids. You can also expose filters to the user to let them customize the results they see and even implement various sorting.</p>';
+  $text .= '<p>To use one of the Default Views simply click "Enable" and then "Edit" to change it to show exactly what you want. To view the current listing simply clikc "View Page" at the top of the Edit user interface. There are a number of good tutorials out there for Views2, any of which can be used to help you create your own custom listings of biological content. (Note: there aren\'t any tutorials specifically for tripal content but any tutorial for Views2 will show you how to use the views interface.</p>';
+  
+  
+  return $text;
+}
+
 /*************************************************************************
  * Purpose: Provide administration options for chado_stocks
  *

+ 8 - 0
tripal_stock/tripal_stock.module

@@ -25,6 +25,14 @@ function tripal_stock_menu() {
   //Administrative settings menu-----------------
   $items['admin/tripal/tripal_stock'] = array(
     'title' => t('Stocks'),
+    'description' => t('Basic Description of Tripal Stock Module Functionality'),
+    'page callback' => 'tripal_stock_module_description_page',
+    'access arguments' => array('administer site configuration'),
+    'type' => MENU_NORMAL_ITEM
+  );
+  
+  $items['admin/tripal/tripal_stock/configuration'] = array(
+    'title' => t('Configuration'),
     'description' => t('Settings for Chado Stocks'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('tripal_stock_admin'),