From 54b82c073fc0414ddf0323a1dd0396c58816fe88 Mon Sep 17 00:00:00 2001 From: preecej Date: Mon, 22 Aug 2011 23:47:25 +0000 Subject: [PATCH] Changed Has_Evidence_Code to array; now allows multiple values per ontological reference; also added to Annotation formand template display svn path=/; revision=168 --- preecej/semantic_wiki/forms/Annotation.wiki | 1 + preecej/semantic_wiki/forms/Ontological_References.wiki | 3 ++- preecej/semantic_wiki/templates/Annotation.wiki | 1 + .../templates/Ontological_Reference_Repeater.wiki | 6 +++--- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/preecej/semantic_wiki/forms/Annotation.wiki b/preecej/semantic_wiki/forms/Annotation.wiki index 51406b6..0eed167 100644 --- a/preecej/semantic_wiki/forms/Annotation.wiki +++ b/preecej/semantic_wiki/forms/Annotation.wiki @@ -151,6 +151,7 @@ __NOTOC__ |? has_Term_ID |? has_Term_Name |? has_Aspect + |? has_Evidence_Code }} | Add ontological associations for this annotation.
{{#formlink:form=Ontological_References|link text=Add|link type=button|query string=Ontological_References[Annotation Page]={{PAGENAME}}&super_page={{PAGENAME}} }} }} diff --git a/preecej/semantic_wiki/forms/Ontological_References.wiki b/preecej/semantic_wiki/forms/Ontological_References.wiki index a4ddcb6..0eb3d68 100644 --- a/preecej/semantic_wiki/forms/Ontological_References.wiki +++ b/preecej/semantic_wiki/forms/Ontological_References.wiki @@ -28,7 +28,8 @@ if a page with that name already exists, you will be sent to a form to edit that '''Term Name:''' {{{field|Term Name|}}} '''Term ID:''' {{{field|Term ID|}}} '''Branch:''' {{{field|Aspect|}}} -
'''Evidence Code:''' {{{field|Evidence Code|}}} +

'''Evidence Code:'''
+{{{field|Evidence Code|list}}} {{{end template}}} {{{standard input|summary}}} diff --git a/preecej/semantic_wiki/templates/Annotation.wiki b/preecej/semantic_wiki/templates/Annotation.wiki index 4e9f9bd..b2e901d 100644 --- a/preecej/semantic_wiki/templates/Annotation.wiki +++ b/preecej/semantic_wiki/templates/Annotation.wiki @@ -98,6 +98,7 @@ Edit the page to see the template text. |? has_Term_ID |? has_Term_Name |? has_Aspect + |? has_Evidence_Code }} | There are no ontological associations available for this gene annotation. }} diff --git a/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki b/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki index 49a080e..60368a5 100644 --- a/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki +++ b/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki @@ -11,12 +11,12 @@ It should be called in the following format: }} Edit the page to see the template text. - -{{#set_internal:is_Ontological_Reference +{{#set_internal:is_Ontological_Reference |from_Ontology={{{Ontology|}}} |has_Term_ID={{{Term ID|}}} |has_Term_Name={{{Term Name|}}} |has_Aspect={{{Aspect|}}} +|has_Evidence_Code#list={{{Evidence Code|}}} }} {| class="wikitable" ! Ontology @@ -32,7 +32,7 @@ Edit the page to see the template text. | [[Has Aspect::{{{Aspect|}}}]] |- ! Evidence Code -| [[Has Evidence Code::{{{Evidence Code|}}}]] +| {{#arraymap:{{{Evidence Code|}}}|,|x|[[Has Evidence Code::x]]}} |} -- 2.34.1