Index: lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== diff -u -r4b47f86b588e38c9e7e9f2760c75f775cb080831 -rdb681dba0a5e44ae9f4e4cf6b9bc575d6175212f --- lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 4b47f86b588e38c9e7e9f2760c75f775cb080831) +++ lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision db681dba0a5e44ae9f4e4cf6b9bc575d6175212f) @@ -41,6 +41,7 @@ label.authoring.offline.delete =Delete label.authoring.advance.allow.learner.share.images =Allow learners to share their images label.authoring.advance.allow.learner.comment.images =Allow learners to comment on images +label.authoring.advance.notify.monitoring.teachers =Notify monitoring teachers when a learner submits an image label.authoring.advance.allow.learner.ratings.or.vote =Ratings or Vote label.authoring.advance.allow.learner.vote =Allow learners to vote for their favorite images label.authoring.advance.allow.learner.rank =Allow learners to rank the images @@ -170,5 +171,8 @@ admin.return =Return to maintain LAMS admin.button.save =Save label.default.user.name =Instructor +event.imagesubmit.subject =LAMS: Learner submitted an image in image gallery tool +event.imagesubmit.body =The learner {0} submitted an image in a image gallery tool.\n\nThis message was send automatically, following tool''s advanced settings. + #======= End labels: Exported 166 labels for en AU ===== Index: lams_tool_images/db/model/imageGallery.clay =================================================================== diff -u -r5d9ada1b3b139591dc6f1fffec04990beb727522 -rdb681dba0a5e44ae9f4e4cf6b9bc575d6175212f --- lams_tool_images/db/model/imageGallery.clay (.../imageGallery.clay) (revision 5d9ada1b3b139591dc6f1fffec04990beb727522) +++ lams_tool_images/db/model/imageGallery.clay (.../imageGallery.clay) (revision db681dba0a5e44ae9f4e4cf6b9bc575d6175212f) @@ -454,6 +454,12 @@ + + + + + + Index: lams_tool_images/db/sql/create_lams_tool_imageGallery.sql =================================================================== diff -u -rd135b890fdc2d5b58c6bd02c48c8b3365d9a2ffe -rdb681dba0a5e44ae9f4e4cf6b9bc575d6175212f --- lams_tool_images/db/sql/create_lams_tool_imageGallery.sql (.../create_lams_tool_imageGallery.sql) (revision d135b890fdc2d5b58c6bd02c48c8b3365d9a2ffe) +++ lams_tool_images/db/sql/create_lams_tool_imageGallery.sql (.../create_lams_tool_imageGallery.sql) (revision db681dba0a5e44ae9f4e4cf6b9bc575d6175212f) @@ -41,6 +41,7 @@ reflect_instructions varchar(255), reflect_on_activity smallint, allow_rank tinyint, + image_submit_notify tinyint DEFAULT 0, primary key (uid) )type=innodb; create table tl_laimag10_imageGallery_item ( @@ -146,8 +147,8 @@ INSERT INTO `tl_laimag10_imageGallery` (`uid`, `create_date`, `update_date`, `create_by`, `title`, `run_offline`, `lock_on_finished`, `instructions`, `next_image_title`, `online_instructions`, `offline_instructions`, `content_in_use`, `define_later`, `content_id`, `allow_comment_images`, - `allow_share_images`, `allow_vote`, `allow_rank`, `reflect_on_activity`) VALUES - (1,NULL,NULL,NULL,'ImageGallery','0','0','Instructions ',1,null,null,0,0,${default_content_id},0,0,0,0,0); + `allow_share_images`, `allow_vote`, `allow_rank`, `reflect_on_activity`, `image_submit_notify`) VALUES + (1,NULL,NULL,NULL,'ImageGallery','0','0','Instructions ',1,null,null,0,0,${default_content_id},0,0,0,0,0,0); INSERT INTO `tl_laimag10_configuration` (`config_key`, `config_value`) VALUES ('mediumImageDimensions', '640'); Index: lams_tool_images/db/sql/table-schema.sql =================================================================== diff -u -rd135b890fdc2d5b58c6bd02c48c8b3365d9a2ffe -rdb681dba0a5e44ae9f4e4cf6b9bc575d6175212f --- lams_tool_images/db/sql/table-schema.sql (.../table-schema.sql) (revision d135b890fdc2d5b58c6bd02c48c8b3365d9a2ffe) +++ lams_tool_images/db/sql/table-schema.sql (.../table-schema.sql) (revision db681dba0a5e44ae9f4e4cf6b9bc575d6175212f) @@ -26,7 +26,7 @@ drop table if exists tl_laimag10_configuration; create table tl_laimag10_attachment (uid bigint not null auto_increment, file_version_id bigint, file_type varchar(255), file_name varchar(255), file_uuid bigint, create_date datetime, imageGallery_uid bigint, primary key (uid)); create table tl_laimag10_item_log (uid bigint not null auto_increment, access_date datetime, imageGallery_item_uid bigint, user_uid bigint, complete bit, session_id bigint, primary key (uid)); -create table tl_laimag10_imageGallery (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), run_offline bit, lock_on_finished bit, instructions text, next_image_title bigint, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, content_id bigint unique, allow_comment_images bit, allow_share_images bit, allow_vote bit, reflect_instructions varchar(255), reflect_on_activity bit,allow_rank tinyint DEFAULT 0, primary key (uid)); +create table tl_laimag10_imageGallery (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), run_offline bit, lock_on_finished bit, instructions text, next_image_title bigint, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, content_id bigint unique, allow_comment_images bit, allow_share_images bit, allow_vote bit, reflect_instructions varchar(255), reflect_on_activity bit,allow_rank tinyint DEFAULT 0, image_submit_notify tinyint DEFAULT 0, primary key (uid)); create table tl_laimag10_imageGallery_item (uid bigint not null auto_increment, description text, title varchar(255), create_by bigint, create_date datetime, create_by_author bit, sequence_id integer, is_hide bit, imageGallery_uid bigint, session_uid bigint, original_file_uuid bigint, original_image_width integer, original_image_height integer, medium_file_uuid bigint, medium_image_width integer, medium_image_height integer, thumbnail_file_uuid bigint, file_version_id bigint, file_type varchar(255), file_name varchar(255), average_rating FLOAT(7,1) DEFAULT 0, number_ratings integer DEFAULT 0, primary key (uid)); create table tl_laimag10_image_comment (uid bigint not null auto_increment, comment text, imageGallery_item_uid bigint, create_by bigint, create_date datetime, primary key (uid)); create table tl_laimag10_image_rating (uid bigint not null auto_increment, rating integer, imageGallery_item_uid bigint, create_by bigint, primary key (uid)); Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/imageGalleryApplicationContext.xml =================================================================== diff -u -rd135b890fdc2d5b58c6bd02c48c8b3365d9a2ffe -rdb681dba0a5e44ae9f4e4cf6b9bc575d6175212f --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/imageGalleryApplicationContext.xml (.../imageGalleryApplicationContext.xml) (revision d135b890fdc2d5b58c6bd02c48c8b3365d9a2ffe) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/imageGalleryApplicationContext.xml (.../imageGalleryApplicationContext.xml) (revision db681dba0a5e44ae9f4e4cf6b9bc575d6175212f) @@ -151,6 +151,10 @@ + + + + Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGallery.hbm.xml =================================================================== diff -u -ree0608cfdaec0a5cc246ac316091712268491fc6 -rdb681dba0a5e44ae9f4e4cf6b9bc575d6175212f --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGallery.hbm.xml (.../ImageGallery.hbm.xml) (revision ee0608cfdaec0a5cc246ac316091712268491fc6) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGallery.hbm.xml (.../ImageGallery.hbm.xml) (revision db681dba0a5e44ae9f4e4cf6b9bc575d6175212f) @@ -220,6 +220,14 @@ column="allow_rank" /> + +