Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
Added TO (Trait Ontology) web service and db access, fixed Annotation
authorpreecej <preecej@localhost>
Wed, 18 Jul 2012 02:52:09 +0000 (02:52 +0000)
committerpreecej <preecej@localhost>
Wed, 18 Jul 2012 02:52:09 +0000 (02:52 +0000)
form bug on listing Publications (no more tilde wildcards.)

svn path=/; revision=364

planteome/paw/forms/Annotation.wiki
planteome/paw/local_settings/dev.LocalSettings.php
planteome/paw/services/TermSearch_JSON.php

index 7d7ac0b8f420e8c8d7f3728259e274da2465d518..69db50151c4e01269a523a96568afa5f4614c29f 100644 (file)
@@ -184,8 +184,8 @@ __NOTOC__
 Need to add a reference to a publication without a PubMed ID or DOI (Digital Object Identifier)?<br>
 {{#formlink:form=Publication|link text=Add a new publication reference|link type=|query string=Publication[New Annotation Reference]={{PAGENAME}} }}
     
-    {{#if: {{#ask:[[Category:Publications]][[Is Associated With Annotations::~*{{PAGENAME}}* ]] OR [[Category:Reference Publications]][[Is Associated With Annotations::~*{{PAGENAME}}* ]] }}
-      | {{#ask:[[Category:Publications]][[Is Associated With Annotations::~*{{PAGENAME}}* ]] OR [[Category:Reference Publications]][[Is Associated With Annotations::~*{{PAGENAME}}* ]]
+    {{#if: {{#ask:[[Category:Publications]][[Is Associated With Annotations::{{PAGENAME}} ]] OR [[Category:Reference Publications]][[Is Associated With Annotations::{{PAGENAME}} ]] }}
+      | {{#ask:[[Category:Publications]][[Is Associated With Annotations::{{PAGENAME}} ]] OR [[Category:Reference Publications]][[Is Associated With Annotations::{{PAGENAME}} ]]
           |? has First Author
           |? has Publication Title
           |? has Journal Name
index 3b264e1a534f943f7d33c064155554f56bbdebc8..1b0dff4043d99d4454f04bfe5680357455c59b87 100644 (file)
@@ -167,7 +167,6 @@ $wgCachePages       = false;
         *      */
 $wgCacheEpoch = 'date +%Y%m%d%H%M%S';
 
-
 # When you make changes to this configuration file, this will make
 # sure that cached pages are cleared.
 $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
index d127a6699d93800166ff1be7a00ee89de2da91c8..277a5d2205e5df9b432f0b6ddb95a1a0b644bd3b 100644 (file)
@@ -5,7 +5,7 @@
 if(isset($_GET['user']) && ($_GET['user']) == 'paw') {
 
         $arr_field_names = array('name','acc');
-        $arr_ontologies = array('go','po');
+        $arr_ontologies = array('go','po','to');
         
         /* read the params and/or set our own */
         $type = isset($_GET['type']) ? $_GET['type'] : autocomplete; // autocomplete is the default
@@ -48,6 +48,13 @@ if(isset($_GET['user']) && ($_GET['user']) == 'paw') {
                 $term_types = "'biological_process','cellular_component','molecular_function'"; 
                 break;
 
+            case 'to':
+                $link = mysql_connect($_SERVER['to_host'], $_SERVER['to_user'], $_SERVER['to_pw']) or die('Cannot connect to the DB');
+                mysql_select_db($_SERVER['to_db'],$link) or die('Cannot select the DB');
+
+                $term_types = "'plant_trait_ontology'"; 
+                break;
+
             default:
                 die('Sorry, this ontology type is not available.');
         }
@@ -111,6 +118,8 @@ if(isset($_GET['user']) && ($_GET['user']) == 'paw') {
                                 $term_type_formal = "Cellular Component"; break;
                             case 'molecular_function':
                                 $term_type_formal = "Molecular Function"; break;
+                            case 'plant_trait_ontology':
+                                $term_type_formal = "Plant Trait Ontology"; break;
                         }
                         $terms[] = array(
                             'name'=>$term['name'],