Index: lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -59,6 +59,7 @@ label.authoring.advance.number.columns =Columns to display images 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.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 label.authoring.cancel.button =Cancel @@ -76,8 +77,11 @@ error.msg.upload.file.not.found =Could not find upload file {0}. error.msg.zip.file.exception =Could not handle zip file when uploading file. error.msg.file.not.found =File not found exception occurs when uploading file. -error.msg.ims.application =ImscpApplicationException occurs when uploading resource item file. +error.msg.ims.application =ImscpApplicationException occurs when uploading original size image. error.msg.io.exception =IOException occurs when uploading file. +error.msg.repository.checked.exception =Repository checked exception occurs when creating a smaller scale image. +error.msg.item.not.found.exception =Item not found exception occurs when creating a smaller scale image. +error.msg.file.exception =File exception occurs when creating a smaller scale image. error.msg.invaid.param.upload =InvalidParameterException occured while trying to upload File. error.msg.default.content.not.find =Could not retrieve default content record for this tool. authoring.msg.cancel.save =Do you want to close this window without saving? Index: lams_tool_images/db/sql/create_lams_tool_imageGallery.sql =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/db/sql/create_lams_tool_imageGallery.sql (.../create_lams_tool_imageGallery.sql) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/db/sql/create_lams_tool_imageGallery.sql (.../create_lams_tool_imageGallery.sql) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -6,14 +6,14 @@ drop table if exists tl_laimag10_session; drop table if exists tl_laimag10_user; create table tl_laimag10_attachment ( - uid bigint not null auto_increment, + 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) + primary key (attachment_uid) )type=innodb; create table tl_laimag10_imageGallery ( uid bigint not null auto_increment, @@ -41,21 +41,21 @@ )type=innodb; create table tl_laimag10_imageGallery_item ( uid bigint not null auto_increment, - file_uuid bigint, - file_version_id bigint, description varchar(255), title varchar(255), - url text, create_by bigint, create_date datetime, create_by_author tinyint, sequence_id integer, is_hide tinyint, - file_type varchar(255), - file_name varchar(255), - open_url_new_window tinyint, imageGallery_uid bigint, session_uid bigint, + original_file_uuid bigint, + medium_file_uuid bigint, + thumbnail_file_uuid bigint, + file_version_id bigint, + file_type varchar(255), + file_name varchar(255), primary key (uid) )type=innodb; create table tl_laimag10_item_log ( @@ -106,7 +106,4 @@ `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); -INSERT INTO `tl_laimag10_imageGallery_item` (`uid`, `file_uuid`, `file_version_id`, `description`, `title`, `url`, `create_by`, `create_date`, `create_by_author`, `sequence_id`, `is_hide`, `file_type`, `file_name`, `open_url_new_window`, `imageGallery_uid`, `session_uid`) VALUES - (1,NULL,NULL,NULL,'Web Search','http://www.google.com ',null,NOW(),1,1,0,NULL,NULL,0,1,NULL); - SET FOREIGN_KEY_CHECKS=1; Index: lams_tool_images/db/sql/table-schema.sql =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/db/sql/table-schema.sql (.../table-schema.sql) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/db/sql/table-schema.sql (.../table-schema.sql) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -17,7 +17,7 @@ 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, number_columns integer DEFAULT 3, allow_vote bit, reflect_instructions varchar(255), reflect_on_activity bit,allow_rank tinyint DEFAULT 0, primary key (uid)); -create table tl_laimag10_imageGallery_item (uid bigint not null auto_increment, file_uuid bigint, file_version_id bigint, description varchar(255), title varchar(255), url text, create_by bigint, create_date datetime, create_by_author bit, sequence_id integer, is_hide bit, file_type varchar(255), file_name varchar(255), open_url_new_window bit, imageGallery_uid bigint, session_uid bigint, primary key (uid)); +create table tl_laimag10_imageGallery_item (uid bigint not null auto_increment, description varchar(255), 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, medium_file_uuid bigint, thumbnail_file_uuid bigint, file_version_id bigint, file_type varchar(255), file_name varchar(255), primary key (uid)); create table tl_laimag10_session (uid bigint not null auto_increment, session_end_date datetime, session_start_date datetime, status integer, imageGallery_uid bigint, session_id bigint, session_name varchar(250), primary key (uid)); create table tl_laimag10_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), first_name varchar(255), login_name varchar(255), session_uid bigint, imageGallery_uid bigint, session_finished bit, primary key (uid)); alter table tl_laimag10_attachment add index FK_NEW_1821149711_1E7009430E79035 (imageGallery_uid), add constraint FK_NEW_1821149711_1E7009430E79035 foreign key (imageGallery_uid) references tl_laimag10_imageGallery (uid); Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/dto/Summary.java =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/dto/Summary.java (.../Summary.java) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/dto/Summary.java (.../Summary.java) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -60,7 +60,6 @@ private int viewNumber; // following is used for export portfolio programs: - private String url; private Long fileUuid; private Long fileVersionId; private String fileName; @@ -90,9 +89,8 @@ this.itemHide = item.isHide(); this.itemTitle = item.getTitle(); this.username = item.getCreateBy() == null ? "" : item.getCreateBy().getLoginName(); - this.url = ImageGalleryWebUtils.protocol(item.getUrl()); this.fileName = item.getFileName(); - this.fileUuid = item.getFileUuid(); + this.fileUuid = item.getOriginalFileUuid(); this.fileVersionId = item.getFileVersionId(); } else { this.itemUid = new Long(-1); @@ -117,9 +115,8 @@ this.itemHide = item.isHide(); this.itemTitle = item.getTitle(); this.username = item.getCreateBy() == null ? "" : item.getCreateBy().getLoginName(); - this.url = ImageGalleryWebUtils.protocol(item.getUrl()); this.fileName = item.getFileName(); - this.fileUuid = item.getFileUuid(); + this.fileUuid = item.getOriginalFileUuid(); this.fileVersionId = item.getFileVersionId(); } else { @@ -208,14 +205,6 @@ this.fileVersionId = fileVersionId; } - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - public boolean isInitGroup() { return isInitGroup; } Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGallery.java =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGallery.java (.../ImageGallery.java) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGallery.java (.../ImageGallery.java) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -516,7 +516,7 @@ } public void setNumberColumns(int numberColumns) { - numberColumns = numberColumns; + this.numberColumns = numberColumns; } /** Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryAttachment.hbm.xml =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryAttachment.hbm.xml (.../ImageGalleryAttachment.hbm.xml) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryAttachment.hbm.xml (.../ImageGalleryAttachment.hbm.xml) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -13,7 +13,7 @@ Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryAttachment.java =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryAttachment.java (.../ImageGalleryAttachment.java) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryAttachment.java (.../ImageGalleryAttachment.java) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -95,7 +95,7 @@ // get/set methods // ********************************************************** /** - * @hibernate.id column="uid" generator-class="native" + * @hibernate.id column="attachment_uid" generator-class="native" */ public Long getUid() { return uid; Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryItem.hbm.xml =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryItem.hbm.xml (.../ImageGalleryItem.hbm.xml) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/model/ImageGalleryItem.hbm.xml (.../ImageGalleryItem.hbm.xml) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -26,53 +26,76 @@ + + + + + + - - - - - - Index: lams_tool_images/web/pages/authoring/parts/itemlist.jsp =================================================================== diff -u -r8a7c47632a6a93892f015f068d12adb376c0ae2d -r2ded08a63789390122f15ab1c3c70075ed0d2a2e --- lams_tool_images/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision 8a7c47632a6a93892f015f068d12adb376c0ae2d) +++ lams_tool_images/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision 2ded08a63789390122f15ab1c3c70075ed0d2a2e) @@ -1,4 +1,5 @@ <%@ include file="/common/taglibs.jsp"%> + @@ -12,18 +13,24 @@ - + - + - - <%-- @@ -34,7 +41,7 @@ --%> - -
- + + + ${image.thumbnailFileUuid}&preferDownload=false + + + ${image.mediumFileUuid}&preferDownload=false + + - ${imageGallery.title} + + + ${image.title} + " @@ -59,7 +66,7 @@ + " onclick="editItem(${status.index},'${sessionMapID}')" />