lams-github

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
*** empty log message ***

added a new bean property attachments

modified the struts action "instructions": added code to initialise the attachment map, used to view the attachments that have been made with this specific tool content id

*** empty log message ***

removed the definitiosn for basic advanced and instructions page. and replace it with .authoringContent

removed the <h2></h2>

this page is the main authoring screen, it will include the particular file(a_Basic.jsp or a_Instructions.jsp) depending on what method is chosen.

    • -23
    • +37
    /lams_tool_nb/web/authorContent.jsp
made some changes to the way the authoring screen is shown. instead of having 3 separate jsp pages with 3 separate paths, combined these 3 authoring pages into the one page authorContent.jsp works the same way as the monitoring environment. removed the action forward nb_basic, nb_advanced and nb_instructions. the only forward path is now authoringContent

    • -37
    • +1
    /lams_tool_nb/web/a_Instructions.jsp
fixed the reset method (previously it wasnt defined correctly, and so it wasnt being called by the controller) the validate method now checks the filesize of the uploaded files.

removed the constants BASIC_PAGE, ADVANCED_PAGE AND INSTRUCTIONS_PAGE, since the three pages are now referenced through authorContent.jsp instead

Remove persistent contentID from InstructionFile class, it is useless at least now.

Block learner when content in use is true.

    • -0
    • +6
    /lams_tool_sbmt/web/learner/contentinuse.jsp
avoid page info lost after STRUTS exception handle

when dealing with the same files being uploaded, the previous code, updated teh db with the new uuid, however, it wasnt updating instead new entries were being made. Now the code is changed so that if the file already exists (ie. has been uploaded already) then it will delete previously file from content repository, save it into content repository, delete the entry in the db, and create a new entry with the new uuid

changed the parameter inside the lanchPopupInstructions javascript method. was previously hardcoded

removed the target attribute from html:base tag, with the target attribute, the viewing file doesnt work in instructions tab in authoring

    • -2
    • +2
    /lams_tool_nb/web/template/template.jsp
Removed target="../" from html:base tag as it is causing javascript to fail. This value doesn't make sense anyway as the target should be a window name, not a path.

Removed target="../" from html:base tag as it is causing javascript to fail. This value doesn't make sense anyway as the target should be a window name, not a path.

Authroing delete file works

    • -5
    • +5
    /lams_tool_sbmt/db/model/lams_tool_sbmt.clay
    • -0
    • +56
    /lams_tool_sbmt/web/includes/javascript/xmlrequest.js
*** empty log message ***

    • -11
    • +27
    /lams_tool_nb/web/a_Instructions.jsp
added the script tag to reference common.js from lams_central

    • -10
    • +5
    /lams_tool_nb/web/template/template.jsp
servlet mapping for ToolDownload servlet

    • -0
    • +11
    /lams_tool_nb/conf/xdoclet/servlets.xml
*** empty log message ***

1.Extract a new table "Learner" 2.Lock the learner component if learner submit finish and the flag LockOnFinished of Content is true.

    • -6
    • +87
    /lams_tool_sbmt/db/model/lams_tool_sbmt.clay
    • -11
    • +20
    /lams_tool_sbmt/db/sql/create_lams_tool_sbmt.sql
    • -1
    • +11
    /lams_tool_sbmt/db/sql/table-schema.sql
  1. … 12 more files in changeset.
*** empty log message ***

    • -24
    • +45
    /lams_tool_nb/web/a_Instructions.jsp
the struts exception handles nullPointerExceptions (using customstrutshandler)

in the execute method, a new authoring form is instantiated, this overcomes the problem of accessing the previous form values that were in the session and ensures that you are using a new form instead of an old one

renamed the method copyInstructionFormProperty to copyAuthoringFormValuesIntoFormBean added the deleteAttachment struts action.

new method in service bean :removeAttachmentByUuid which called removeAttachment from DAO class

removeAttachment(Long uuid) hibernate implementation