Browse Source

Fixed issue with RO OBO

Stephen Ficklin 8 years ago
parent
commit
ecafddf634

+ 1 - 1
tripal_chado/includes/loaders/tripal_chado.obo_loader.inc

@@ -101,7 +101,7 @@ function tripal_cv_obo_form($form, &$form_state) {
       $matches = array();
       if (preg_match('/\{(.*?)\}/', $uobo_file, $matches)) {
         $modpath = drupal_get_path('module', $matches[1]);
-        $uobo_file = '/' . preg_replace('/\{.*?\}/', $modpath, $uobo_file);
+        $uobo_file = 'preg_replace('/\{.*?\}/', $modpath, $uobo_file);
       }
     }
     // We don't want the previous value to remain. We want the new default to

+ 1 - 1
tripal_chado/includes/tripal_chado.setup.inc

@@ -1691,7 +1691,7 @@ function tripal_cv_add_obo_defaults() {
   // Insert commonly used ontologies into the tables.
   $ontologies = array(
     // array('Relationship Ontology', 'http://purl.obolibrary.org/obo/ro.obo'),
-    // array('Relationship Ontology (older deprecated version)', 'http://www.obofoundry.org/ro/ro.obo'),
+    array('Relationship Ontology (legacy)', '{tripal_chado}/files/legacy_ro.obo'),
     array('Sequence Ontology', 'http://purl.obolibrary.org/obo/so.obo'),
     array('Gene Ontology', 'http://purl.obolibrary.org/obo/go.obo'),
     //    array('Cell Ontology', 'https://raw.githubusercontent.com/obophenotype/cell-ontology/master/cl.obo'),