Abdullah Almsaeed 6 лет назад
Родитель
Сommit
fa499e77de

+ 0 - 13
tripal_jbrowse_mgmt/README.md

@@ -1,13 +0,0 @@
-This module allows users to create and manage JBrowse instances and tracks.
-It reduces the need to use perl scripts to generate and configure tracks by
-offering web based forms instead.
-
-### Documentation
-
-Visit the [online documentation](https://hardwoods-jbrowse.readthedocs.io/en/latest/) for installation and usage instructions.
-
-### License
-
-This module is licensed under GPLv3.
-
-*Copyright University of Tennessee Knoxville* 

+ 1 - 1
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt.api.inc

@@ -474,7 +474,7 @@ function tripal_jbrowse_mgmt_get_track_list_file_path($instance) {
  *
  * @return array
  */
-function hardwoods_get_track_types() {
+function tripal_jbrowse_mgmt_get_track_types() {
   return [
     'FeatureTrack',
     'CanvasFeatures',

+ 1 - 1
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt_json_editor.form.inc

@@ -76,7 +76,7 @@ function tripal_jbrowse_mgmt_json_editor_form($form, &$form_state, $track_id) {
       'See the jborwse documentation for information about types'
     ),
     '#options' => drupal_map_assoc(
-      hardwoods_get_track_types()
+      tripal_jbrowse_mgmt_get_track_types()
     ),
     '#default_value' => $track_type,
   ];

+ 1 - 1
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt_tracks.form.inc

@@ -37,7 +37,7 @@ function tripal_jbrowse_mgmt_add_track_form($form, &$form_state, $instance_id) {
     '#description' => t('See http://gmod.org/wiki/JBrowse_Configuration_Guide#flatfile-to-json.pl for more info.'),
     '#required' => TRUE,
     '#title' => t('Track Type'),
-    '#options' => drupal_map_assoc(hardwoods_get_track_types()),
+    '#options' => drupal_map_assoc(tripal_jbrowse_mgmt_get_track_types()),
   ];
 
   $form['data']['file_type'] = [

+ 2 - 2
tripal_jbrowse_mgmt/tripal_jbrowse_mgmt.info

@@ -1,5 +1,5 @@
-name = Hardwoods Jbrowse
-description = Create JBrowse instances.
+name = Tripal Jbrowse Management
+description = Create JBrowse instances and manage tracks.
 core = 7.x
 
 dependecies[] = tripal

+ 2 - 2
tripal_jbrowse_mgmt/tripal_jbrowse_mgmt.install

@@ -9,7 +9,7 @@ function tripal_jbrowse_mgmt_schema() {
   $schema = [];
 
   $schema['tripal_jbrowse_mgmt_instances'] = [
-    'description' => 'Hardwoods site JBrowse instances.',
+    'description' => 'JBrowse instances.',
     'fields' => [
       'id' => [
         'type' => 'serial',
@@ -48,7 +48,7 @@ function tripal_jbrowse_mgmt_schema() {
   ];
 
   $schema['tripal_jbrowse_mgmt_tracks'] = [
-    'description' => 'Hardwoods site JBrowse tracks.',
+    'description' => 'JBrowse tracks.',
     'fields' => [
       'id' => [
         'type' => 'serial',

+ 11 - 11
tripal_jbrowse_mgmt/tripal_jbrowse_mgmt.module

@@ -20,7 +20,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'List JBrowse settings',
     'page callback' => 'tripal_jbrowse_mgmt_instances_page',
     'page arguments' => ['tripal_jbrowse_mgmt_configure_form'],
-    'access arguments' => ['administer hardwoods jbrowse'],
+    'access arguments' => ['administer tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_list.page.inc',
     'type' => MENU_NORMAL_ITEM,
   ];
@@ -35,7 +35,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'List and create JBrowse instances.',
     'page callback' => 'drupal_get_form',
     'page arguments' => ['tripal_jbrowse_mgmt_configure_form'],
-    'access arguments' => ['configure hardwoods jbrowse'],
+    'access arguments' => ['configure tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_configure.form.inc',
     'type' => MENU_LOCAL_TASK,
   ];
@@ -45,7 +45,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'List and create JBrowse instances.',
     'page callback' => 'drupal_get_form',
     'page arguments' => ['tripal_jbrowse_mgmt_add_form'],
-    'access arguments' => ['administer hardwoods jbrowse'],
+    'access arguments' => ['administer tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_add.form.inc',
     'type' => MENU_LOCAL_ACTION,
   ];
@@ -55,7 +55,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'View an instance and manage its tracks.',
     'page callback' => 'tripal_jbrowse_mgmt_instance_page',
     'page arguments' => [3],
-    'access arguments' => ['administer hardwoods jbrowse'],
+    'access arguments' => ['administer tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_instance.page.inc',
     'type' => MENU_CALLBACK,
   ];
@@ -65,7 +65,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'Confirm deleting an instance.',
     'page callback' => 'drupal_get_form',
     'page arguments' => ['tripal_jbrowse_mgmt_delete_instance_form', 3],
-    'access arguments' => ['administer hardwoods jbrowse'],
+    'access arguments' => ['administer tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_delete_instance.form.inc',
     'type' => MENU_LOCAL_ACTION,
   ];
@@ -75,7 +75,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'Add new track to a jbrowse instance.',
     'page callback' => 'drupal_get_form',
     'page arguments' => ['tripal_jbrowse_mgmt_add_track_form', 3],
-    'access arguments' => ['administer hardwoods jbrowse'],
+    'access arguments' => ['administer tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_tracks.form.inc',
     'type' => MENU_LOCAL_ACTION,
   ];
@@ -85,7 +85,7 @@ function tripal_jbrowse_mgmt_menu() {
     'description' => 'Edit tracks.',
     'page callback' => 'drupal_get_form',
     'page arguments' => ['tripal_jbrowse_mgmt_json_editor_form', 3],
-    'access arguments' => ['administer hardwoods jbrowse'],
+    'access arguments' => ['administer tripal_jbrowse_mgmt'],
     'file' => 'includes/tripal_jbrowse_mgmt_json_editor.form.inc',
     'type' => MENU_CALLBACK,
   ];
@@ -94,7 +94,7 @@ function tripal_jbrowse_mgmt_menu() {
       'title' => 'Delete Track',
       'page callback' => 'drupal_get_form',
       'page arguments' => ['tripal_jbrowse_mgmt_delete_track_form', 3],
-      'access arguments' => ['administer hardwoods jbrowse'],
+      'access arguments' => ['administer tripal_jbrowse_mgmt'],
       'file' => 'includes/tripal_jbrowse_mgmt_tracks.form.inc',
       'type' => MENU_LOCAL_ACTION,
     ];
@@ -108,11 +108,11 @@ function tripal_jbrowse_mgmt_menu() {
 function tripal_jbrowse_mgmt_permission() {
   $items = [];
 
-  $items['configure hardwoods jbrowse'] = [
-    'title' => t('Configure Hardwoods JBrowse'),
+  $items['configure tripal_jbrowse_mgmt'] = [
+    'title' => t('configure tripal_jbrowse_mgmt'),
   ];
 
-  $items['administer hardwoods jbrowse'] = [
+  $items['administer tripal_jbrowse_mgmt'] = [
     'title' => t('Create, edit and delete JBrowse instances'),
   ];