From 7bbd9a052856b44e68ef935d70aeeb7a42f0bcc1 Mon Sep 17 00:00:00 2001 From: bdc34 Date: Mon, 22 Mar 2010 19:48:05 +0000 Subject: [PATCH] Adding drop down for subclasses on service activity custom form. NIHVIVO-209 --- .../edit/forms/personHasServiceActivity.jsp | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/productMods/edit/forms/personHasServiceActivity.jsp b/productMods/edit/forms/personHasServiceActivity.jsp index 866851de..66065f92 100644 --- a/productMods/edit/forms/personHasServiceActivity.jsp +++ b/productMods/edit/forms/personHasServiceActivity.jsp @@ -89,6 +89,10 @@ ?organizationUri ?activityUri . + + ?activityUri ?serviceSubClass . + + @prefix rdf: . @prefix core: . @@ -102,7 +106,6 @@ http://vivoweb.org/ontology/core#ServiceActivity http://xmlns.com/foaf/0.1/Organization - { "formUrl" : "${formUrl}", @@ -115,11 +118,11 @@ "n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearMonthAssertion}" ], "n3optional" : [ "${descriptionAssertion}", "${organizationNameAssertion}","${organizationUriAssertion}", - "${endYearMonthAssertion}"], + "${endYearMonthAssertion}", "${serviceSubClassAssertion}"], "newResources" : { "activityUri" : "${defaultNamespace}" }, "urisInScope" : { }, "literalsInScope": { }, - "urisOnForm" : [ "organizationUri" ], + "urisOnForm" : [ "organizationUri" , "serviceSubClass" ], "literalsOnForm" : [ "title", "description", "organizationName", "startYearMonth", "endYearMonth" ], "filesOnForm" : [ ], @@ -168,7 +171,18 @@ "rangeDatatypeUri" : "", "rangeLang" : "", "assertions" : [ "${organizationUriAssertion}" ] - }, + }, + "serviceSubClass" : { + "newResource" : "false", + "validators" : [ ], + "optionsType" : "CHILD_VCLASSES", + "literalOptions" : [ "--" ], + "predicateUri" : "", + "objectClassUri" : "${activityClass}", + "rangeDatatypeUri" : "", + "rangeLang" : "", + "assertions" : [ "${serviceSubClassAssertion}" ] + }, "organizationName" : { "newResource" : "false", "validators" : [ ], @@ -240,6 +254,7 @@

${title}

" > +