Index: lams_tool_forum/build.properties =================================================================== diff -u -r1b4b0ba0016c57080f14800d05aebf1f75912590 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/build.properties (.../build.properties) (revision 1b4b0ba0016c57080f14800d05aebf1f75912590) +++ lams_tool_forum/build.properties (.../build.properties) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -9,7 +9,7 @@ ### project properties ### signature=lafrum11 project.displayname = lams forum tool -tool.version=20080220 +tool.version=20081022 # hide tool option hideTool=false Index: lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== diff -u -ra01292ae06e058ffcc16aaeec6d61959a7b69273 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision a01292ae06e058ffcc16aaeec6d61959a7b69273) +++ lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -260,6 +260,24 @@ column="mark_release_notify" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: lams_tool_forum/db/model/forum.clay =================================================================== diff -u -ra01292ae06e058ffcc16aaeec6d61959a7b69273 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/db/model/forum.clay (.../forum.clay) (revision a01292ae06e058ffcc16aaeec6d61959a7b69273) +++ lams_tool_forum/db/model/forum.clay (.../forum.clay) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -6,7 +6,123 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
@@ -124,7 +240,7 @@ - + @@ -330,7 +446,7 @@ - + @@ -413,7 +529,7 @@ - + @@ -665,7 +781,7 @@ - + @@ -778,7 +894,7 @@ - + @@ -842,7 +958,7 @@ - + @@ -939,7 +1055,7 @@ - + Index: lams_tool_forum/db/sql/create_lams_tool_forum.sql =================================================================== diff -u -ra01292ae06e058ffcc16aaeec6d61959a7b69273 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/db/sql/create_lams_tool_forum.sql (.../create_lams_tool_forum.sql) (revision a01292ae06e058ffcc16aaeec6d61959a7b69273) +++ lams_tool_forum/db/sql/create_lams_tool_forum.sql (.../create_lams_tool_forum.sql) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -103,6 +103,27 @@ session_name varchar(250), primary key (uid) )TYPE=InnoDB; + +CREATE TABLE tl_lafrum11_conditions ( + condition_id BIGINT(20) NOT NULL + , content_uid BIGINT(20) + , PRIMARY KEY (condition_id) + , CONSTRAINT ForumConditionInheritance FOREIGN KEY (condition_id) + REFERENCES lams_branch_condition(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionToForum FOREIGN KEY (content_uid) + REFERENCES tl_lafrum11_forum(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; + +CREATE TABLE tl_lafrum11_condition_topics ( + condition_id BIGINT(20) + , topic_uid BIGINT(20) + , PRIMARY KEY (condition_id,topic_uid) + , CONSTRAINT ForumConditionQuestionToForumCondition FOREIGN KEY (condition_id) + REFERENCES tl_lafrum11_conditions(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionQuestionToForumQuestion FOREIGN KEY (topic_uid) + REFERENCES tl_lafrum11_message(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; + alter table tl_lafrum11_attachment add index FK389AD9A2FE939F2A (message_uid), add constraint FK389AD9A2FE939F2A foreign key (message_uid) references tl_lafrum11_message (uid); alter table tl_lafrum11_attachment add index FK389AD9A2131CE31E (forum_uid), add constraint FK389AD9A2131CE31E foreign key (forum_uid) references tl_lafrum11_forum (uid); alter table tl_lafrum11_forum add index FK87917942E42F4351 (create_by), add constraint FK87917942E42F4351 foreign key (create_by) references tl_lafrum11_forum_user (uid); Index: lams_tool_forum/db/sql/drop_lams_tool_forum.sql =================================================================== diff -u -rac0c4f506511cfd628fc56582b17c934425db055 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/db/sql/drop_lams_tool_forum.sql (.../drop_lams_tool_forum.sql) (revision ac0c4f506511cfd628fc56582b17c934425db055) +++ lams_tool_forum/db/sql/drop_lams_tool_forum.sql (.../drop_lams_tool_forum.sql) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -8,6 +8,8 @@ drop table if exists tl_lafrum11_message_seq; drop table if exists tl_lafrum11_tool_session; drop table if exists tl_lafrum11_report; +drop table if exists tl_lafrum11_condition_topics; +drop table if exists tl_lafrum11_conditions; SET FOREIGN_KEY_CHECKS=1; Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dbupdates/patch20081022_updateFrom21.sql =================================================================== diff -u --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dbupdates/patch20081022_updateFrom21.sql (revision 0) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dbupdates/patch20081022_updateFrom21.sql (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -0,0 +1,21 @@ +-- SQL statements to update from LAMS 2.1/2.1.1 + +CREATE TABLE tl_lafrum11_conditions ( + condition_id BIGINT(20) NOT NULL + , content_uid BIGINT(20) + , PRIMARY KEY (condition_id) + , CONSTRAINT ForumConditionInheritance FOREIGN KEY (condition_id) + REFERENCES lams_branch_condition(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionToForum FOREIGN KEY (content_uid) + REFERENCES tl_lafrum11_forum(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; + +CREATE TABLE tl_lafrum11_condition_topics ( + condition_id BIGINT(20) + , topic_uid BIGINT(20) + , PRIMARY KEY (condition_id,topic_uid) + , CONSTRAINT ForumConditionQuestionToForumCondition FOREIGN KEY (condition_id) + REFERENCES tl_lafrum11_conditions(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionQuestionToForumQuestion FOREIGN KEY (topic_uid) + REFERENCES tl_lafrum11_message(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; \ No newline at end of file Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml =================================================================== diff -u -ra01292ae06e058ffcc16aaeec6d61959a7b69273 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml (.../forumApplicationContext.xml) (revision a01292ae06e058ffcc16aaeec6d61959a7b69273) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml (.../forumApplicationContext.xml) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -16,13 +16,15 @@ + org/lamsfoundation/lams/learningdesign/BranchCondition.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Message.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Attachment.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/ForumUser.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/ForumReport.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/ForumToolSession.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/MessageSeq.hbm.xml + org/lamsfoundation/lams/tool/forum/persistence/ForumCondition.hbm.xml Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== diff -u -ra01292ae06e058ffcc16aaeec6d61959a7b69273 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision a01292ae06e058ffcc16aaeec6d61959a7b69273) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -260,6 +260,24 @@ column="mark_release_notify" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<%@ tag body-content="scriptless" %> +<%@ taglib uri="tags-core" prefix="c" %> +<%@ taglib uri="tags-fmt" prefix="fmt" %> +<%@ taglib uri="tags-html" prefix="html" %> +<%@ taglib uri="tags-lams" prefix="lams" %> + +<%-- Required attributes --%> +<%@ attribute name="sessionMapID" required="true" rtexprvalue="true" %> +<%@ attribute name="wrapInFormTag" required="true" rtexprvalue="true" %> + +<%-- Optional attributes --%> +<%@ attribute name="action" required="false" rtexprvalue="true" %> +<%@ attribute name="formID" required="false" rtexprvalue="true" %> +<%@ attribute name="headingLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="allWordsLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="phraseLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="anyWordsLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="excludedWordsLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="saveButtonLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="cancelButtonLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="cancelAction" required="false" rtexprvalue="true" %> + +<%-- Default value for message key --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

+ + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + + + + + + + + \ No newline at end of file Index: lams_tool_forum/web/images/downarrow.gif =================================================================== diff -u Binary files differ Index: lams_tool_forum/web/images/downarrow_disabled.gif =================================================================== diff -u Binary files differ Index: lams_tool_forum/web/images/uparrow.gif =================================================================== diff -u Binary files differ Index: lams_tool_forum/web/images/uparrow_disabled.gif =================================================================== diff -u Binary files differ Index: lams_tool_forum/web/jsps/authoring/addCondition.jsp =================================================================== diff -u --- lams_tool_forum/web/jsps/authoring/addCondition.jsp (revision 0) +++ lams_tool_forum/web/jsps/authoring/addCondition.jsp (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -0,0 +1,47 @@ + +<%@ include file="/common/taglibs.jsp"%> + + + + <%@ include file="/common/header.jsp"%> + + + + + + <%@ include file="/common/messages.jsp"%> + + +

+ +

+ +
+ +
+ +
+ +
+ <%-- Text search form fields are being included --%> + +

+ + + + + +
+
+ +
+ + + + + + +
Index: lams_tool_forum/web/jsps/authoring/authoring.jsp =================================================================== diff -u -r1c995cd6d87591d824ddde103a6138f2632e8f71 -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 --- lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision 1c995cd6d87591d824ddde103a6138f2632e8f71) +++ lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -18,6 +18,7 @@ +
@@ -31,6 +32,8 @@ page="advance.jsp" /> + + + + +
+

+ + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ ${status.index + 1} + + ${condition.displayName} + + + " + onclick="upCondition(${status.index},'${sessionMapID}')"> + + "> + + + + + + "> + + + " + onclick="downCondition(${status.index},'${sessionMapID}')"> + + + " + onclick="editCondition(${status.index},'${sessionMapID}')" /> + + " + onclick="deleteCondition(${status.index},'${sessionMapID}')" /> +
+
+ +<%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> + Index: lams_tool_forum/web/jsps/authoring/conditions.jsp =================================================================== diff -u --- lams_tool_forum/web/jsps/authoring/conditions.jsp (revision 0) +++ lams_tool_forum/web/jsps/authoring/conditions.jsp (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) @@ -0,0 +1,110 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + +
+ + <%@ include file="/jsps/authoring/conditionList.jsp"%> +
+ +

+ ');" class="button-add-item"> + +

+ + +

+ +