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
* */
$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__ ) ) );
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
$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.');
}
$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'],